Siemka, mam zrobione w gui pod komendą /cobblex
I wygląda to tak: https://imgur.com/2vYNBAJ
Kod:
command /test:
trigger:
new Inventory "&6&lCobble&6&lX &7&l- Drop";
"&6&lCobble&6&lX &7&l- Drop".Inventory.setRow{3};
"&6&lCobble&6&lX &7&l- Drop".Inventory.setItem{1, 64 17 named "&aDrewno" with lore "&7Ilosc: &616&7/&632&7/&648&7/&664||&7Szansa: &6{@dropDrewno}%%"};
"&6&lCobble&6&lX &7&l- Drop".Inventory.setItem{2, 10 sugar canes named "&aDrewno" with lore "&7Ilosc: &616&7/&632&7/&648&7/&664||&7Szansa: &6{@dropDrewno}%%"};
"&6&lCobble&6&lX &7&l- Drop".Inventory.setItem{3, 10 sugar canes named "&aDrewno" with lore "&7Ilosc: &616&7/&632&7/&648&7/&664||&7Szansa: &6{@dropDrewno}%%"};
"&6&lCobble&6&lX &7&l- Drop".Inventory.setItem{4, 10 sugar canes named "&aDrewno" with lore "&7Ilosc: &616&7/&632&7/&648&7/&664||&7Szansa: &6{@dropDrewno}%%"};
"&6&lCobble&6&lX &7&l- Drop".Inventory.setItem{5, sticky piston named "&aDrewno" with lore "&7Ilosc: &616&7/&632&7/&648&7/&664||&7Szansa: &6{@dropDrewno}%%"};
"&6&lCobble&6&lX &7&l- Drop".Inventory.setItem{6, 10 sugar canes named "&aDrewno" with lore "&7Ilosc: &616&7/&632&7/&648&7/&664||&7Szansa: &6{@dropDrewno}%%"};
"&6&lCobble&6&lX &7&l- Drop".Inventory.setItem{7, 10 cactus named "&aDrewno" with lore "&7Ilosc: &616&7/&632&7/&648&7/&664||&7Szansa: &6{@dropDrewno}%%"};
"&6&lCobble&6&lX &7&l- Drop".Inventory.setItem{8, 10 sugar canes named "&aDrewno" with lore "&7Ilosc: &616&7/&632&7/&648&7/&664||&7Szansa: &6{@dropDrewno}%%"};
"&6&lCobble&6&lX &7&l- Drop".Inventory.setItem{9, 2 villager spawn egg named "&aDrewno" with lore "&7Ilosc: &616&7/&632&7/&648&7/&664||&7Szansa: &6{@dropDrewno}%%"};
"&6&lCobble&6&lX &7&l- Drop".Inventory.setCommand{2, "<KOMENDA>"};
"&6&lCobble&6&lX &7&l- Drop".Inventory.setExecutor{3, "player"};
"&6&lCobble&6&lX &7&l- Drop".Inventory.display{player};
Jeszcze nie jest dokończony, ale jak się wpisuje /test nie ma zadnych errorów, a wyświetla tak jak widać na zdjęciu, za kazdym razem w innej kolejności te przedmioty. Raz brakuje jednego, raz dwóch, po prostu róznie, ale nigdy nie ma wszystkich.
Zawsze mi to działało, nie wiem o co chodzi...Moze ktos z Was sie spotkal z takim czyms? Pozdrawiam