I want to have a certain amount of mobs spawn before they stop for an rpg server heres my code:
every 5 seconds:
spawn zombie at location at (-2, -60, 32) in "w1"
add 1 to {zom}
on death:
if victim is a zombie:
remove 1 from {zom}
there are no errors, but when I check the variable count, it says <none> and after changing it they dont spawn at all. can somebody help me?
every 5 seconds:
spawn zombie at location at (-2, -60, 32) in "w1"
add 1 to {zom}
on death:
if victim is a zombie:
remove 1 from {zom}
there are no errors, but when I check the variable count, it says <none> and after changing it they dont spawn at all. can somebody help me?