The closer you are the more damage you do

Started by beastboy_ on

Topic category: Help with modding (Java Edition)

Last seen on 17:09, 19. Mar 2023
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

Last seen on 17:27, 24. Nov 2023
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.