kangarko / Boss

Premium custom monsters plugin with skill system, natural spawning and lots of sickest features!
https://www.mc-market.org/resources/21619/
77 stars 28 forks source link

1.19.4 - Adjusting mob spawn in a dungeon #1189

Closed Spygain closed 1 year ago

Spygain commented 1 year ago

Hello, I'd like to create a dungeon with mobs that spawn near the player. It's a dungeon with high corridors and large rooms, spread over several levels. I've built it in void. However, the mobs spawn above the dungeon, even in the void. The light value makes no difference to the spawn, so the mobs appear anywhere. As for the radius, I've set it to the minimum (5) and the mobs always appear several dozen blocks above (above the dungeon). I'd like to know if it's possible to set the appearance zone more precisely, around the player.

Exemple :

https://imgur.com/a/lenZ2fS

Code :

https://pastebin.com/jqUEfwBA

Thanks in advance

kangarko commented 1 year ago

Hey!

No problem and thanks for using Boss. For your case I recommend using precise spawn points. First, create spawn locations with /boss tools and then simply create a spawning rule that will spawn at these location points in the desired time intervals, either it'll be the rule of entering a region, or at a block.