Member
Level 21
Expert Miner
3

Forum Posts

1 - 1 of 1

    Dissec
    • 07/24/2022 3:46 pm
    • Level 21 : Expert Miner
    You can try using a scoreboard to store the number of deaths using:
    /scoreboard objectives add died deathCount
    and then a repeating command block with the following command to reset it to 0
    /execute as @a if score @s died matches 1.. run scoreboard players set @s died 0

    Now just do:
    /execute as @a if entity @s[team=1, scores={died=1}] run kick @s Dead men must be kicked.

    That will basically add a scoreboard called dead to store deaths obviously
    then set it to 0 if greater or equal than 1
    if its greater than 0 will kick the person.
    1

1 - 1 of 1

Welcome