Light

From Minecraft Wiki
Jump to navigation Jump to search
Not to be confused with Lightning.
This article is about the game mechanic. For the block called "Light" in Java Edition and "Light Block" in Bedrock Edition, see Light Block.
This article needs to be updated. 
Please update this page to reflect recent updates or newly available information.
Reason: Changes were made to mob spawning requirements.

Light (or lighting) in Minecraft affects visibility, mob spawning, and plant growth. There are three aspects of Minecraft's lighting system: light level, internal light level, and rendered brightness.

Light level[edit | edit source]

Light levels can be found on the debug screen in Java Edition. Light may come from two sources: the sky and certain blocks. There are 16 light levels, specified by an integer from 0 (the minimum) through 15 (the maximum).

Block light[edit | edit source]

Block light comes from light-emitting blocks, and spreads using a flood fill algorithm.

The block light level decreases by one for each meter (block) of taxicab distance from the light source. This applies to each of the 3 coordinate axes. In other words, the light level decreases diagonally by the sum of the distances along each axis. For example:

  • If a torch with light level 14 is placed on the floor, the light level of the adjacent floor blocks in all four directions is 13, while the diagonal blocks in all four directions have a light level of 12 (14 minus 1 south, minus 1 east).
  • If a torch with light level 14 is placed on a wall one block above the floor, then the block on the floor that is one block southeast of and below the torch has a light level of 11 (14 - 1 (south) - 1 (east) - 1 (down)).

On a surface, this effect produces a diamond-shaped pattern of illumination around the light source.

In Java Edition, when calculating lighting, the shapes of some blocks are detected: pistons, daylight detectors, enchanting tables, farmland, lecterns, stonecutters, dirt paths, snow, end portal frames, slabs and stairs, so that the light passing through them can spread only in specific directions. For example, dirt paths prevents the light from propagating downward, but the light can propagate in other directions.

Sky light[edit | edit source]

The sky light level for blocks exposed to broad daylight is 15. Sky light cast onto blocks can spread to darker areas using a flood fill algorithm. Sky light is not reduced at night; rather, the spawning of mobs is determined by internal light values.

Opaque blocks can prevent the spread of sky light. By contrast, transparent blocks such as glass and iron bars have no effect on the sky light level. All light-filtering blocks, however, reduce the spread of sky light.

When sky light of a level of 15 spreads down through a transparent block, the level remains unchanged. When it spreads horizontally or upward, it reduces 1 light level. However, when it spreads through a light-filtering block, it does not follow the above two rules and attenuates specific light levels.

Sky light with a level less than 15 spreads as block light - when it propagates to adjacent (including top and bottom, six blocks in total) blocks, it is attenuated until it is 0.

In Java Edition, when calculating lighting, the shapes of some blocks are detected: piston, daylight detectors, enchanting table, farmland, lectern, stonecutter, grass path, snow, end portal frame, slabs, and stairs. They have directional opacity, so that the light passing through them can spread only in specific directions. For example, the dirt path prevents the light from propagating downward, but the light can propagate in other directions.

Light-filtering blocks[edit | edit source]

In Java Edition, all of the following light-filtering blocks decrease sky light by 1 level (but do not affect block light).

Light-filtering blocks in Java Edition
Icon Block
Water
All transparent waterlogged blocks
Bubble column
Ice
Frosted ice
Cobweb
Leaves
Slime block
Honey block
Monster spawner
Lava
Beacon
End gateway
Chorus plant
Chorus flower
Shulker box

In Bedrock Edition, light-filtering blocks can reduce more levels of block or sky light. The following values are the amounts by which each block decreases the light level.

Light-filtering blocks in Bedrock Edition
Icon Block Amount of decrease
Beacon 14
Anvil 3
Hopper
Brewing stand
Cauldron
Ice
Frosted ice
Water 2
Cobweb 1
Leaves
Powder snow
Slabs (except double slabs)

Light-emitting blocks[edit | edit source]

