Ranged item maths

Started by lt.wret on Mon, 02/22/2021 - 18:43

Topic category: Help with modding (Java Edition)

Last seen on 21:30, 8. Apr 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Ranged item maths
Mon, 02/22/2021 - 18:44 (edited)

im a bit confused about the maths behind the ranged items
 

screenshot

https://imgur.com/a/XGpThIu

Red - Bullet power (speed of projectile therefore effecting arc & effectively range)

Blue - Bullet damage

But its not this simple it appears there seems to be some sort of calculation for the final damage
With the shown screen shot the output damage of the item is 8
 

 

screenshot 2

https://imgur.com/a/bqHnOJI

 

Yet once I input this the final damage output of the item is 33

Is there an easy way to work out this so i can determine the damage before hand?

Edited by lt.wret on Mon, 02/22/2021 - 18:44