Witam. Chce zrobic cos takiego ze jak sie kliknie w jajko to daje graczowi losowy item, ale nie daje itemów z listy. Moj kod:
on click on a dragon egg: delete block wait 5 tick loop {bloki::*}: if loop-value is a {bloki::*}: stop set {_x} to a random item out of all items if {_x} is loop-value: send "&cNic nie wylosowales. Sprobuj jeszcze raz" stop give {_x} to the player send "&6Dostales nagrode" to player astop on break of dragon egg: loop {bloki::*}: if loop-value is a {bloki::*}: stop set {_x} to a random item out of all items if {_x} is loop-value: send "&cNic nie wylosowales. Sprobuj jeszcze raz" stop give {_x} to the player send "&6Dostales nagrode" delete block stopcommand /blokuj <text> <material>: trigger: if player has permission "golden.blokuj": if arg 1 is "dodaj": if arg 2 is set: add "%arg 2%" to {bloki::*} send "&cDodales &a %arg 2%" stop if arg 1 is "usun": if arg 2 is set: remove "%arg 2%" from {bloki::*} send "&cUsunales &a%arg 2%" stopcommand /blokuj-lista: trigger: if player has permission "golden.blokuj": send "&cLista: &a%{bloki::*}%" stop
Pytanie
FejdoxPL 0
Witam. Chce zrobic cos takiego ze jak sie kliknie w jajko to daje graczowi losowy item, ale nie daje itemów z listy. Moj kod:
Odnośnik do komentarza
Udostępnij na innych stronach
0 odpowiedzi na to pytanie
Rekomendowane odpowiedzi