mob spawning in minecraft structure

Started by Biscuit_Blender on

Topic category: Help with MCreator software

Last seen on 03:10, 5. Feb 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
mob spawning in minecraft structure

how could i change a woodland mansion so a new mob spawns in it? i want to make the illusioner spawn in the woodland mansions, so its not a custom mob

Last seen on 21:55, 20. Feb 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To sort-of answer your…
Sat, 10/28/2023 - 19:19

To sort-of answer your question, No, there's not a great way to do this. But I can think of some weird workarounds.

One method you could try is checking if the player is in a woodland mansion, and, if they are, having a chance of spawning illusioners with a random offset somewhere nearby. You could check if the player is surrounded by blocks that make up the woodland mansion using the 'check for block in 6*6*6 procedure template, and probably also check that there are evokers and vindicators nearby using the 'does entity exist in radius' function. 

Then, you could use random numbers for an offset, making sure they aren't too small/too close to the player, then increasing the y level until you find a 1*2*1 space of air with a floor below it to spawn an illusioner on.

...Or, if you wanted to make this much, much simpler, whenever you spawn an evoker, or whenever a vindicator spawns and there's an evoker nearby, you could just spawn an illusioner at the same location. This would be as simple as using the 'do with 70% chance' procedure template, and setting the global trigger to 'when entity spawns.' (Though keep in mind this would probably also affect raids.)