YanisBft opened this issue 5 years ago ยท 0 comments
SpawnRestriction is used to limit mob spawning to water or ground, also with the heightmap type.
Example syntax: SpawnRestrictionRegistry.INSTANCE.add(EntityType.PIG, SpawnRestriction.Location.ON_GROUND, HeightMap.Type.MOTION_BLOCKING_NO_LEAVES);
SpawnRestrictionRegistry.INSTANCE.add(EntityType.PIG, SpawnRestriction.Location.ON_GROUND, HeightMap.Type.MOTION_BLOCKING_NO_LEAVES);