Nie rozumiem dokładnie jak to ma działać, ale patrząc zauważyłem, że
zamiast
execute console command "/gamemode survival %loop-player%"
możesz użyć
set the gamemode of the %loop-player% to survival
żeby nie zaśmiecać sobie konsoli
command /spawnzombie:
trigger:
spawn zombie at player
set {_} to last spawned zombie
set health of {_} to 500
set name of {_} to "KoxZombie HP: 500"
on damage:
name of victim contains "KoxZombie"
set name of victim to "KoxZombie %health of victim%"