Windcharge

Started by Blue_Raptor12519 on

Topic category: Help with modding (Java Edition)

Last seen on 21:36, 24. Apr 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Windcharge

Hi! I am currently trying to mod a scythe mod I would like it so that if you right-click the scythes that it gives a boost such as a wind charge . . . I am currently modding for 1.18.2 because that is the version my modded server is in. I can not figure out how to get this attribute. 

Please help.

Last seen on 23:28, 4. May 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do you want it just to push…
Wed, 04/24/2024 - 23:47

Do you want it just to push the person who used it upwards?

You can use the 'attempt to override motion vector of [entity]', and set x=0, y=(height), z=0

Replace (height) for the y to your liking, keep in mind that a value of 1 means 1 block every tick (or 20blocks/second), but gravity will dampen the velocity.

If you want to push other people outwards, then you're going to have to use trigonometry.