well i cannot find the place to put the if statement in the skript where it would only check when the gui slot is clicked since now its attempting to check when the gui is opened instead i feel like im missing the blatantly obvious place to put it but still trying learn since im bad with guis currently
command /warps:
trigger:
open virtual chest inventory with size 3 named "&b&lWarps" to player
format gui slot 2 of player with dirt to execute:
if player has dirt:
execute console command "/clearinventory %player% dirt 1"
execute console command "/give %player% obsidian 1"
command /warps:
trigger:
open virtual chest inventory with size 3 named "&b&lWarps" to player
format gui slot 2 of player with dirt to execute:
if player has dirt:
execute console command "/clearinventory %player% dirt 1"
execute console command "/give %player% obsidian 1"