How to Make Damage Drop-off (Different damage depending on the distance bullet travelled)

Started by Stick_Surfer on Thu, 07/29/2021 - 20:21

Topic category: Advanced modding

Last seen on 01:00, 12. Aug 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to Make Damage Drop-off (Different damage depending on the distance bullet travelled)
Thu, 07/29/2021 - 20:21

Like the title says, I would like to have the bullets from my ranged weapons deal varying damage based on distance. Is there any way possible for this?

Last seen on 02:40, 18. Sep 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
maybe if you have an nbt for…
Thu, 07/29/2021 - 22:28

maybe if you have an nbt for the bullet the bullet that starts high but is lowered every tick?

Then on bullet hit entity do "deal "nbt tag" to entity"