I am trying to make a custom spawner, I can't seem to get the zombie to spawn at the spawner location unless I want major server lag
every 15 seconds:
loop 300 times:
loop {T2SpawnerList::*}:
if {T2SpawnerList::%loop-number%} is set:
set {_loc} to {T2SpawnerList::%loop-number%}
zombie(2 meteres above {_loc})
set display name of last spawned zombie to "T2"
function zombie(loc: location):
spawn a zombie at {_loc}
every 5 seconds:
loop all players:
loop all blocks in radius 25 of loop-player:
loop-block is light green clay:
loop 300 times:
add location of {T2SpawnerList::%loop-number%} to {T2SpawnerList::*}
every 15 seconds:
loop 300 times:
loop {T2SpawnerList::*}:
if {T2SpawnerList::%loop-number%} is set:
set {_loc} to {T2SpawnerList::%loop-number%}
zombie(2 meteres above {_loc})
set display name of last spawned zombie to "T2"
function zombie(loc: location):
spawn a zombie at {_loc}
every 5 seconds:
loop all players:
loop all blocks in radius 25 of loop-player:
loop-block is light green clay:
loop 300 times:
add location of {T2SpawnerList::%loop-number%} to {T2SpawnerList::*}