Minecraft mob spawner generator

Commands

Any mob spawner with a custom spawn intervalLearn more

A spawner repeatedly creates its configured mob. It cannot be crafted or collected in vanilla Survival. A spawn egg changes the mob type; timing, counts, and ranges require block-data commands.

My Game select version

Save your preferences in this browser and apply them to supported tools. Settings in a shared link take priority. Wiki version labels are not affected.

Already have a command? Paste it to fill in the form

Choose a mob to summon

Hostile

Neutral

Peaceful

Aquatic

From the Nether

From the End

Special

Name, health, and tags

Separate tags with periods, up to 5 tags. The mob can then be selected using @e[tag=boss].

Behavior

Only for this mob

Effects

Useful

Hostile

Others

Equipment

Enter an ID or in-game name: iron_sword or Iron Sword. The setting on the right controls the drop chance. Normal drops require a player kill and may be damaged; Always drops the item at full durability, regardless of how the mob dies.

How often and how many

Format of the /give command

The format is needed only for the command /give: at /setblock Block data is always in curly braces, and its components are unchanged.

Result

/setblock and /give

without a name

Zombie in the spawner

Pause
10–40 seconds
For a wave
4
Player radius
16 blocks

Place beneath your feet

/setblock ~ ~ ~ minecraft:spawner{SpawnData:{entity:{id:"minecraft:zombie"}},SpawnPotentials:[{weight:1,data:{entity:{id:"minecraft:zombie"}}}],Delay:20s,MinSpawnDelay:200s,MaxSpawnDelay:800s,SpawnCount:4s,MaxNearbyEntities:6s,RequiredPlayerRange:16s,SpawnRange:4s}

Give by item

301 of 256
/give @p minecraft:spawner[block_entity_data={id:"minecraft:spawner",SpawnData:{entity:{id:"minecraft:zombie"}},SpawnPotentials:[{weight:1,data:{entity:{id:"minecraft:zombie"}}}],Delay:20s,MinSpawnDelay:200s,MaxSpawnDelay:800s,SpawnCount:4s,MaxNearbyEntities:6s,RequiredPlayerRange:16s,SpawnRange:4s}]

This command is too long for chat, which cuts input off at 256 characters. Run it from a command block instead.

This mob via the /summon command Once and right now, without a block

How to use the result

  1. Step back one block

    ~ ~ ~ — The player executing the command: /setblock Will place the spawner directly on you. Step back or replace with coordinates.

  2. Or place in hand

    /give Will give the spawner as an item — it can be placed anywhere like a regular block. The format depends on the server version.

  3. Give it darkness and space.

    NBT spawn conditions do not override: mobs need free blocks and, if required, darkness. And the player must be within range.

What to know about spawners

  • In survival mode, you cannot obtain a spawn egg. It cannot be crafted or dropped even with Silk Touch: a broken block yields nothing. Therefore, it requires a command.
  • Egg summoning changes only that mob. Click an egg on a standing spawner — it will start spawning that entity. This is how servers without commands operate. But the interval, number of mobs per wave, spawn limit nearby, and player radius when clicking with an egg cannot be changed: they are stored in the block data and can only be set via /setblock. /setblock or /give.
  • "Spawner" and "Spawner" — the same block. The Russian wiki and the game use different spellings for spawner, but the block identifier is the same: minecraft:spawner.
  • 1.18 renamed the field. Before SpawnData:{id:"…"}, became SpawnData:{entity:{id:"…"}}. The command in the old format executes and places an empty spawn point, saying nothing.
  • A player radius of zero means 'never'. The game searches for a player within a specified distance; at zero, no such player exists. This is the most common reason for 'placed it, but he's silent'.
  • SpawnPotentials Needs to be used with SpawnData. SpawnData defines the next spawn, while SpawnPotentials controls later selections. The generator writes both so subsequent spawns keep the selected mob.
  • Ceiling nearby — this is for a farm. The spawner counts nearby mobs of the same type and pauses at its limit. Move mobs out of its detection area to allow more to spawn.
  • Interval in ticks. Twenty ticks equal one second. Vanilla 200–800 means a pause from ten to forty seconds.
  • The mob inside the spawner can be any type. Name above the head, health, effects, and 'no AI' work exactly as in the command /summon— the same code collects them.

Will give the same mob without a block mob generator, and finding already spawned entities helps target selector.

Frequently asked questions

How to change the mob in the spawner?

A spawn egg changes only the mob type. Timing, counts, and player-detection range are stored in block data and configured with commands.

Why isn't the spawner spawning mobs?

The most common cause — RequiredPlayerRange:0. The game looks for a player within the specified distance, and zero distance doesn't exist. The second cause — standard spawn conditions: light, location, mob ceiling.

Can you get a spawn emitter in survival mode?

No: it cannot be crafted or dropped even with Silk Touch. It must be placed with a command.