command /gui: trigger: open chest with 1 rows named "&cFajne GUI" to player # Otwieramy GUI o nazwie &cFajne GUI set slot 0 of player's current inventory to diamond of sharpness 1 named "&cEnchantowany Diament" with lore "O lool" # ustaw slot 0 w ekwipunku gracza na diament z enchantem ostrosc 1 nazwany &cEnchantowny Diament i o lore O lol on inventory click: # Gdy ktos kliknie item w GUI if inventory name of player's current inventory is "&cFajne GUI": # Jesli nazwa gui gracza jest &cFajne GUI cancel event # Zatrzymaj event (Nie mozna wyciagac) if clicked slot is 0: # Jesli ktos kliknie slot 0 w gui "&cFajne GUI" execute console command "give %player% diamond 1" # Wykonaj komende give diamond 1 send "&cDostales Diament" to player # Wyslij wiadmosc do klikajÄ…cego close player's inventory # Zamknij GUI stop