options:
tick-rate: 20 # 1 saniye
globals:
mobCount: 0
maxMobCount: 15
respawnDelay: 200 # 10 saniye
on load:
set {respawnTask} to task:
loop every {respawnDelay} ticks:
if {mobCount} is less than {maxMobCount}:
set {mobCount} to {mobCount} + 1
spawn a zombie at location (0, 64, 0) in world "world" # Değiştirilebilir
else:
cancel task {respawnTask}
start {respawnTask}
on entity death:
if the entity is a zombie:
wait 10 seconds
respawn the entity