What is an Entity Spawner?
An Iris spawner defines:- What entities spawn
- Where they spawn (biome types, light levels, time)
- How often they spawn (rates, cooldowns)
- Initial spawns vs. continuous spawning
Creating a Spawner
Spawner Configuration
Basic Properties
| Field | Type | Default | Description |
|---|---|---|---|
spawns | Spawn[] | - | List of entity spawns (required) |
initialSpawns | Spawn[] | [] | Spawns that happen once per chunk |
maxEntitiesPerChunk | Integer | 1 | Max entities before spawner pauses |
energyMultiplier | Double | 1.0 | Energy cost multiplier |
Spawn Groups
Control where spawners activate:NORMAL: Land biomes onlyUNDERWATER: Ocean biomes onlyBEACH: Shore biomes onlyCAVE: Cave areas
Time Restrictions
- Day: 0-12000
- Sunset: 12000-13000
- Night: 13000-23000
- Sunrise: 23000-24000
Weather Restrictions
ANY: Any weatherCLEAR: Clear weather onlyRAIN: Rain/snow onlyTHUNDER: Thunderstorm only
Light Level Restrictions
Spawn Rates
Global rate limit:interval: Ticks between spawn attemptscount: Max spawns per interval
Entity Spawn Configuration
Basic Entity Spawn
| Field | Type | Description |
|---|---|---|
entity | String | Entity type (required) |
minAmount | Integer | Minimum entities to spawn |
maxAmount | Integer | Maximum entities to spawn |
chance | Double | Spawn probability (0-1) |
Entity Types
Use Minecraft entity IDs: Passive:cow,sheep,pig,chickenhorse,donkey,mule,llamacat,ocelot,parrot,wolfrabbit,fox,bee,turtlevillager,wandering_trader
zombie,skeleton,creeper,spiderenderman,witch,slimephantom,drowned,husk,straypillager,vindicator,evoker
zombified_piglin,piglin,hoglinblaze,ghast,magma_cubewither_skeleton,strider
cod,salmon,tropical_fish,pufferfishsquid,glow_squid,dolphinguardian,elder_guardian
Custom Entity Data
Baby entities:Example Spawners
Passive Animals
Hostile Mobs
Ocean Life
Desert Creatures
Cave Dwellers
Nether Spawner
Jungle Wildlife
Night Phantoms
Energy System
How Energy Works
Spawners consume “energy” to prevent infinite spawning:- Dimension has max energy pool (default: 1000)
- Each spawn attempt costs energy
- Energy regenerates over time
- When energy is depleted, spawning pauses
Energy Configuration
In dimensions:Infinite Energy
Spawner References
In Dimensions
In Regions
In Biomes
Tips & Best Practices
Balance Entity Counts
- Passive mobs: 8-15 per chunk
- Hostile mobs: 5-10 per chunk
- Rare creatures: 1-3 per chunk
Use Initial Spawns
AddinitialSpawns for immediate population:
Layer Multiple Spawners
Combine spawners for variety:Match to Environment
- Light levels: Dark for hostiles, any for passive
- Groups: Underwater for fish, normal for land
- Time: Night for hostiles, any for passive
- Weather: Thunder for special events
Prevent Lag
- Use reasonable
maxEntitiesPerChunk - Set appropriate spawn rates
- Don’t use
infiniteEnergyunless testing - Consider
energyMultiplierfor balance
FAQ
FAQ
Why aren't entities spawning?
Why aren't entities spawning?
Check:
- Light levels match
allowedLightLevels - Time is within
timeBlockrange - Weather matches
weathersetting - Biome type matches
group - Energy isn’t depleted (check
infiniteEnergy) maxEntitiesPerChunknot exceeded
What's the difference between spawns and initialSpawns?
What's the difference between spawns and initialSpawns?
initialSpawns execute once when a chunk is first generated. spawns continue to replenish entities over time.Can I spawn modded entities?
Can I spawn modded entities?
Yes, if the mod properly registers entities with Bukkit/Spigot. Use the entity’s namespaced ID.
How do I make boss mobs spawn?
How do I make boss mobs spawn?
Use very low
chance (0.001-0.01), high energyMultiplier, and strict conditions (time, weather, light).Why do I have too many entities?
Why do I have too many entities?
Lower
maxEntitiesPerChunk, reduce chance values, increase spawn interval, or raise energyMultiplier.Next Steps
- Configure Biomes for appropriate spawner groups
- Create Loot Tables for mob drops
- Design Regions with themed wildlife