There is a category for light-emitting blocks! 
See Category:Light sources for a list of pages relating to this topic.
There is a category for light-emitting blocks! See Category:Light sources for a list of pages relating to this topic.
The following values are the brightness of the blocks themselves.
Light level Block
15 BlockSprite beacon.png: Sprite image for beacon in Minecraft linking to BeaconBeacon, BlockSprite conduit-active.png: Sprite image for conduit-active in Minecraft linking to conduitconduit, BlockSprite end-gateway.png: Sprite image for end-gateway in Minecraft linking to end gatewayend gateway, BlockSprite end-portal.png: Sprite image for end-portal in Minecraft linking to end portalend portal, BlockSprite fire.png: Sprite image for fire in Minecraft linking to firefire, BlockSprite sea-pickle.png: Sprite image for sea-pickle in Minecraft four waterlogged sea pickles, BlockSprite all-froglights.png: Sprite image for all-froglights in Minecraft linking to froglightfroglight, BlockSprite glowstone.png: Sprite image for glowstone in Minecraft linking to glowstoneglowstone, BlockSprite jack-o'lantern.png: Sprite image for jack-o'lantern in Minecraft linking to jack o'lanternjack o'lantern, BlockSprite lantern.png: Sprite image for lantern in Minecraft linking to lanternlantern, BlockSprite lava.png: Sprite image for lava in Minecraft linking to lavalava, BlockSprite lava-cauldron.png: Sprite image for lava-cauldron in Minecraft linking to lava cauldronlava cauldron, BlockSprite campfire.png: Sprite image for campfire in Minecraft lit campfire, BlockSprite lit-redstone-lamp.png: Sprite image for lit-redstone-lamp in Minecraft lit redstone lamp, BlockSprite respawn-anchor-side.png: Sprite image for respawn-anchor-side in Minecraft linking to respawn anchorrespawn anchor (fully charged), BlockSprite sea-lantern.png: Sprite image for sea-lantern in Minecraft linking to sea lanternsea lantern, BlockSprite shroomlight.png: Sprite image for shroomlight in Minecraft linking to shroomlightshroomlight, BlockSprite lit-copper-bulb.png: Sprite image for lit-copper-bulb in Minecraft linking to copper bulbcopper bulb
14 BlockSprite colored-torches.png: Sprite image for colored-torches in Minecraft linking to Colored torchesColored torches[edu & BE only], BlockSprite lit-cave-vines.png: Sprite image for lit-cave-vines in Minecraft linking to cave vinescave vines with berries, BlockSprite end-rod.png: Sprite image for end-rod in Minecraft linking to end rodend rod, BlockSprite torch.png: Sprite image for torch in Minecraft linking to torchtorch, BlockSprite underwater-torch.png: Sprite image for underwater-torch in Minecraft linking to underwater torchunderwater torch[edu & BE only]
13 BlockSprite lit-blast-furnace.png: Sprite image for lit-blast-furnace in Minecraft linking to Blast furnaceBlast furnace when lit, BlockSprite lit-furnace.png: Sprite image for lit-furnace in Minecraft linking to furnacefurnace when lit, BlockSprite lit-smoker.png: Sprite image for lit-smoker in Minecraft linking to smokersmoker when lit
12 BlockSprite vault.png: Sprite image for vault in Minecraft linking to VaultVault (active), BlockSprite candle.png: Sprite image for candle in Minecraft four lit candles, BlockSprite glowing-obsidian.png: Sprite image for glowing-obsidian in Minecraft linking to glowing obsidianglowing obsidian[edu & BE only], BlockSprite sea-pickle.png: Sprite image for sea-pickle in Minecraft three waterlogged sea pickles, BlockSprite lit-exposed-copper-bulb.png: Sprite image for lit-exposed-copper-bulb in Minecraft linking to exposed copper bulbexposed copper bulb
11 BlockSprite nether-portal.png: Sprite image for nether-portal in Minecraft linking to Nether portalNether portal, BlockSprite respawn-anchor-side-3.png: Sprite image for respawn-anchor-side-3 in Minecraft linking to respawn anchorrespawn anchor (34 charged)
10 BlockSprite crying-obsidian.png: Sprite image for crying-obsidian in Minecraft linking to Crying obsidianCrying obsidian, BlockSprite soul-campfire.png: Sprite image for soul-campfire in Minecraft lit soul campfire, BlockSprite soul-fire.png: Sprite image for soul-fire in Minecraft linking to soul firesoul fire, BlockSprite soul-lantern.png: Sprite image for soul-lantern in Minecraft linking to soul lanternsoul lantern, BlockSprite soul-torch.png: Sprite image for soul-torch in Minecraft linking to soul torchsoul torch
9 BlockSprite candle.png: Sprite image for candle in Minecraft Three lit candles, BlockSprite deepslate-redstone-ore.png: Sprite image for deepslate-redstone-ore in Minecraft lit deepslate redstone ore, BlockSprite redstone-ore.png: Sprite image for redstone-ore in Minecraft lit redstone ore, BlockSprite sea-pickle.png: Sprite image for sea-pickle in Minecraft two waterlogged sea pickles
8 BlockSprite lit-weathered-copper-bulb.png: Sprite image for lit-weathered-copper-bulb in Minecraft linking to Weathered copper bulbWeathered copper bulb, BlockSprite trial-spawner.png: Sprite image for trial-spawner in Minecraft linking to trial spawnertrial spawner (active)
7 BlockSprite enchanting-table.png: Sprite image for enchanting-table in Minecraft linking to Enchanting tableEnchanting table, BlockSprite ender-chest.png: Sprite image for ender-chest in Minecraft linking to ender chestender chest, BlockSprite glow-lichen.png: Sprite image for glow-lichen in Minecraft linking to glow lichenglow lichen, BlockSprite redstone-torch.png: Sprite image for redstone-torch in Minecraft lit redstone torch, BlockSprite respawn-anchor-side-2.png: Sprite image for respawn-anchor-side-2 in Minecraft linking to respawn anchorrespawn anchor (12 charged)
6 BlockSprite sea-pickle.png: Sprite image for sea-pickle in Minecraft One waterlogged sea pickle, BlockSprite sculk-catalyst.png: Sprite image for sculk-catalyst in Minecraft linking to sculk catalystsculk catalyst, BlockSprite candle.png: Sprite image for candle in Minecraft two lit candles, BlockSprite vault.png: Sprite image for vault in Minecraft linking to vaultvault (inactive)
5 BlockSprite amethyst-cluster.png: Sprite image for amethyst-cluster in Minecraft linking to Amethyst clusterAmethyst cluster
4 BlockSprite large-amethyst-bud.png: Sprite image for large-amethyst-bud in Minecraft linking to Large amethyst budLarge amethyst bud, BlockSprite lit-oxidized-copper-bulb.png: Sprite image for lit-oxidized-copper-bulb in Minecraft linking to oxidized copper bulboxidized copper bulb, BlockSprite trial-spawner.png: Sprite image for trial-spawner in Minecraft linking to trial spawnertrial spawner (inactive)
3 BlockSprite magma-block.png: Sprite image for magma-block in Minecraft linking to Magma blockMagma block, BlockSprite candle.png: Sprite image for candle in Minecraft one lit candle, BlockSprite respawn-anchor-side-1.png: Sprite image for respawn-anchor-side-1 in Minecraft linking to respawn anchorrespawn anchor (14 charged)
2 BlockSprite medium-amethyst-bud.png: Sprite image for medium-amethyst-bud in Minecraft linking to Medium amethyst budMedium amethyst bud
1 BlockSprite brewing-stand.png: Sprite image for brewing-stand in Minecraft linking to Brewing standBrewing stand, BlockSprite brown-mushroom.png: Sprite image for brown-mushroom in Minecraft linking to brown mushroombrown mushroom, BlockSprite calibrated-sculk-sensor.png: Sprite image for calibrated-sculk-sensor in Minecraft linking to calibrated sculk sensorcalibrated sculk sensor, BlockSprite dragon-egg.png: Sprite image for dragon-egg in Minecraft linking to dragon eggdragon egg, BlockSprite end-portal-frame.png: Sprite image for end-portal-frame in Minecraft linking to end portal frameend portal frame, BlockSprite sculk-sensor.png: Sprite image for sculk-sensor in Minecraft linking to sculk sensorsculk sensor, BlockSprite small-amethyst-bud.png: Sprite image for small-amethyst-bud in Minecraft linking to small amethyst budsmall amethyst bud
0–15 BlockSprite light-15.png: Sprite image for light-15 in Minecraft linking to Light blockLight block
Comparison of the different light levels that blocks emit.

