Hi guys, the title says all: I want to make a sort of "Heal pool" that heals every player in a certain region in a certain block, i tried with this:
but the problem is that if a player goes into the water and starts the heal process, the other player, if goes in water, needs to wait the other player's health is full before he can heal theirself, and i want that every player can heal theirself without waiting the other in the pool... Hope you understood, any ideas?
Code:
every 2 ticks:
loop all players:
if "%region at all players%" contains "HealPool":
if block at loop-player's location is water:
set {maxhealth.%loop-player%} to loop-player's max health
if loop-player's health is less than {maxhealth.%loop-player%}:
heal loop-player by 0.5 hearts
play sound "entity.experience_orb.pickup" with volume 0.3 to the loop-player
stop