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.

ElementDescriptionValue/Children
Node containing the custom mob spawning filters.
Attributes
PropertyRequiredFilter what mobs can spawn when and where.Filter
Sub-elements
PropertyRequiredFilter what mobs can spawn when and where.Filter
Mob Spawning Filter Matchers‚Äč
ElementDescriptionValue
Filter the reason a mob is being spawned.Spawn Reason
The mob to filter for.Creature Type
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>