Skip to main content

Mob Spawning

By default, PGM disables all mob spawning. The mobs module allows this behavior to be customized to allow spawning of specific mobs. This module makes use of the <spawn>, <mob> and <entity> filters to only allow specific mobs to spawn. Mob spawns can also be filtered against any other filter type, including regions.

ElementDescription
<mobs> </mobs>Node containing the custom mob spawning filters.
AttributesValue/Children
filterPropertyRequiredFilter what mobs can spawn when and where.Filters
Mob Spawning Filter Matchers
ElementDescriptionValue
<spawn> </spawn>Filter the reason a mob is being spawned.Spawn Reason
<mob> </mob>The mob to filter for.Creature Type
<entity> </entity>The entity to filter for.Entity Type

Examples

<!-- Only allow mobs to spawn from monster spawners. -->
<mobs>
<filter>
<spawn>spawner</spawn>
</filter>
</mobs>

<!-- Only allow cave spiders spawned with spawn eggs -->
<mobs>
<filter>
<all>
<mob>cave spider</mob>
<spawn>spawner egg</spawn>
</all>
</filter>
</mobs>