o tak
on consume:
player is in world "world" or world "world_nether" or world "world_the_end"
if player's tool is potion named "&cEliksir Życia":
add 1 to {zycia::%player%}
send "&cWypiłeś/as Eliksir Życia i Dodalo tobię życia"
set {tablist::zycia::%player%} to tabListFooter({zycia::%player%})
wait 0.05 second
execute console command "/execute run clear %player% minecraft:glass_bottle 1"
on death of player:
player is in world "world" or world "world_nether" or world "world_the_end"
remove 1 from {zycia::%player%}
set {tablist::zycia::%player%} to tabListFooter({zycia::%player%})
if {zycia::%player%} <= 0:
kick player due to "&cBrak żyć! Wróć ponownie za 24 godziny"
ban player due to "&cBrak żyć! Wróć ponownie za 24 godziny" for 24 hours
???