Thunderstorm

A thunderstorm is a weather condition which takes place randomly during rain, snowfall, or dry  desert storms. All changes from these weathers apply, though since lightning occurs and the light level falls below 7, thunderstorms are distinct. Even in the middle of the daytime, hostile mobs will be able to spawn. However, far fewer mobs will spawn relative to night as it is barely dark enough for them to spawn.

Lightning is a lethal element to the storm. It strikes randomly across the map, creating brief fires. While most are put out almost immediately by the rain, it is possible for it to ignite wood and other flammable blocks. Lightning striking uses the same sound as TNT or a Creeper exploding.



Effects

 * Thunderstorms are much darker than normal rain, at light level 7. This is dark enough to spawn hostile mobs.
 * Lightning creates fire where it strikes if you're on Normal mode or above. The accompanying rain can usually put out fires before they spread. Overhangs can prevent rain from putting out lightning fires, causing the fire to spread. If the player is on Peaceful or Easy, the lightning won't create fire at all.
 * If Lightning strikes a pig, it morphs into a zombie pigman.
 * If lightning strikes a creeper, it becomes supercharged and has a much more powerful explosion.
 * Being struck by lightning or standing near a lightning strike deals two and a half hearts of damage, not including damage from the fire.
 * If lightning hits a sheep, the sheep will not be sheared, but will take damage.
 * If lightning manages to strike a portal frame, it will activate the portal. Conversely, if it strikes a lit portal, the portal will be deactivated.
 * The player can sleep in a bed during a thunderstorm, regardless of the time of day.
 * If lightning strikes a boat, the boat will disappear without dropping anything, as opposed to two sticks and three planks.
 * Lightning that strikes floating sand or gravel will cause it to fall, this is because it generates a fire block in the block above the sand/gravel.



Trivia

 * Lightning, unlike other weather, does not have an image file associated with it. Thus, it is likely coded directly into the game engine, which would make sense, since lightning is a uniform color, and direct coding would allow for a more dynamic bolt animation.
 * Lightning does not cause damage to Zombie Pigmen or Ghasts.
 * Lightning can go directly through blocks to hit the ground.
 * It doesn't matter how far you are away from the lightning, you will hear it the same time as you see it.
 * You can hear thunder all the way down to the bedrock layer.
 * Thunder has the sound of TNT exploding with an echo.
 * Sometimes when creating a new world, a thunderstorm starts immediately causing mobs to appear without giving you a chance to get to safety.
 * In SMP Thunderstorms and Rain storms are at the same light level

Bugs

 * If a lightning ray is struck at water, the water will be transparent for a few milliseconds.