Minecraft wiki entry for Shelters, associated text: No mobs can spawn on glass floors, making for a handy alternative to a well-lit shelter. Light is still important, though - you could even have a 1 block high space below all glass blocks on the floor and pour lava there. This keeps your shelter visible and provide a fancy, creepy feel.