Witam mam problem z inventory. Gdy klikam na stone to otwiera sie kolejne gui ale od razu wylacza drop ;/
command /drop [<text>]:
trigger:
if arg 1 is not set:
open chest with 1 row named "{@gui-named}" to player
set player's current inventory's slot 0 to stone named "{@stone-named}" with lore "{@stone-lore}"
if arg 1 is "stone":
open chest with 3 row named "{@gui-stone-named}" to player
if {diament.%player%} is true:
set player's current inventory's slot 0 to diamond named "{@diamond-named}" with lore "{@diamond-lore1}||{@diamond-lore2}"
if {diament.%player%} is false:
set player's current inventory's slot 0 to diamond named "{@diamond-named}" with lore "{@diamond-lore1}||{@diamond-lore2}"
on inventory click:
if inventory name of current inventory of player contains "{@gui-named}":
clicked slot is {@stone-slot}:
cancel event
execute player command "drop stone"
on inventory click:
if inventory name of current inventory of player contains "{@gui-stone-named}":
if player's current inventory's slot slot is diamond:
cancel event
if {diament.%player%} is true:
set {diament.%player%.name} to "&cWylaczony"
set {diament.%player%} to false
execute player command "drop stone"
send "&cWylaczyles &7drop &3diamentu"
else:
set {diament.%player%.name} to "&aWlaczony"
set {diament.%player%} to true
execute player command "drop stone"
send "&aWlaczyles &7drop &3diamentu"
Pytanie
kerpson 551
Witam mam problem z inventory. Gdy klikam na stone to otwiera sie kolejne gui ale od razu wylacza drop ;/
Odnośnik do komentarza
https://skript.pl/temat/25748-problem-z-inventory/Udostępnij na innych stronach
0 odpowiedzi na to pytanie
Rekomendowane odpowiedzi