made a gui it opens and there are no erros but when i try clicking on the stone it should teleport me but it doesnt
code:
command /tower:
trigger:
set metadata tag "towers" of player to chest inventory with 3 rows named "§0Towers"
set slot 11 of metadata tag "towers" of player to stone named "§8The cave" with lore "§7Difficulty:" and "§6Normal"
open (metadata tag "towers" of player) to player
on inventory click:
if event-inventory = (metadata tag "towers" of player):
cancel event
if index of event-slot is 13:
teleport player to location(3, -22, -32, world("world")) ```
