What's wrong with this?
Zombies aren't spawning at the _spawnLoc
535, -30, 66, world "zombie") and location(380, -64, -68, world "zombie"):
if loop-block is black concrete powder:
add loop-block to {zombiespawnblocks::*}
loop {zombiespawnblocks::*}:
set {_loc} to location of loop-value
summonZombies({_loc})
Zombies aren't spawning at the _spawnLoc
Code:
function summonZombies(spawnLoc: location):
while {spawning_zombies} is true:
send "%{_spawnLoc}%" to players
spawn zombie at {_spawnLoc}
if {difficulty} = "easy":
wait 60 seconds
if {difficulty} = "normal":
wait 30 seconds
if {difficulty} = "hard":
wait 20 seconds
if {difficulty} = "nightmare":
wait 10 seconds
function zombieSpawn():
if {selected_map} = "forest":
delete {zombiespawnblocks::*}
loop all blocks within location(535, -30, 66, world "zombie") and location(380, -64, -68, world "zombie"):
if loop-block is black concrete powder:
add loop-block to {zombiespawnblocks::*}
loop {zombiespawnblocks::*}:
set {_loc} to location of loop-value
summonZombies({_loc})
if loop-block is black concrete powder:
add loop-block to {zombiespawnblocks::*}
loop {zombiespawnblocks::*}:
set {_loc} to location of loop-value
summonZombies({_loc})