Internal light level[edit | edit source]

Internal sky light versus time and sky light

The internal light level is used for calculations within the game. The game uses the internal light level of one block to compute aspects of the game, which include mob spawning, plant growth, and daylight detector outputs.

The game uses sky light, time, and weather to calculate an internal sky light value (also known as darkening sky light), then uses the maximum level of the block light and the internal sky light to calculate the internal light (formula: (max(internal sky light,block light))). This value is an integer with a maximum level of 15; it can also be negative.

Here are the levels of internal sky light at a sky light of level 15:

Internal sky light Clear Rain or snowfall Thunder
Time Time Time Time Time Time
4 13,670–(Midnight/18,000)-22,330

(8,660 Gtk/7:13)

13,670–(Midnight/18,000)-22,330

(8,660 Gtk/7:13)

13,670–(Midnight/18,000)-22,330

(8,660 Gtk/7:13)

5 22,331–22,491

(160 Gtk/8 sec)

13,509–13,669

(160 Gtk/8 sec)

22,331–22,565

()

13,436–13,669

()

22,331–22,671

()

13,330–13,669

()

6 22,492–22,652

(160 Gtk/8 sec)

13,348–13,508

(160 Gtk/8 sec)

22,566–22,798

()

13,203–13,435

()

22,672–23,010

