Spawner Generator
Spawner
About the mob spawner generator
A spawner block continuously produces entities according to the data stored inside it. Configuring one by hand means writing nested block entity data with spawn potentials, delays and range limits, which is one of the fiddliest pieces of syntax in the game.
How to use this generator
Choose the entity to spawn and then tune the timing and range values: the delay between attempts, how many entities appear per attempt, how close a player has to be, and how many entities in the area stop it from producing more.
Things worth knowing
- MinSpawnDelay and MaxSpawnDelay are measured in ticks; 20 ticks is one second.
- MaxNearbyEntities stops the spawner once that many matching entities are already close by.
- RequiredPlayerRange sets how near a player must be for the spawner to run at all.
- SpawnPotentials lets one spawner produce different entities with different weights.
The generated command is produced entirely in your browser and nothing you enter is sent to EloTiers. Paste the result into the chat bar or a command block in your own world. If a command is rejected, check that the Minecraft version selected here matches the version you are actually running — the item and entity data format changed substantially in 1.20.5.
Worked examples
A busy zombie spawner
/setblock ~ ~ ~ minecraft:spawner{SpawnData:{entity:{id:"minecraft:zombie"}},SpawnCount:4,MaxNearbyEntities:12,RequiredPlayerRange:16,MinSpawnDelay:100,MaxSpawnDelay:300}Spawns up to four zombies per attempt, every 5 to 15 seconds, while a player is within 16 blocks and fewer than twelve zombies are nearby.
Slowing a spawner down
/setblock ~ ~ ~ minecraft:spawner{SpawnData:{entity:{id:"minecraft:skeleton"}},MinSpawnDelay:400,MaxSpawnDelay:800}Raising both delay values makes the spawner wait 20 to 40 seconds between attempts. Delays are measured in ticks, with 20 ticks per second.
Frequently asked questions
Why is my spawner not producing anything?
Usually no player is within RequiredPlayerRange, or the area already holds MaxNearbyEntities of that type. Spawners also need free space around them and respect light levels for some mobs.
How do I make one spawner create different mobs?
Use SpawnPotentials with several entries and give each a weight. The game picks one entry per attempt in proportion to its weight.
Can I change an existing spawner?
Yes, run /data merge block on the spawner's position with the new values, or replace it with /setblock as in the examples above.