Heal other players on a radius

Started by Khedi on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Heal other players on a radius

I want to make a weapon, that when you use it, it heals you and the other players around you. I made this procedure and it heals the player that uses it but not the other, help pls q-q


https://gyazo.com/f1930cb12f1e50be3645a3dabd303b2f

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It checks if players are in…
Wed, 07/02/2025 - 08:52

It checks if players are in a 10-Block radius but then heals the player with the item in hand not the player it should. So you need to get the UUID of the player that was detected and heal the player with this UUID.

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And how do I do that?
Wed, 07/02/2025 - 10:11

And how do I do that?

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This should work
Wed, 07/02/2025 - 14:47

This should work