^ ^ ^ ^
Workspace is attached. Check OccultPigNaturalEntitySpawningCondition.
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"