Monster Spawner

From Minecraft Wiki
(Redirected from Spawner)
Jump to: navigation, search
Monster Spawner
Monster Spawner.gif
Monster Spawner

Solid Block






Graphical Only


No (Small amount of light for Pocket Edition)

Blast resistance





A wooden pickaxe or better is required to mine this block




Yes (64)




Mined: 15–43

First appearance

Infdev Seecret Friday 2

Tile Entity ID


Data value

dec: 52 hex: 34 bin: 110100



Monster spawners (or mob spawners) are blocks having the appearance of a bluish-black cage structure. Inside the cage there are flames that do not give off any light and a miniature spinning version of the mob that will spawn, which slowly increases speed until the next mob spawns. Spawners can spawn any mob. However, in normal worlds they are only generated to spawn zombies, skeletons, spiders, cave spiders, blazes, and silverfish.

Players have designed many traps to kill mobs from spawners, employing a long fall, drowning, lava, cactus or a combination of these, which allow the player to collect item drops or experience in great numbers with little risk (see monster spawner traps.)

An interesting quirk of monster spawners (and end portal frames and Slime blocks) is that they are transparent in their rendering only - unlike most other transparent blocks, they can have torches and redstone placed on them, conduct a redstone current, will suffocate mobs, and more.



Spawners can not be obtained at all in survival mode. The proper tool to mine them with is the pickaxe, and they will drop 15-43 experience when broken.


In Pocket Edition, they are available in the creative inventory. Spawners do not appear in the PC version creative inventory. However, they can be spawned in using the /give command. It is also worth noting that once a spawner is placed in the PC version, the mob they spawn can be changed easily by right clicking one with a mob spawn egg

Block Hardness Tool Breaking time (seconds)
Hand Wooden Stone Iron Diamond Golden Shears Sword

Monster Spawner
25 3.75 1.875 1.25 0.9375 0.625

Natural generation[edit]

A monster spawner that spawns skeletons.

Spawners can generate naturally in these places, spawning mobs chosen randomly when generated:

Spawns Zombies (50% chance), Skeletons (25%), or Spiders (25%). One per dungeon. 0.5% (1 in 200) mobs spawned at a Spider Spawner will be a Spider Jockey. Chicken Jockeys can spawn from Zombie Spawners.
Abandoned Mine Shafts
Spawns Cave Spiders. Located in horizontal tunnels, heavily surrounded by Cobwebs.
Spawns Silverfish. Located in the End Portal room. One per stronghold.
Nether Fortresses
Spawns Blazes. Located on Nether fortress balconies with stairs leading up to them.

Naturally occurring spawners will not spawn passive animals, Creepers, Endermen, Slimes, Zombie Pigmen, Ghasts, Magma Cubes, Villagers, Golems, or Bosses. However, if a map editor, a mod, or a Spawn Egg is used to create a spawner for any mob (although correct conditions must be upheld for the spawners to actually spawn a mob), it will function as expected (so it will even spawn Enderdragons)

There is no way to obtain a spawner in your inventory in Survival mode without turning on cheats, using mods with an inventory editor program, or using the /give or /setblock commands in a multiplayer server. It does not appear in the Creative mode inventory. If such a spawner is placed, or if a spawner is missing its tile entity data, it will spawn the same entity, but will have a pig inside.

Spawning behavior[edit]

A spawner will spawn mobs in the surrounding area, provided suitable spawning locations for the block's mob type can be found in the area. Spawning conditions vary from mob to mob. For example, Overworld monsters can only spawn in darkness (light level 7 or below), and animals can only spawn with a light level 9 or above. Spawner blocks can spawn some mobs in mid-air, ignoring general rules about spawning on solid ground. Pigs, however, still require a grass block on which to spawn.

A monster spawner is only active when a player is within a radius of 16 blocks from the spawner. While the block is active, it will spawn mobs within an 8×2×8 block volume (8 wide and 2 high and 8 long) centered on the center of the block, effectively meaning mobs can spawn in a 9x9 area, or 3.5 blocks from the spawner. Mobs can spawn anywhere in this range that is suitable, even if the immediate vicinity of the spawner block itself is not suitable. The horizontal distribution is triangular, with positions near the spawner more likely than ones farther away.

