Minecraft wiki entry for Sun, associated text: Hostile mobs, in contrast, do not spawn in direct sunlight at light level 7‌[JE only][verify] or 8‌[BE only] or above. Skeletons, zombies, zombie villagers, strays, drowned and phantoms are set on fire for 160 ticks upon entering an area fully illuminated by sunlight, and they try to avoid such areas. They do not burn while in water, in the rain, wearing a helmet, or in the shade. Spiders become neutral while in direct sunlight, until attacked by the player. Endermen teleport away from players in sunlight. All other hostile mobs, such as creepers, slimes, and silverfish, are completely unaffected by sunlight.