Hey! I need some help. how do I make player execute a function on a GUI?
here's the code:
plz help thx
here's the code:
code_language.skript:
command /pet:
permission: pets.use
trigger:
message "&aplease wait..."
wait 1 seconds
open chest with 6 rows named "&6Pets Menu" to player
format slot 9 of player with fish named "&6Cat Pet" to close then run [function SpawnPet(player, "ocelot")]
format slot 10 of player with name tag named "&6rename your pet" to close then run [make player execute command "/renamememememememe"]
function SpawnPet(p: player, pet: text):
spawn {_pet} at {_p}
tame {_pet} to %player%