command /kom:
trigger:
open chest with 5 row named "Kom" to player
set player's current inventory's slot 4 to diamond named "&aNazwa" with lore "&aOpis1" and "&eOpis2"
on inventory click:
if inventory name of current inventory of player is "Kom":
if clicked slot is 4:
execute player command "spawn"
cancel event
Mam tutaj przykładowe gui prawie wszystko działa jak należy z wyjątkiem tego, że jeśli klikne 4 slot w MOIM ekwipunku podczas, gdy mam otwarte gui "Kom" wywołuje komende z 4 slotu gui "Kom".