How do I make an item do some sort of flying when right clicked?

Started by littledude47 on

Topic category: Help with modding (Java Edition)

Last seen on 18:17, 27. Feb 2021
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make an item do some sort of flying when right clicked?

so I made a sword and I want it to make you fly in the direction you are facing if you right click, I had the idea to move the location every tick by 0.5 blocks but that completely crashed the game, how would I do this?

Last seen on 17:31, 29. Oct 2020
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can't you just set entity…
Sun, 08/30/2020 - 11:22

can't you just set entity movement vektor to vy: 5 or something like that ? that should theoreticly work

Last seen on 18:17, 27. Feb 2021
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
that would just move the mob…
Sun, 08/30/2020 - 16:41

that would just move the mob upwards it wouldn't have any sort of other movement