on damage of player:
wait 1 tick
if victim's health is 0:
#itemy po zginieciu
Add ender chest, Stone axe, Stone shovel, 64 steak and 64 oak Wood planks to player
set victim's health to 10
teleport victim to {spawn}
command /ustaw:
permission: ustaw.spawn
trigger:
set {spawn} to location of player
send "&aPomyslnie Ustawiono Spawn!"