---------------- name = "Dorkus Maximus (Spawner)" description = "Spawns the Dorkus Maximus" logging = enabled scheduling-priority = low timeout = 20 minutes ---------------- const $self = first eager &fixture from context start pending once when started define create { var $boss = ( spawn place at @self + < UP > * 5 mob &nether_skeleton with { name → "Dorkus Maximus" health → chance of 96 .. 512 level → 80 olivine → "Dorkus Maximus" fence → box @self - <1,1,1> * 20 to @self + <1,1,1> * 20 modifiers → { owly → { base → 60 } } equipment → { hand → item &mmm:obsidian_hoe with { name → "Icy Dud" description → "This hoe is really cool!\n" :: "I mean literally, it's cold!" modifiers → { agility → { operator → scale; amount → 0.25 } health → { operator → boost; amount → 3 } stability → { operator → boost; amount → 1.8 } } enchantments → [ { type → knockback; level → 2 } { type → looting; level → 9 } { type → unbreaking; level → 7 } ] } helmet → item &diamond_helmet with { enchantments → chance 1 .. 2 of [ { type → projectile_protection; level → 4 } { type → unbreaking; level → chance of 1 .. 3 } ] } chest → item &mmm:darksteel_chestplate with { enchantments → chance 1 .. 2 of [ { type → projectile_protection; level → 4 } { type → unbreaking; level → chance of 1 .. 3 } ] } leggings → item &mmm:darksteel_leggings with { enchantments → chance 1 .. 2 of [ { type → projectile_protection; level → 4 } { type → unbreaking; level → chance of 1 .. 3 } ] } boots → item &diamond_boots with { enchantments → chance 0 .. 2 of [ { type → feather_falling; level → chance of 2 .. 4 } @ 70% { type → projectile_protection; level → 4 } { type → unbreaking; level → chance of 1 .. 3 } ] modifiers → { stability → { operator → augment; amount → 2.5 } } } } drops → [ item &mmm:ruby item &nether_star ] } ) <: &entity ~ &living log @self\location and "Spawned 'Dorkus Maximus'" and @boss\location once when started start cooldown when @boss all dead } on exit despawn @boss define cooldown { log @self\location and "Cooling down for 5 minutes prior to 'Dorkus Maximus' respawn..." once when started start pending when 5 minutes elapses } define pending { var $sucker = first pure &player inside box @self - <1,1,1> * 80 to @self + <1,1,1> * 80 log @self\location and "Waiting for nearby players" once when started start create when existing @sucker }