Monster Spawner
| Stackable | Yes (64) |
|---|---|
| Hardness | 5 |
| Blast resistance | 5 |
| Luminous | No |
| Block ID | 52 |
Monster Spawner is a caged block that spawns one kind of mob while a player is near.
Obtaining
A monster spawner drops nothing, whatever breaks it.
Natural generation
Every dungeon has one monster spawner, at the centre of its floor. It spawns zombies half the time, and skeletons or spiders a quarter of the time each.
Behaviour
A spawner runs only while a player is within 16 blocks of it. It counts down a delay, and at zero makes four attempts to spawn its mob. Each attempt:
- ends the round if six or more of that mob are within 8 blocks horizontally and 4 vertically;
- picks a point up to 4 blocks away in x and z and 1 block in y, most often near the spawner;
- places the mob there only if it passes the mob's own spawn conditions, light included.
A successful attempt sets the delay to 200 to 799 ticks, and so does a round ended by six of the mob nearby. A round with no success leaves it at zero, and the spawner tries again on the next tick.
Zombies, skeletons and spiders need light 7 or less to spawn, so a spawner whose surroundings are lit to 8 or more spawns nothing.
A spawner placed from the inventory spawns pigs.
Data values
- Block ID:
52 - Translation key:
tile.mobSpawner