The closer you are the more damage you do

Started by beastboy_ on Thu, 08/04/2022 - 20:29

Topic category: Help with modding (Java Edition)

Last seen on 23:52, 4. Aug 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
The closer you are the more damage you do
Thu, 08/04/2022 - 20:29

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 15:04, 2. Oct 2022
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.