nie juz dziala chodzi o to ze to musialem przerobic i dziala tylko chcialbym zebys mi zrobil tak aby ciagle sie zmienialo a nie zeby sie zmienilo i juz KOD:
command /testy:
trigger:
open chest with 6 rows named "Disco XD" to player
set {_kolor} to 1
set {_helm} to leather helmet
while inventory name of current inventory of player is "Disco XD":
loop 99999999 times:
if {_kolor} is 1:
dye {_helm} (0, 0, 255)
set player's current inventory's slot 0 to {_helm}
if {_kolor} is 2:
dye {_helm} (255, 0, 0)
set player's current inventory's slot 0 to {_helm}
add 1 to {_kolor}
if {_kolor} is 3:
set {_kolor} to 1
wait 0.5 seconds
on inventory click:
if inventory name of current inventory of player is "Disco XD":
cancel event
(TEN KOD DZIALA TAMTEN NIE :P)
Temat do zamkniecia