Solved "Heal Pool"

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Turb032

Active Member
Jan 16, 2020
109
0
16
21
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:
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
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?
 
Status
Not open for further replies.