While mobs are spawned at fractional x and z-coordinates (i.e. not aligned to blocks), they are spawned at an integer y-coordinate. Horizontally, a mob can spawn with its center point anywhere within the 8 × 8 range, but vertically, mobs will spawn with their legs at either the same layer as the spawner block, one block above it, or one block below it. Due to the y-coordinate ranging from -1 to 1 of the bottom surface of the spawner block, there are 3 vertical blocks of space in which mobs can spawn even though the spawning volume is only two blocks in height. This 3-block vertical space can be proven to exist with cave spider spawners and glass to limit the spawning space.

For some types of mobs to spawn in the outer planes of the spawning volume, some planes outside the volume may also need to be free of opaque blocks to conform with the mobs' height, width, or other rules governing their individual spawn volumes. For mobs that are two or more blocks tall such as zombies, skeletons, or blazes to spawn in the top y-layer, the layer above that must contain only air.

Summary of maximum spawn volumes for common monster spawners
Mob type Required Volume Failure rate from 8×8×4 volume[note 1] Vertical

8.9 × 8.9 × 2.9 2.531252%

Cave Spider
8.7 × 8.7 × 2.5 1.531252%

8.3 × 8.3 × 2.7 0.28125%



8.6 x 8.6 x 3.8 1.125%

9.4 × 9.4 × 2.9 6.125%

  1. 8×8×3 is the actual volume across which spawners spawn entities, but this volume only contains the entity's center. The failure rate assumes 8×8×4 because it is a popular misconception that 8×8×4 is the maximum efficiency volume of empty space for mob spawners - it actually depends on the size of the entities themselves. Note that 10x10x4 is guaranteed to accommodate all of the above mobs. Also note that this failure rate only accounts for failures due to attempting to spawn a mob at the edges of the spawn range, not other causes of failure such as mobs attempting to spawn intersecting the spawner block itself.

For all of the volumes listed in the table, the horizontal plane is centered on the northwestern corner of the spawner block. While the spawning volume for pigs is 8.9×8.9×2.9, the requirement of grass blocks that are necessary for pigs to spawn will reduce the actual volume in which they successfully spawn.

The block will attempt to spawn 4 mobs at randomly chosen points within the spawning area, then wait anywhere from 200 to 799 ticks (10 to 39.95 seconds) before spawning again. As it waits, the mob inside the block will spin faster and faster. Except for spawning on a solid block, all of the usual requirements for spawning must be met (not in a solid block, correct light level, etc.), so the spawner will often produce fewer than 4 mobs. When it does spawn, it will "poof", and more lightless flames will temporarily appear around the Spawn block. If the block fails to spawn any mobs because it did not pick any suitable locations, it will repeat this process every tick until it succeeds. Only when it manages to spawn at least one mob will it start waiting for the next cycle. If, at the time of spawning, 6 or more monsters of the block's type are present within a 9×9×9 area, centered on the spawner block, the spawner "poofs" without creating any monsters and then waits for the next cycle However if the monsters created by the spawner keep leaving the specified area then the monster spawner will continue spawning mobs indefinitely, provided the player is still within range.

In Peaceful difficulty, Monster Spawner blocks will still appear, but any spawned hostile mobs will disappear the instant they spawn. (Zombie Pigmen, Magma Cubes, and Ghasts will not spawn at all.) This makes it easy to make the traps without being troubled by the mobs. The brief instant that the monster exists in the world before being removed is enough time for the player to be pushed around, for the sound file to play, and occasionally for Skeletons to fire arrows.

Detailed spawning algorithm[edit]

This pseudo-code is derived from the de-compiled source of 1.7.10

