command /guimake:# Zupelnie opcjonalna czesc kodu, prezentuje ona jak przygotowac przedmioty w zmiennych do umieszczenia ich w menu. trigger: if player is op: give arrow named "&f16 &e-> &a20 strzal" to player set line 2 of lore of player's tool to "&aCena: &63 zetony" set {gui::strzaly} to player's tool remove player's tool from player give steak named "&f2 &e-> &a3 stejki" to player set line 2 of lore of player's tool to "&aCena: &64 zetony" set {gui::jedzenie} to player's tool remove player's tool from player give coarse dirt named "&f16 &e-> &a24 bloki" to player set line 2 of lore of player's tool to "&aCena: &65 zetonów" set {gui::bloki} to player's tool remove player's tool from player give stone pickaxe named "&fDrewniany &e-> &aKamienny kilof" to player set line 2 of lore of player's tool to "&aCena: &66 zetonów" set {gui::kilof} to player's tool remove player's tool from player send "&bGUI &agotowe!" to player command /menu: trigger: open chest inventory named "&aMenu" to player set slot 0 of player's current inventory to light blue stained glass pane named " " set slot 1 of player's current inventory to light blue stained glass pane named " " set slot 2 of player's current inventory to light blue stained glass pane named " " set slot 3 of player's current inventory to light blue stained glass pane named " " set slot 4 of player's current inventory to light blue stained glass pane named " " set slot 5 of player's current inventory to light blue stained glass pane named " " set slot 6 of player's current inventory to light blue stained glass pane named " " set slot 7 of player's current inventory to light blue stained glass pane named " " set slot 8 of player's current inventory to light blue stained glass pane named " " set slot 9 of player's current inventory to pink stained glass pane named " " set slot 11 of player's current inventory to pink stained glass pane named " " set slot 13 of player's current inventory to pink stained glass pane named " " set slot 15 of player's current inventory to pink stained glass pane named " " set slot 17 of player's current inventory to pink stained glass pane named " " set slot 18 of player's current inventory to light blue stained glass pane named " " set slot 19 of player's current inventory to light blue stained glass pane named " " set slot 20 of player's current inventory to light blue stained glass pane named " " set slot 21 of player's current inventory to light blue stained glass pane named " " set slot 22 of player's current inventory to light blue stained glass pane named " " set slot 23 of player's current inventory to light blue stained glass pane named " " set slot 24 of player's current inventory to light blue stained glass pane named " " set slot 25 of player's current inventory to light blue stained glass pane named " " set slot 26 of player's current inventory to light blue stained glass pane named " " # set slot 10 of player's current inventory to ender pearl named "&bPrzenies mnie na spawn!" set slot 12 of player's current inventory to 3 of {gui::jedzenie}# Aby wyswietlic te 3 przedmioty, wczesniej wpisz /guimake set slot 14 of player's current inventory to 24 of {gui::bloki} set slot 16 of player's current inventory to {gui::kilof} on inventory click: if name of player's current inventory is "&aMenu":# Ta czesc kodu zapobiega wyciaganiu przedmiotów z menu :) cancel event if name of event-slot contains "&bPrzenies mnie na spawn!":# Prostsza wersja tego na dole ;) execute player command "spawn" close the player's inventory send "&bPierwsza wersja" to player if event-inventory != player' inventory:# Rozbudowana wersja, prezentujaca warunki które mozesz wykorzystac :) if name of player' current inventory = "&aMenu": if event-slot = ender pearl: if index of event-slot = 10: if event-click type = left mouse button: if name of event-slot = "&bPrzenies mnie na spawn!": execute player command "spawn" close the player's inventory send "&bPierwsza wersja" to player