Hi, im adding custom mobs to my server, and im adding Easy, Medium and hard mobs. Im trying to makit so it only spawn like 5 mobs at a time. How can i make it so it will spawn 5 zombies at a time, and not anymore. Ive already started on it, and its not working the best. Sometimes it wont even spawn the zombies, and sometimes it spawns more than 5. Its like a 50/50 chance it will work. If anyone knows how to fix this, please let me know ASAP.
Thanks!
~Matt
CODE:
Thanks!
~Matt
CODE:
Code:
every 5 seconds:
loop 5 times:
set {var} to random element out of {easymobs::*}
if {maxspawn} is less than or equal to 5:
spawn adult zombie at {var}
add 1 to {maxspawn}
set name of last spawned zombie to "&cBrute Zombie"
set tool of last spawned zombie to iron sword of sharpness 1 named "&cBrute sword"
equip last spawned zombie with iron helmet of protection 1
equip last spawned zombie with iron chestplate of protection 1
equip last spawned zombie with iron leggings of protection 1
equip last spawned zombie with iron boots of protection 1
on death of adult zombie:
if attacker is a player:
if "%region at attacker%" contains "night":
remove 1 from {maxspawn}