kzarius/TheKingdomServer

Make the EliteMobs event bosses spawn above-ground

Closed this issue · 2 comments

The event bosses, such as the Treasure Goblin and Zombie King, almost always spawn below-ground. Find a way to have them spawn above-ground.

EliteMobs must not be spawned as a custom mob, but chosen after naturally spawned and then changed. No way to currently hook into a custom naming event in Denizen.

Maybe I can watch all new spawns for a second, and see if they are customized right away. Unlikely to work with bosses though. I feel that they are picked from all of that boss type during the event trigger, and not from a newly spawned boss type.

Was able to watch new mobs to see if they gain a custom name shortly after spawned. Bosses, luckily, are chosen this way, as well. So wrote a script to find surface blocks, if the boss spawns below sea level in the overworld.