Ranged item maths

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

Topic category: Help with modding (Java Edition)

Last seen on 16:06, 22. Mar 2022
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
Last seen on 01:33, 31. May 2022
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
i'm having the same problem  
Wed, 09/15/2021 - 00:34

i'm having the same problem