Started by
Themilkman
on
Topic category: Feature requests and ideas for MCreator
Okay, currenty, you can only make a mob spawn in certains dimension, or biome.
Imagine that an 3rd option, is, the mob spawn in only certains structure, that's would be so munch helpful, and faster for doing stuff like Boss, etc.
for content :D
I haven't found an easy way to do this with code; but there is an even simpler solution. I'm working on a mod that overhauls vanilla structures, and this was a problem I was having: getting custom mobs to spawn around structures that respawn them, such as pillager towers.
Anyways, it literally occured to me that the easiest way to do this was to just make a custom block that spawns mobs nearby when randomly ticked. For the surface world you can just make a procedure that chooses a random value in your desired range; and then spawns mobs at world surface height, plus that number to the x and z values of the block. It's a little trickier if you want to do this underground, but still fairly straightforward.
If you want a limited amount of mobs in you structure, you could just make the structure count entities (but no more will spawn tho). This is probably better choice for villages but anything else follow the top message.
if you use structure blocks, you could check the box "Keep entities", and it should work. I havent tested it, but it should work.