()

12,990–13,329

()

7 22,653–22,812‌[JE only]
22,653–22,813‌[BE only]J: (159 Gtk/7.95 sec)

B: (160 Gtk/8 sec)

13,188–13,347

(159 Gtk/7.95 sec)

22,799–23,031

()

12,969–13,202

()

23,011–23,352

()

12,648–12,989

()

8 22,813‌[JE only]–22,973
22,814‌[BE only]–22,973

J: (160 Gtk/8 sec)

B: (159 Gtk/7.95 sec)

13,027–13,187

(160 Gtk/8 sec)

23,032–23,266

()

12,734–12,968

()

23,353–23,700

()

12,300–12,647

()

9 22,974–23,134

(160 Gtk/8 sec)

12,867–13,026

(159 Gtk/7.95 sec)

23,267–23,504

()

12,497–12,733

()

23,701-(Dawn/24,000/0)–59

(240 Gtk/12 sec)

11,941‌[JE only]–(Dusk/12,000)-12,299
11,942‌[BE only]–(Dusk/12,000)-12,299

J:(358 Gtk/17.9 sec)

B:(357 Gtk/17.85 sec)

10 23,135–23,296

(161 Gtk/8.05 sec)

12,705–12,866

(161 Gtk/8.05 sec)

23,505–23,745

()

12,256–12,496

()

60–(Noon/6,000)-11,940‌[JE only]
60–(Noon/6,000)-11,941‌[BE only]J: (11,880 Gtk/9:54)

B: (11,881 Gtk/9:54)

11 23,297–23,459

(162 Gtk/8.1 sec)

12,542–12,704

(162 Gtk/8.1 sec)

23,746–23,991

()

12,010–12,255

()

N/A
12 23,460–23,623‌[JE only]
23,460–23,624‌[BE only]J: (163 Gtk/8.15 sec)

B: (164/8.2 sec)

12,377–12,541

(164 Gtk/8.2 sec)

23,992–(Dawn/24,000/0)(Noon/6,000)(Dusk/12,000)-12,009

