function respawn(p: player): clear {_p}'s inventory clear {itemy.death::*} add 64 steak to {itemy.death::*} add 64 oak wood planks to {itemy.death::*} add 1 ender chest to {itemy.death::*} add 1 stone shovel to {itemy.death::*} add 1 stone axe to {itemy.death::*} add 1 stone pickaxe to {itemy.death::*} loop {itemy.death::*}: add loop-value to {_p} stop on respawn: set {_p} to player respawn({_p})