The closer you are the more damage you do

Started by beastboy_ on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The closer you are the more damage you do

I wanna make it so if you use this specific item it will deal more hearts the closer you are to whoever you're attacking

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could use some math and…
Fri, 08/05/2022 - 14:04

you could use some math and the coordinates of both entities to figure out the distance, then use that distance to change the damage the player recives.