(12,017 Gtk/10:00.85)

N/A
13 23,624‌[JE only]–23,790
23,625‌[BE only]–23,790

J: (166 Gtk/8.3 sec)

B: (165 Gtk/8.25 sec)

12,210–12,376

(166 Gtk/8.3 sec)

N/A N/A
14 23,791–23,960

(169 Gtk/8.45 sec)

12,041–12,209

(168 Gtk/8.4 sec)

N/A N/A
15 23,961–(Dawn/24,000/0)(Noon/6,000)(Dusk/12,000)-12,040 N/A N/A

To obtain an internal sky light for a sky light level s less than 15, take the internal level L at 15 and subtract from it the difference between 15 and s: L−(15−s).

Icon Time Internal sky light when sky light is 15
EnvSprite sun.png: Sprite image for sun in Minecraft noon, during clear weather 15
EnvSprite rain.png: Sprite image for rain in Minecraft
EnvSprite snowfall.png: Sprite image for snowfall in Minecraft
noon, during rain or snowfall 12
EnvSprite thunderstorm.png: Sprite image for thunderstorm in Minecraft noon, during a thunderstorm 10[storm 1]
EnvSprite moon.png: Sprite image for moon in Minecraft midnight, during clear weather 4
  1. During thunderstorms, hostile mobs are allowed to spawn as if the internal sky light level were actually 5.

Effects of internal light[edit | edit source]

Keep in mind that the internal light level is only one of the considerations that apply to mob spawning and plant growth.

Mobs[edit | edit source]

Light level >

Mob v

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
EntitySprite bat.png: Sprite image for bat in Minecraft Bats Spawn at y: 0–62 Spawn at y: 0–62 from October 20 to November 3‌[JE only] Do not spawn
EntitySprite blaze.png: Sprite image for blaze in Minecraft Blazes Spawn in nether fortresses Do not spawn
EntitySprite wither-skeleton.png: Sprite image for wither-skeleton in Minecraft Wither skeletons Spawn in nether fortresses Do not spawn
EntitySprite zombified-piglin.png: Sprite image for zombified-piglin in Minecraft Zombified piglins Spawn in the Nether Do not spawn
EntitySprite slime.png: Sprite image for slime in Minecraft Slimes (slime chunk) Spawn in slime chunks at Y: -64–40
EntitySprite slime.png: Sprite image for slime in Minecraft Slimes (swamp) Spawn in swamp biomes at Y: 50–70 Do not spawn
EntitySprite skeleton.png: Sprite image for skeleton in Minecraft Skeletons Spawn in the Overworld Spawn in the Nether Do not spawn Do not spawn, burn in sunlight
EntitySprite zombie.png: Sprite image for zombie in Minecraft Zombies
EntitySprite chicken-jockey.png: Sprite image for chicken-jockey in Minecraft Chicken jockeys
Spawn in the Overworld Do not spawn Do not spawn, burn in sunlight
EntitySprite drowned.png: Sprite image for drowned in Minecraft Drowned Spawn in oceans and rivers Hostile, do not spawn Burn in sunlight, ignore player outside water when in sunlight
EntitySprite creeper.png: Sprite image for creeper in MinecraftCreepers
EntitySprite witch.png: Sprite image for witch in Minecraft Witches
Spawn in the Overworld Do not spawn
EntitySprite phantom.png: Sprite image for phantom in Minecraft Phantoms Spawn in the Overworld if player hasn't entered a bed in over 3 in-game days Do not spawn Burn in sunlight
EntitySprite spider.png: Sprite image for spider in Minecraft Spiders
EntitySprite cave-spider.png: Sprite image for cave-spider in Minecraft Cave spiders
EntitySprite spider-jockey.png: Sprite image for spider-jockey in Minecraft Spider jockeys
Spawn in the Overworld Hostile, do not spawn Do not spawn, neutral unless provoked
EntitySprite silverfish.png: Sprite image for silverfish in Minecraft Silverfish Spawn from monster spawners in the Overworld Hostile, do not spawn
EntitySprite enderman.png: Sprite image for enderman in Minecraft Endermen Spawn in all three dimensions Spawn in the Nether Do not spawn, teleport randomly in Overworld

