Fire

Fire is a harmful non-solid block.

Obtaining
Fire cannot be obtained as an item under any circumstances. It can be placed using flint and steel and fire charges or it can be spread by lava and adjacent fire blocks.

Natural generation
Fire naturally generates in the Nether.

Lava can naturally create fire (see below).

Lightning bolts can also create fire, as also may explosions of beds, ender crystals, ghast and blaze fireballs.

Zombies and skeletons will catch fire when exposed to sunlight, except when in a body of water.

Usage


When placed, fire will burn for a short and randomly determined amount of time. If nothing flammable is adjacent to it, the flames will die out. If water touches fire, the fire will be extinguished.

Burning blocks
In the following table, encouragement is the block's ability to sustain adjacent fire. Flammability is how quickly that block will catch fire when fire is not adjacent but could spread there. These are relative values, and do not translate directly into time values: they are dependent on difficulty, rain, the age of the fire, and a certain amount of randomness due to block ticks, among other things.

Fire will spread onto and burn the following flammable blocks:

Non-flammable blocks can be lit but do not burn away, and will not spread fire to other non-flammable blocks. Non-flammable blocks other than netherrack will extinguish themselves after a few seconds.

Burning entities
Mobs and players will catch fire when exposed to it. Fire will obstruct the player's view slightly and they will slowly lose health at a rate of per second. This is the same rate that the player gains health in peaceful mode, so fire alone will not kill you in this mode. After they move out of the fire block, they will keep burning for 8 seconds, which deals additional 4 hearts damage (unless the fire is put out by rain or water). Attacks from burning zombies set fire to the player.

Items or blocks falling into fire will catch light and quickly disappear.

If a mob that can drop meat dies while on fire, it will drop the cooked version of it, with the exception of polar bears and guardians.

Nether mobs cannot be damaged by fire, and will not catch on fire.

Spread
Fire will spread over flammable surfaces. Fire can climb up walls, across floors and ceilings, and over small gaps. More precisely, a fire block can turn any air block that is adjacent to a flammable block into a fire block. This can happen at a distance of up to one block downwards, one block sideways (including diagonals), and four blocks upwards of the original fire block (not the block the fire is on/next to). Therefore if the player is using fire to build a fireplace, caution is needed. Blocks in the way will not prevent fire from igniting blocks above it—so even if you protect your wooden roof with cobblestone between it and the fire, the fire will completely ignore that cobblestone.

Fire spreads from a still lava block similarly: any air block one above and up to one block sideways (including diagonals) or two above and two blocks sideways (including diagonals) that is adjacent to a flammable block may be turned into a fire block.

Extinguishing
Fire will burn out after a while on its own, however the player may want to extinguish the fire as soon as possible to prevent damage. You can use water to extinguish the fire. Punching or hitting the side of a burning block will extinguish the fire block on that side. Hitting fire with a tool does not use up any uses for the tool. Placing blocks on the fire will extinguish it. Fire can also be extinguished with splash and lingering water bottles.

Mobs on fire will be extinguished when in water or in a cauldron containing it. In the latter case, one layer of water will disappear.

Fire will extinguish much more quickly if nothing flammable is present, and very soon after it consumes a flammable block immediately beneath it.
 * Fire has an age property that determines how it extinguishes, ranging from age 0 when the fire is set, and growing to age 15. For fire older than age 3, if nothing flammable is adjacent to the fire, or if the block below doesn't have a solid top surface, the fire will be extinguished by the next block tick.  At age 15, as long as there isn't a flammable block below the fire, a block tick will have a $1/4$ chance to extinguish the fire.

If fire is exposed to rain, it will extinguish much more quickly.
 * Rain will affect fire if it falls directly onto the fire, or into the four adjacent blocks. Specifically, no matter the age, any block tick has a 20–65% chance of rain extinguishing the fire, depending on the fire's age: 3 percentage points per age of the fire.Infinite Fire.png

Eternal fire
When lit, Netherrack will maintain fire forever, unless put out by lava, water or the player. Note that rain won't put out Netherrack fire. Bedrock in the End will also burn eternally.

If is false, fire will last forever until it is put out by the player and will not spread.

Data values
Fire blocks have ID  (51) and are further defined by block states.

Trivia

 * Sometimes, in Survival when you walk into a fire and then walk out very quickly you will take a little bit of damage, but not stay on fire.
 * Curiously, if a gravity-affected block such as sand or gravel falls on a block of which the top is on fire, it will extinguish the fire rather than drop itself as an item, despite fire being a non-solid block.
 * Fire uses two texture files, one for the inner fire and one for the outer fire.

In Pocket Edition

 * Burning mobs turn orange and emit large fire particles around their body.
 * The fire spreading mechanic is based on how prior PC Beta 1.6 would be.
 * When the player is on fire, there is a different burning animation on the screen than in the PC version (it partially obstructs view when looking downwards).