Windcharge

Started by Blue_Raptor12519 on

Topic category: Help with Minecraft modding (Java Edition)

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.

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.

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make sure you have added the…
Thu, 12/12/2024 - 03:16

Make sure you have added the code to the ScytheItem class correctly and have registered the item in ModItems of among us.