Blocks[edit | edit source]

Block Level 0–3 Level 4–7 Level 8 Level 9 Level 10 Level 11 Level 12 Level 13–15
BlockSprite snow.png: Sprite image for snow in Minecraft linking to SnowSnow[note 1] Forms Neither forms nor melts[note 2] Melts
BlockSprite ice.png: Sprite image for ice in Minecraft linking to IceIce[note 1] Forms Neither forms nor melts[note 3] Melts
BlockSprite mushrooms.png: Sprite image for mushrooms in Minecraft linking to MushroomsMushrooms Spread Uproot unless on mycelium, podzol, or nylium
BlockSprite saplings.png: Sprite image for saplings in Minecraft linking to SaplingsSaplings
BlockSprite pumpkin-stem.png: Sprite image for pumpkin-stem in Minecraft linking to Pumpkin SeedsPumpkin or melon stems
BlockSprite bamboo.png: Sprite image for bamboo in Minecraft linking to BambooBamboo
[note 4]
Does not grow Grows
BlockSprite wheat.png: Sprite image for wheat in Minecraft linking to Wheat SeedsWheat
BlockSprite carrots.png: Sprite image for carrots in Minecraft linking to CarrotsCarrots
BlockSprite potatoes.png: Sprite image for potatoes in Minecraft linking to PotatoesPotatoes
BlockSprite beetroots.png: Sprite image for beetroots in Minecraft linking to Beetroot SeedsBeetroots[note 5]
Uproot Does not grow Grows
BlockSprite grass-block.png: Sprite image for grass-block in Minecraft linking to Grass BlockGrass Block
BlockSprite mycelium.png: Sprite image for mycelium in Minecraft linking to MyceliumMycelium[note 6]
Becomes dirt if opaque block or partially transparent block on top Does not spread Spreads to nearby dirt (see below)
BlockSprite dirt.png: Sprite image for dirt in Minecraft linking to DirtDirt[note 6] Does not accept spread Accepts spread if there is no opaque or semi-transparent block on top
BlockSprite frosted-ice.png: Sprite image for frosted-ice in Minecraft linking to Frosted iceFrosted ice See Frosted Ice for details
BlockSprite daylight-detector.png: Sprite image for daylight-detector in Minecraft linking to Daylight detectorDaylight detector Output
  1. a b Sunlight does not affect snow or ice melting.
  2. "[MC-217420] Snow neither forms nor melts at block light level 11 - Jira"Mojira, March 1, 2021.
  3. "[MC-217424] Ice neither forms nor melts at block light level 10 - Jira"Mojira, March 1, 2021.
  4. For growth, the relevant light level is that in the block above the plant. The growth of pumpkins or melons from a stem checks the light above the stem, not the block where the pumpkin or melon grows.
  5. For growth, the relevant light level is that in the block above the plant. For uprooting, the relevant light level is the plant block itself.
  6. a b The relevant light level is that in the air block above it.

Rendered brightness[edit | edit source]

