on death:
if victim is zombie:
if victim's name is "&2&lTier 2 Boss":
clear the drops
hide bossbar "&2&lTier 2 Boss"
chance of 100%:
set {_Drop} to lime glazed terracotta named "&2&lTIER 2 SOUL"
drop {_drop} at victim's location
stop
on damage:
if victim is zombie:
if victim's name is "&2&lTier 2 Boss":
set {_Value} to victim's health
set bossbar "&2&lTier 2 Boss" progress to {_Value}
on rightclick with lime dye:
name of player's tool is "&2&lTIER 2 BOSS SUMMON"
remove 1 of player's held item from player
wait 2 seconds
create a safe explosion of force 3 at player
spawn 1 of zombie at location of player
set name of spawned entity to "&2&lTier 2 Boss"
set last spawned entity's max health to 100
set last spawned entity's health to 100
equip last spawned entity with diamond helmet of protection 5, unbreaking 10
equip last spawned entity with diamond chestplate of protection 5, unbreaking 10
equip last spawned entity with diamond leggings of protection 5, unbreaking 10
equip last spawned entity with diamond boots of protection 5, unbreaking 10
set held item of last spawned entity to diamond sword of sharpness 8, unbreaking 10
apply speed 5 to last spawned zombie for 100 minutes
apply strength 8 to last spawned zombie for 100 minutes
create bossbar titled "&2&lTier 2 Boss" and id "&2&lTier 2 Boss" for all players with progress 100 with colors green
wait 8 seconds
create a safe explosion of force 5 at player
spawn 1 of husk at location of player
set last spawned husk's max health to 75
set last spawned husk's health to 75
set display name of last spawned husk to "&2&lUndead Guard"
apply speed 3 to last spawned husk for 100 minutes
apply strength 8 to last spawned husk for 100 minutes
wait 0.1 seconds
spawn 1 of husk at location of player
set last spawned husk's max health to 75
set last spawned husk's health to 75
set display name of last spawned husk to "&2&lUndead Guard"
apply speed 3 to last spawned husk for 100 minutes
apply strength 8 to last spawned husk for 100 minutes
wait 0.1 seconds
spawn 1 of husk at location of player
set last spawned husk's max health to 75
set last spawned husk's health to 75
set display name of last spawned husk to "&2&lUndead Guard"
apply speed 3 to last spawned husk for 100 minutes
apply strength 8 to last spawned husk for 100 minutes
wait 0.1 seconds
spawn 1 of husk at location of player
set last spawned husk's max health to 75
set last spawned husk's health to 75
set display name of last spawned husk to "&2&lUndead Guard"
apply speed 3 to last spawned husk for 100 minutes
apply strength 8 to last spawned husk for 100 minutes
wait 0.1 seconds
spawn 1 of husk at location of player
set last spawned husk's max health to 75
set last spawned husk's health to 75
set display name of last spawned husk to "&2&lUndead Guard"
apply strength 8 to last spawned husk for 100 minutes
apply speed 3 to last spawned husk for 100 minutes
wait 0.1 seconds
stop
every 1 second:
set bossbar "&2&lTier 2 Boss" progress to {_Value}
on death:
if victim is husk:
if victim's name is "&2&lUndead Guard":
clear the drops