if (there is a player within the range of activatingRangeFromPlayer) 
    if (spawner delay == -1) 
        reset spawner delay

    if (spawner delay > 0) 
        decrement spawner delay by 1
        cancel this spawn

    loop for the number of entities we should spawn 
        if (the number of entityTypeName in a 2*spawnRange+1 centered cube > maxNearbyEntities) {
            reset spawner delay
            exit loop

        X = Spawner.x + random(spawnRange*2)-spawnRange;
        Y = Spawner.y + random(3)-1;
        Z = Spawner.z + random(spawnRange*2)-spawnRange;

        if (entity can spawn at (X,Y,Z)) 
            Spawn entityTypeName at (X,Y,Z)
            Play Sound Effect
            Spawn Particles

    if (at least one entity was spawned) 
        reset spawner delay

Default values:
    activatingRangeFromPlayer = 16
    spawner delay = 20
    maxNearbyEntities = 6
    spawn range = 4
    entityTypeName = Pig

Outcomes (default):
    A player must be within a 16 block centered sphere
    There must not be more than 6 pigs within a 9x9x9 centered cube
    The pig must be able to spawn at the chosen location (must not be inside a block, meet lighting conditions etc.)
    If all mobs fail to spawn, it will try again on the very next tick.

Custom Spawners[edit]

Monster Spawners are capable of much more than they are used for in survival Minecraft. Using the /setblock or /give commands, they can be customized in many ways:

  • They can be made to spawn any kind of entity, including any mob, items, minecarts, boats, falling blocks (including falling Spawners), primed TNT, and so on.
  • A single spawner can spawn multiple different entities, chosen at random from a list.
  • Properties can be set on the spawned entities, such as their location, velocity, inventory, potion effects, and much much more.
  • Various range and timing properties of the spawner can be altered.

Detailed technical information about custom spawners can be found in the chunk format reference



Seecret Friday 2 Added mob spawners. They could be picked up and when placed, spawned pigs.
June 27, 2010 Mob spawners given a unique ID, reducing crashes.
Changed name from mob spawner to monster spawner.
1.2 Monster spawners again now show a rotating model inside of what they spawn in single player after being missing for several versions.
Official release
1.0.0 Beta 1.9-pre1 Changed monster spawner texture to a darker color.
Beta 1.9-pre4 It was possible to obtain a monster spawner using a tool enchanted with Silk Touch. When placed they would only spawn pigs.
Silk Touch became ineffective on spawners.
Beta 1.9-pre5 Squid spawners now only work in a narrow elevation range, from 46 to 62.
Monster Spawners no longer drop after destroyed. Even when you use a Silk Touch pickaxe, it will not drop.
Monster spawners are now easier to destroy.
1.2.1 12w06a Monster spawners now show the mob they are spawning in multiplayer; previously it always showed a pig.
1.3.1 12w22a Monster spawners will now drop experience when destroyed.
12w26a Monster spawners now support extra data pertaining to what they spawn. For example, they can spawn Charged Creepers, Endermen holding specific blocks, previously unavailable Green Robe Villagers, and Villagers offering specific deals. They can also spawn non-mob entities, like specific dropped items, random fireworks, primed TNT, boats and minecarts.
1.8 14w26c The horizontal spawning range is now calculated from the center of the block rather than the northwest corner.
The exclusion zone has been reduced: for a default spawner, the 6 mobs must be in a 9×9×9 region rather than 17×9×17 to prevent spawning.
14w28b The type of mob spawner can be changed by using a spawn egg on it.
Pocket Edition Alpha
0.9.0 build 1 Added monster spawners.
build 2 Added monster spawners to the creative inventory. The type of mob spawner can be changed using a spawn egg.
build 9 Monster spawners now emit light.
Console Edition
TU1 Added monster spawners.


Issues relating to "Monster Spawner" are maintained on the issue tracker. Report issues there.


  • Since monster spawners are stored as block entities, they cannot be pushed by pistons.
  • Unlike most other solid blocks, the monster spawner supports texture with transparent areas, without showing what's behind.
  • The traditional torch on the spawner may not be sufficient to completely disable it. Lighting the walls as well is safer.
  • When mining near a monster spawner that has no valid places to spawn, sometimes a monster will spawn immediately after a block is mined. The player should take caution for this reason while collecting Moss Stone from a dungeon but hasn't destroyed the monster spawner. It's speculated this might happen because the spawner gets a chance to spawn before the lighting calculation for the space the block occupied.
  • If a spawner is made to spawn a Giant, Ghast, or Iron Golem; the mob inside will be larger than the spawner and will appear to physically extend beyond the confines of the spawner block's sides.
  • A monster spawner may spawn 1, 2, 3 or even 4 mobs at once[1]
  • If the player is not within range, the miniature mob inside the spawner will stop spinning, and the mob spawner will stop emitting fire particles, along with not working all together.
  • The miniature mob inside the mob spawner will spin faster when it is about to spawn monsters. There are set minimum and maximum speeds for which the miniature mob can rotate.
  • Zombie Pigmen spawners cannot be disabled with light. They can spawn at any light level.
  • The miniature mob inside the monster spawner is an actual mob of that type. Thus, if a spawner is configured to spawn Ender Dragons or Withers, their boss health bar is visible while looking at the spawner. Zombies can also be wearing armor.


See also[edit]


  1. [1] Video clearly showing two, three and four mobs spawning at the same time from a monster spawner.