Allowing custom structure to generate different mobs upon generation

Started by mememem on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Allowing custom structure to generate different mobs upon generation

Hi, I want to make a structure for my custom mobs to generate in. But I wanted to have them generate randomly, like you have to visit multiple structures to collect them all. So I made a spawner enttity and I placed them in the structure's schematic. Then later and made so that they despawn itself on spawning and will choose at a random percentage to spawn my mobs.

But when I actually test out to see the structure generation in the world. The game failed to spawn any of my mobs. Vanilla animals that are included in the structures spawn like normal however. Idk if its because I set it so the spawner entity not to spawn naturally that it screwed up the spawning during structure generation.

 

Any help would be much appreciated.

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Let me explain it again, I…
Wed, 05/06/2026 - 08:00

Let me explain it again, I am making a mod about dwarf with different dwarf professions, and I want you to travel around the world and collect them in their Dwarven Blacksmith. But what professions are in a Blacksmith is decided randomly. 

So far, the No AI living entity that responsible for spawn in a random dwarf profession hasn't been generated in the structures, despite the living animals in the barn section spawned in like normal. So I wonder if that is because the spawning entity is set to not be able to spawn naturally anywhere. So the game somehow never spawn them in their structures.