I was wondering what specific blocks a mob can spawn on, and which ones they can't. I know that block "opacity" and "transparency" have a part to play, but not all of these rules apply properly.
Can someone generate a list of all the blocks a mob (and if there is a difference between hostile/passive mob) can spawn on?
Is there any restriction for a player?
Best Answer
A player can spawn on any solid block which is not affected by gravity and is below the sky, so there are no blocks above it.
Animals spawn on grass or dirt exclusively (block id 2 and 3). They also require a light level above 9 and at least 2 blocks of air above them. Exception is the bat, which spawns on opaque blocks if the light level is below 9.
Skeletons, Zombies, and Creepers can spawn on any opaque block if the light level is below 7. Exception are mobs in the nether, which can spawn on netherrack, no matter what the light level is.
Opaque blocks include:
I hope I didn't forget any, if I did, feel free to add them.