Projectile paths

Discussion in 'Plugin Development' started by Butter1484, Jul 29, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Butter1484

    Is there any way to get the maximum height a projectile reaches while it is in flight? I would like to use the max height as the top Y coordinate of a cuboid region.
     
  2. Offline

    blablubbabc

    If you don't want to depend on minecraft-internal formulas, you could create a repeating task once the arrow is launched, which tracks the current height of the arrow every tick. Once the current height of the arrow is lower than the last max height, you have your maximum height and you can stop the repeating task again.
     
Thread Status:
Not open for further replies.

Share This Page