Help with Arrow Physics

Started by Deadreaper on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with Arrow Physics
Thu, 12/30/2021 - 03:48 (edited)

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
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can check for speed of…
Thu, 02/10/2022 - 13:04

You can check for speed of the missile and when it's low spawn a new one and despawn the projectile the original

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Put the procedure (set no…
Fri, 07/22/2022 - 05:29

Put the procedure (set no gravity of immediate source entity to false) into on projectile tick update.