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

Started by littledude47 on Wed, 08/26/2020 - 21:24

Topic category: Help with modding (Java Edition)

Last seen on 01:58, 15. Oct 2020
Joined Jan 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I make an item do some sort of flying when right clicked?
Wed, 08/26/2020 - 21:24

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 20:55, 10. Oct 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 01:58, 15. Oct 2020
Joined Jan 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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