Minecraft – Why are there mobs on the balcony

minecraft-java-edition

I have a sweet ravine balcony, that I've lit up, and partially fenced off. It's not connected to anywhere that mobs could spawn yet, come night zombies are at my door creepers are lounging around and spiders are crawling around! I didn't invite them!

enter image description here
enter image description here
enter image description here
enter image description here

Is there any reason for these mobs to spawn here when it's well lit?

Best Answer

Mobs cannot spawn in a well lit area, but only a single square is enough to allow spawning. The light level must be 8 or higher to prevent spawning, meaning no cube can be more than 7 steps from a torch. You have to count vertical steps too, so a torch two squares off the floor can only be five horizontal steps from any floor square.

In addition, spiders can climb up walls, and thus are harder to keep out than other mobs. But the fact that you have creepers and zombies as well indicates that you have a lighting issue. Creeps can also fall down from heights farther than they would choose to walk; if the cliff above your balcony can spawn mobs, you may wish to light it or fence it to prevent mobs from pushing each other off the edge and falling to your balcony.

enter image description here

After you posted the screenshots, I made this graphic, illustrating some of the squares that have insufficient light. The green dot means that area is light level 8 or higher (within 7 cubes of a torch). A red dot indicates it is light level 7 or lower, and mobs can spawn there. As you can see, there is a large splotch of darkness on the right side of your balcony, where it is widest. Add a few more torches and everything should be fine. I did miscount a bit when creating the graphic: the leftmost two red dots should be green, as they are 7 cubes from the torch that is just out of sight on the bottom left. This leaves 5 squares visible in the image that are below light level 8.