← All interactive demos

Place Torches and Remove the Spots Where Mobs Spawn

A floor grid seen from above. The brighter the colour, the higher the light level. Red eyes mark floor squares where mobs can spawn (squares that meet this model's conditions). Click a square to place the selected item.

How light is calculated (failure 1 and fix 1)
Light level that allows spawning
Sky light (grassland only; the cave is under a roof, so it is not used)

Guess, then try

  1. In the cave, how many torches do you need to get 0 eyes? With 1 torch, some remain wherever you put it (the video's minimum is 67).
  2. Putting the 2nd torch at the entrance of the passage vs in the middle of the right room: how do the remaining eyes differ?
  3. If you open one hole in the wall, how many eyes in the right room disappear?
  4. On the grassland at night, if you switch to the old rule (7 or less), how many floor squares can 1 torch protect?
Sources and limits of the model

The Minecraft Snapshot 21w37a article (official, September 2021) says mobs now spawn only where block light is 0 (sky light still prevents spawning, as before). The torch light level of 14, the way light drops by 1 per square, and the earlier "7 or less" rule come from Minecraft Wiki: Light (a community wiki).

This is our own model of a single flat floor seen from above. It is not the original game's screen or code. Upper and lower levels, water, leaves, slabs, how many mobs spawn and how often, and exceptions such as spawners are not handled. Sky light has only two levels, day and night. The Bedrock Edition rules have not been checked.

Interactive demo for the video "Why Do Minecraft Mobs Spawn Behind Walls Even with a Torch?" on the YouTube channel "How Games Are Made" (ゲームのつくり方の歴史). Terrain model · Chunk model