on damage:
if {wzium::%victim%} is true:
clear {wzium::%victim%}
cancel event
on eat Mushroom Stew:
if player's tool is Mushroom Stew:
if name of player's tool is "&6&lMagiczna zupka":
if {zupka::%player%} is not set:
set {zupka::%player%} to true
play sound "entity_firework_rocket_blast" to player
allow flight to player
set player's flight mode to true
send "&6&l Zjadłes swoją zupke. Fly na 1 minute"
set {czaszupka::%player%} to 60
loop 60 times:
wait 1 second
remove 1 from {czaszupka::%player%}
send action bar "&5Pozostały czas latania: &4&l%{czaszupka::%player%}% sekund" to player
if {czaszupka::%player%} is 30:
play sound "entity_experience_orb_pickup" to player
send "&4&lPozostały czas fly: &2&l30 sekund!" to player
if {czaszupka::%player%} is 10:
play sound "entity_experience_orb_pickup" to player
send "&4&lPozostały czas fly: &2&l10 sekund!" to player
if {czaszupka::%player%} is 5:
play sound "entity_experience_orb_pickup" to player
send "&4&lPozostały czas fly: &2&l%{czaszupka::%player%}% &2&lsekund!"
if {czaszupka::%player%} is 4:
play sound "entity_experience_orb_pickup" to player
send "&4&lPozostały czas fly: &2&l4 &2&lsekund!" to player
if {czaszupka::%player%} is 3:
play sound "entity_experience_orb_pickup" to player
send "&4&lPozostały czas fly: &2&l3 &2&lsekund!" to player
if {czaszupka::%player%} is 2:
play sound "entity_experience_orb_pickup" to player
send "&4&lPozostały czas fly: &2&l2 &2&lsekund!" to player
if {czaszupka::%player%} is 1:
play sound "entity_experience_orb_pickup" to player
send "&4&lPozostały czas fly: &2&l1 &2&lsekund!" to player
set {wzium::%player%} to true
set {czaszupka::%player%} to 0
set player's flight mode to false
clear {zupka::%player%}
else:
cancel event
z lekką pomocą @FraZ gotowe.