Started by
Deadreaper
on
Topic category: Help with Minecraft modding (Java Edition)
I am trying to make a missile launcher as a ranged item that shoots the missile (arrow) straight instead of the normal way.
I got the gravity part down by adding a NoGravity line in the code, however the arrow doesn't stay at a constant speed. It will gradually slow down until it freezes mid-air.
I have tried editing the code and many various procedures, but nothing seems to work.
For MC 1.16.5
Edited by Deadreaper on Thu, 12/30/2021 - 03:48
You can check for speed of the missile and when it's low spawn a new one and despawn the projectile the original
Put the procedure (set no gravity of immediate source entity to false) into on projectile tick update.