Fabric API

Fabric API

106M Downloads

[Suggestion] SpawnRestrictionRegistry

YanisBft opened this issue ยท 0 comments

commented

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);