command /Boss [<text>]:
executable by: console
trigger:
set {_X} to random integer between {@XMax} and {@XMin}
set {_Y} to {@Y}
set {_Z} to random integer between {@ZMax} and {@ZMin}
set {_Tp.Boss} to location at {_X}, {_Y}, {_Z}
if biome at {_Tp.Boss} is not ocean or river or deep ocean:
loop blocks under {_Tp.Boss}:
if loop-block is not water or lava or air:
set {_Tp.Boss} to location at {_X}, loop-block's y-location+1, {_Z}
create an explosion of force 4 at {_Tp.Boss}
spawn a Zombie at {_Tp.Boss}
set max health of last spawned Zombie to 100
heal last spawned Zombie
set name of the spawned Zombie to "&6Test %spawned Zombie's health%/%max health of last spawned Zombie%"
set helmet of the spawned Zombie to diamond helmet of protection 10 and unbreaking 10
set chestplate of the spawned Zombie to diamond chestplate of protection 10 and unbreaking 10
set leggings of the spawned Zombie to diamond leggings of protection 10 and unbreaking 10
set boots of the spawned Zombie to diamond boots of protection 10 and unbreaking 10
set tool of the spawned Zombie to a diamond sword of sharpness 9 and fire aspect 4
send "%{_Tp.Boss}%" to all players
exit loop
stop
every 2 minute:
execute console command "Boss"