function menu(p: player): clear inventory of {_p} teleport {_p} to world "world" command /menu []: trigger: open virtual chest inventory with 1 row named " &6&lMenu" to player make gui slot 4 of player with diamond sword to run function menu(player)