options:
liczba-szkieletow: 10
every 30 seconds:
if {nieumarleSzkielety::ilosc} is not set:
set {nieumarleSzkielety::ilosc} to 0
broadcast "Ustawiono zmienna!"
if {nieumarleSzkielety::ilosc} is greater than or equal to {@liczba-szkieletow}:
broadcast "Zbyt wiele szkieletow!"
stop
add 1 to {nieumarleSzkielety::ilosc}
spawn a wither skeleton at location -628, 203, -18 in world "world"
set max health of last spawned wither skeleton to 30
heal last spawned wither skeleton
set name of last spawned wither skeleton to "&c&lNieumarly Szkielet"
set tool of last spawned wither skeleton to stone sword of sharpness 10
broadcast "Szkielet pojawil sie!"
on death of wither skeleton:
if name of victim is not "&c&lNieumarly Szkielet":
stop
remove 1 from {nieumarleSzkielety::ilosc}
chance of 5%:
drop 1 redstone named "&4&lRuna zwiekszonych obrazen" at victim