Examples of the internal lightmap texture (the game's brightness setting is at the default of 50). Horizontal axis is block light, vertical is sky light.

The game uses the light level (instead of internal light level), time, and weather to compute the rendered brightness of a given block or an entity. Light is completely monochromatic and cannot be truly colored.

As mentioned above, sky light is not reduced at night, instead, the brightness curve itself changes based on the time. Entities cast circular‌[Java Edition only] or tridecagonal‌[Bedrock Edition only] shadows; however, these are unrelated to the rendering of blocks.

In general, lighting due to blocks results in a higher brightness, which is balanced by the fact that light due to blocks effectively starts at 14 (solid light source blocks emit a level of 15, but that applies to the light source block itself) while sky light brightness is 15 outdoors. Light due to blocks also tends toward orange in the middle ranges, while sky light in the Overworld daytime is white.

In the Overworld with the "Moody" brightness setting, full daylight reaches 98% brightness,[luma 1] while at night brightness is reduced to about 17%[luma 1] and is shaded blue. Full darkness is about 5% brightness.[luma 1]

In the Nether, sky lighting doesn't play a role since there is no source of sky light (although if there were, it would reach about 99% brightness.[luma 1]) Full darkness with the "Moody" brightness setting is at about 25% brightness,[luma 1] slightly darker than a block light level of 7 and no sky light in the Overworld, and is shaded orange like block light.

In the End, sky lighting wouldn't play a role even if there were a source of sky light; this can also be seen if lightning is summoned in the End (there is no flash of brightness like there is in other dimensions). Full darkness in the End with the "Moody" brightness setting is about 28% brightness,[luma 1] and is shaded toward a bluish-green rather than the orange of the Nether and of block lighting.

In Java Edition 20w14∞, most unique dimensions have unique lighting system. However, most of the Easter egg dimensions do not have darkness at all. Instead, they are fully bright, but in an Easter egg dimension called gallery has the blue lighting nearly identical to the Overworld at night (only significantly brighter). Easter egg dimensions that resembles the Overworld with just world generation modifications (namely busy, chess, decay, holes, pillars, rooms, slime, and zone) have the same lighting as in the Overworld. blacklight has the inverted lighting system derived from the Overworld. colors, red, green, and blue dimensions resembles the Overworld with lighting mixed with dimensional tinting, and darkness is blended with darkness at higher distances far away from the origin. Its darkness cannot be fixed with Night Vision effect.

Light level of daylight/biome
Light level >
Biome/time of day v
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Overworld (day)
Overworld (night, approximate)
Blacklight (day)
Blacklight (night, approximate)
  1. a b c d e f Brightness here refers to ITU-R BT.601 luminance value (luma)

Smooth lighting[edit | edit source]

The difference between Smooth Lighting on and off.

Smooth lighting is a lighting engine that blends light levels across block faces and darkens corners using ambient occlusion to add semi-realistic shadows and glowing from light sources. It affects only rendered brightness, not the light level, so it has no effect on mob spawning or crop growth. It is set on by default. Paintings, item frames[1] and water surfaces[2] are unaffected.‌[Java Edition only]

Smooth lighting can be turned on or off in the video settings.

Ambient occlusion in Minecraft[edit | edit source]

This section needs cleanup to comply with the style guide. [discuss]
Please help improve this page. The talk page may contain suggestions.

In many newer games, ambient occlusion is mainly generated dynamically by the GPU. But Minecraft calculates ambient occlusion in the code based on voxel placement and brightness levels.

Ambient occlusion is responsible for adding shading to an ordinary texture. It is a layer of translucent textures, on top of the normal textures. Overlaying these AO textures onto a texture is called AO mapping. There are about five AO texture patterns used in Minecraft's smooth lighting, excluding flips and rotations, and only three patterns algorithmically. Strictly speaking, it's probably more than that. That's when the intensity changes with the brightness level. But they are solved by tint.

AO texture pattern[edit | edit source]

This section needs cleanup to comply with the style guide. [discuss]
Please help improve this page. The talk page may contain suggestions.

If AO mapping is selected only to the northwest of the voxel, the following pattern is possible.

Number Image
0
1
2
3

These classifications allow one the ability to deduce a pattern from the placement of each voxel. The following function can then be used to compute the opacity of the voxels' vertices, depending on the presence of the side and corner voxels.

function vertexAO(side1, side2, corner) {
  return 3 - (side1 + side2 + corner)
}

This generates a 2×2 pixel image using the values of each vertex. The pixels are small, but when zoomed in using anti-aliasing, it gradates.

History[edit | edit source]

Java Edition pre-Classic
Cave game tech testThe lighting engine in Classic was simple, with only two light levels, bright and dark. "Sunlight" is emitted by the top edge of the map and hits any block that is under it, regardless of distance. It passes through transparent blocks to light blocks underneath. Blocks that do not receive light are in a dim shadow that remains at the same level of brightness no matter how far they are from a light source. [needs testing]
Java Edition Classic
May 26, 2009Notch discussed the feasibility of having dynamic lighting with limited range, allowing possibilities like defining blocks like lava to emit light.
Java Edition Indev
0.3120091223-1Added 10 degrees of brightness, with a maximum of 9 for full daylight and a minimum of 0 for almost complete darkness. Brightness is a linear scale and represents its value divided by 8; for example 8 is 100% (88) and 7 is 87.5% (78)..
20100109There are now 16 degrees of brightness, with a maximum of 15 for full daylight and a minimum of 0 for almost complete darkness.
Sunlight now has a maximum light value of 15.
20100204-2Passive mobs now spawn only in higher light levels, and hostile mobs spawn only in the dark.
20100212-1Sunlight's light value steadily decreases from dusk, until it reaches a night-time minimum value of 4, representing moonlight.
Java Edition Alpha
?Lighting is no longer linear.
Each brightness value below 15 is 80% as bright as the one above it. For example, 14 is 80% as bright as 15, and 13 is 64% as bright as 15.
Sunlight now has its own light array and optimizations to make dawn and dusk smoother. During dusk, nighttime, and dawn, a "darkness" value is subtracted from the sky to create the effects of different times of day.
v1.2.0previewAdded the Nether, where light decreases by 10% each level, rather than the normal 20%.
Hostile mobs could spawn in higher light levels at lower depths, using the formula 16 − (Layer / 8). At level 8 and below, mobs could spawn even in sunlight.
v1.2.1Notch reverted mob spawning to the original method, saying, "It was way too annoying. I have plans on what to do with this."
Java Edition Beta
1.3Smooth lighting engine added with the help of MrMessiah.[3]
1.8Pre-releaseImplemented a new lighting engine. The lighting on a block is given a tint based on the most prominent source of light.
Day/night cycles no longer require chunk updates and have a smooth transition.
Artificial light now gives a subtle "flicker."
Java Edition
1.4.212w39aDinnerbone fixed black patches in world generation,[4] and began overhauling the lighting systems such as changing the lighting of blocks to allow for directional lighting.[5][6]
1.513w05aImproved lighting interaction with stairs.
13w06aSeveral lighting optimizations.
13w09aAdded three different levels of smooth lighting: Off, Minimum, and Maximum. Minimum uses the old Smooth Lighting, and Maximum fixes a bug with stairs.
1.7.213w36aBlack patches in world generation and structure generation were made a lot less common.[7]
1.814w30aThe lighting engine was significantly improved, removing most black spots present in world generation.
1.1418w43aThe lighting system has been rewritten.
18w46aAdded support for directional opacity of blocks.
1.14.2pre4All light is now re-calculated the first time a world saved in a previous version is opened.
1.1721w13aAdded light blocks, which helps the placement of light.
Pre-release 2Smooth lighting now works properly underwater.[8]
1.18Experimental Snapshot 1Hostile mobs spawn only in areas where the light level is equal to 0. This change affects only block-light and not sky-light.[9]
1.19.3Release Candidate 1The "Maximum" and "Minimum" settings for smooth lighting have been merged, since there is no difference between them.[10]
Pocket Edition Alpha
v0.7.0Added toggleable smooth lighting.
v0.8.0build 2Removed the ability to toggle smooth lighting.
Pocket Edition
1.1.0alpha 1.1.0.0Readded the Smooth Lighting toggle to Video options.

Issues[edit | edit source]

Issues relating to "Light" are maintained on the bug tracker. Issues should be reported and viewed there.

Trivia[edit | edit source]

  • In Minecraft's source code, the luminescences are defined using the floating point values in the third column. These floating point numbers are fractions of 16, but are multiplied by 15 to get the integer light value. This means that both 0/16 and 1/16 (0.0 and 0.0625) correspond to the integer light value 0.

Gallery[edit | edit source]

Screenshots[edit | edit source]

References[edit | edit source]

Navigation[edit | edit source]