Started by
Blue_Raptor12519
on
Topic category: Help with Minecraft modding (Java Edition)
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.
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.
Make sure you have added the code to the ScytheItem class correctly and have registered the item in ModItems of among us.