On Entity spawn condition isn't working

Status
Works as designed
Type
Product/platform
Not applicable
MCreator version
Priority
Normal
Issue description

^ ^ ^ ^

Workspace is attached. Check OccultPigNaturalEntitySpawningCondition.

reproducing steps:
1. create a new world with cheats and creative mode

2. do /warp_true_end to travel to the dimension

3. enjoy seeing purple pigs spawn in air and falling into the void even though I made a condition for them to only spawn if y-1 block is purple endstone grassy block "Otherworldly grass"

 

Attachment Size
workspace73.08 KB 73.08 KB

Issue comments

This is normal.

Entity spawning can be defined in two locations (but only one should be used):

  1. In the entity creator itself
  2. From the biome

ONLY option 1. will use custom spawning condition, biome spawning is not that advanced, and uses its own control logic for conditions derived from the spawning type.

should I open a seperate ticket for mobs spawning in the air for end like generation with biome defined spawning then?

I don't think I can change anything about this, default biome gen code is used there.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.