VOOZH about

URL: https://minecraft.wiki/w/Lighting

โ‡ฑ Light โ€“ Minecraft Wiki


Light

From Minecraft Wiki
(Redirected from Lighting)
Jump to navigation Jump to search
๐Ÿ‘ Image
This article is about the game mechanic. For the block called "Light", see Light (block). For other uses, see Light (disambiguation).
๐Ÿ‘ Image
Example of light-emitting blocks

Light (or lighting) in Minecraft is a game mechanic that affects visibility, mob spawning, and the growth of some plants. There are three aspects of Minecraft's lighting system: light level, internal light level, and rendered brightness.

Light level

[edit | edit source]
๐Ÿ‘ Image
The "Client Light" info line as seen in the left side of the debug screen.

Light levels can be found on the debug screen in Java Edition next to "Client Light" in parentheses. There exist two main types of light: sky light and block light. Other types of light, not present on the debug screen, are explained in the internal light level section. The term light level may be used to refer to the value of any of the light types.

There are 16 light levels, specified by an integer from 0 (the minimum) through 15 (the maximum).

The game sometimes uses the larger value of the two main light types currently at a block's location for some computations. This is what is known as client light, and its value, displayed after the words "Client Light" on the debug screen, is the number before the parentheses, which is calculated by the formula: max(sky light, block light).

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. An image of this can be seen in the section ยง Light-emitting blocks.

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 prevent the light from propagating downward, but the light can propagate in other directions.

Sky light

[edit | edit source]

Sky light is a type of light that is spread by the sky. It's not a light source in the natural sense, as it is used mainly for the game's logic computations.

The sky light level for blocks vertically exposed to the sky is 15. Sky light cast onto blocks can spread to adjacent 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 upwards, it reduces its level by 1. However, when it spreads through a light-filtering block, it does not follow the above two rules and it attenuates by a certain number of light levels.

Sky light with a level less than 15 spreads in a similar way as block light does: 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
๐Ÿ‘ Image
Water
๐Ÿ‘ Image
All transparent waterlogged blocks
๐Ÿ‘ Image
Bubble Column
๐Ÿ‘ Image
Ice
๐Ÿ‘ Image
Frosted Ice
๐Ÿ‘ Image
Cobweb
๐Ÿ‘ Image
Leaves
๐Ÿ‘ Image
Slime Block
๐Ÿ‘ Image
Honey Block
๐Ÿ‘ Image
Monster Spawner
๐Ÿ‘ Image
Lava
๐Ÿ‘ Image
Beacon
๐Ÿ‘ Image
End Gateway
๐Ÿ‘ Image
Chorus Plant
๐Ÿ‘ Image
Chorus Flower
๐Ÿ‘ Image
Any 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
Light any
๐Ÿ‘ Image
Beacon 14
๐Ÿ‘ Image
Anvil 3
๐Ÿ‘ Image
Hopper
๐Ÿ‘ Image
Brewing Stand
๐Ÿ‘ Image
Cauldron
๐Ÿ‘ Image
Ice
๐Ÿ‘ Image
Frosted Ice
๐Ÿ‘ Image
Leaves 2
๐Ÿ‘ Image
Water 1
๐Ÿ‘ Image
Cobweb
๐Ÿ‘ Image
Powder Snow
๐Ÿ‘ Image
Slabs (except double slabs)

Light-emitting blocks

[edit | edit source]
๐Ÿ‘ Image
There is a category for light-emitting blocks!
 
See Category:Light sources for a list of pages relating to this topic.
๐Ÿ‘ Image
Comparison of the different light levels that blocks emit.
๐Ÿ‘ Image
All different light colors with Vibrant Visuals.

The following values are the brightness of the blocks themselves.

Icon Block Level Experimental color[note 1]
๐Ÿ‘ Image
Beacon 15
๐Ÿ‘ Image
Conduit (active)
๐Ÿ‘ Image
Copper Lantern
 #86ca59
[a] (unwaxed, unaffected)


 #e8c398
[a] (oxidized & waxed variants)

๐Ÿ‘ Image
End Gateway
 #6c70b2
๐Ÿ‘ Image
End Portal
๐Ÿ‘ Image
Fire
 #f39a5e
๐Ÿ‘ Image
Sea Pickle (four, waterlogged)
 #b0dad3
[a]
๐Ÿ‘ Image
Ochre Froglight
 #f9efa5
๐Ÿ‘ Image
Verdant Froglight
 #b7f1bc
๐Ÿ‘ Image
Pearlescent Froglight
 #da73de
๐Ÿ‘ Image
Glowstone
๐Ÿ‘ Image
Jack o'Lantern
 #d3852b
๐Ÿ‘ Image
Lantern
 #f39a5e
[a]
๐Ÿ‘ Image
Lava
 #d3852b
๐Ÿ‘ Image
Lava Cauldron
๐Ÿ‘ Image
Campfire (lit)
 #f39a5e
๐Ÿ‘ Image
Redstone Lamp (lit)
 #e8c398
๐Ÿ‘ Image
Respawn Anchor (four charges)
 #a233eb
๐Ÿ‘ Image
Sea Lantern
 #b0dad3
๐Ÿ‘ Image
Shroomlight
 #d3852b
๐Ÿ‘ Image
Copper Bulb (lit)
 #e8c398
๐Ÿ‘ Image
Cave Vines (with berries) 14
 #d3852b
๐Ÿ‘ Image
Copper Torch
 #86ca59
[a]
๐Ÿ‘ Image
End Rod
 #da73de
[a]
๐Ÿ‘ Image
Torch
 #f39a5e
[a]
๐Ÿ‘ Image
Blue Torchโ€Œ[edu & BE only]
 #0000ff
[a]
๐Ÿ‘ Image
Purple Torchโ€Œ[edu & BE only]
 #ff00ff
[a]
๐Ÿ‘ Image
Red Torchโ€Œ[edu & BE only]
 #ff0000
[a]
๐Ÿ‘ Image
Green Torchโ€Œ[edu & BE only]
 #00ff00
[a]
๐Ÿ‘ Image
Underwater Torchโ€Œ[edu & BE only]
๐Ÿ‘ Image
Furnace (lit) 13
๐Ÿ‘ Image
Blast Furnace (lit)
๐Ÿ‘ Image
Smoker (lit)
๐Ÿ‘ Image
Vault (active) 12
 #d3852b
๐Ÿ‘ Image
Candle (four, lit)
 #d3852b
[a]
๐Ÿ‘ Image
Sea Pickle (three, waterlogged)
 #b0dad3
[a]
๐Ÿ‘ Image
Exposed Copper Bulb (lit)
 #e8c398
๐Ÿ‘ Image
Glowing Obsidianโ€Œ[edu & BE only]
๐Ÿ‘ Image
Nether Portal 11
 #a233eb
๐Ÿ‘ Image
Respawn Anchor (three charges)
๐Ÿ‘ Image
Crying Obsidian 10
๐Ÿ‘ Image
Soul Campfire (lit)
 #36d9e6
๐Ÿ‘ Image
Soul Fire
๐Ÿ‘ Image
Soul Lantern
 #36d9e6
[a]
๐Ÿ‘ Image
Soul Torch
๐Ÿ‘ Image
Candle (three, lit) 9
 #d3852b
[a]
๐Ÿ‘ Image
Deepslate Redstone Ore (lit)
 #c32c1f
๐Ÿ‘ Image
Redstone Ore (lit)
๐Ÿ‘ Image
Sea Pickle (two, waterlogged)
 #b0dad3
[a]
๐Ÿ‘ Image
Trial Spawner (active) 8
 #d3852b
๐Ÿ‘ Image
Weathered Copper Bulb (lit)
 #e8c398
๐Ÿ‘ Image
Enchanting Table 7
 #a233eb
๐Ÿ‘ Image
Ender Chest
๐Ÿ‘ Image
Glow Lichen
 #b7f1bc
๐Ÿ‘ Image
Redstone Torch (lit)
 #c32c1f
[a]
๐Ÿ‘ Image
Respawn Anchor (two charges)
 #a233eb
๐Ÿ‘ Image
Candle (two, lit) 6
 #d3852b
[a]
๐Ÿ‘ Image
Sea Pickle (one, waterlogged)
 #b0dad3
[a]
๐Ÿ‘ Image
Sculk Catalyst
 #36d9e6
๐Ÿ‘ Image
Vault (inactive)
 #d3852b
๐Ÿ‘ Image
Amethyst Cluster 5
 #b966e8
๐Ÿ‘ Image
Large Amethyst Bud 4
๐Ÿ‘ Image
Oxidized Copper Bulb (lit)
 #e8c398
๐Ÿ‘ Image
Trial Spawner (waiting)
 #d3852b
๐Ÿ‘ Image
Candle (one, lit) 3
 #d3852b
[a]
๐Ÿ‘ Image
Candle Cake (lit)
๐Ÿ‘ Image
Magma Block
 #d3852b
๐Ÿ‘ Image
Respawn Anchor (one charge)
 #a233eb
๐Ÿ‘ Image
Medium Amethyst Bud 2
 #b966e8
๐Ÿ‘ Image
Firefly Bush (when not snowlogged)
 #e8c398
๐Ÿ‘ Image
Brewing Stand 1
๐Ÿ‘ Image
Brown Mushroom
๐Ÿ‘ Image
Calibrated Sculk Sensor
๐Ÿ‘ Image
Dragon Egg
๐Ÿ‘ Image
End Portal Frame
๐Ÿ‘ Image
Sculk Sensor
 #36d9e6
๐Ÿ‘ Image
Small Amethyst Bud
 #b966e8
๐Ÿ‘ Image
Light (block) 0โ€“15
  1. โ†‘ a b c d e f g h i j k l m n o p q r s t Has point lighting
  1. โ†‘ The colored lighting of the block in Vibrant Visuals, when the "Render Dragon Features for Creators" experiment is enabled in Minecraft Preview. When no color is specified, it uses the default white instead.

Internal light level

[edit | edit source]
๐Ÿ‘ Image
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 a block to compute various aspects of the game, which include mob spawning, the growth of some plants, and daylight detector outputs.

In the Overworld, the internal light level is calculated as the maximum level of the block light and the internal sky light (formula: max(internal sky light, block light)).

In other dimensions, due to the lack of sky light in them, the internal sky light level is always 0, so the internal light level is simply equal to the level of block light.

Internal sky light

[edit | edit source]

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

As the Overworld becomes darker, the internal sky light gets lower. Rendered brightness is what dictates the illumination of the Overworld, not internal sky light.

Below there are two charts that explain how internal sky light is affected by the time and weather at sky light level 15. 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 Weather 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 any weather 4
  1. โ†‘ During thunderstorms, hostile mobs are allowed to spawn as if the internal sky light level were actually 5.
Internal sky light Clear Rain or snowfall Thunder
Time โ†“ Time โ†‘ Time โ†“ Time โ†‘ Time โ†“ Time โ†‘
4 13,670-22,330

8,660 GameTicks or 7 minute 13 seconds

13,670-22,330

8,660 GameTicks or 7 minute 13 seconds

13,670-22,330

8,660 GameTicks or 7 minute 13 seconds

5 22,331-22,491

160 GameTicks or 8 seconds

13,509-13,669

160 GameTicks or 8 seconds

22,331-22,565 13,436-13,669 22,331-22,671 13,330-13,669
6 22,492-22,652

160 GameTicks or 8 seconds

13,348-13,508

160 GameTicks or 8 seconds

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 GameTicks or 7.95 seconds
B: 160 GameTicks or 8 seconds
13,188-13,347

159 GameTicks or 7.95 seconds

22,799-23,031 12,969-13,202 23,011-23,352 12,648-12,989
8 22,813-22,973โ€Œ[JE only]
22,814-22,973โ€Œ[BE only]
J: 160 GameTicks or 8 seconds
B: 159 GameTicks or 7.95 seconds
13,027-13,187

160 GameTicks or 8 seconds

23,032-23,266 12,734-12,968 23,353-23,700 12,300-12,647
9 22,974-23,134

160 GameTicks or 8 seconds

12,867-13,026

159 GameTicks or 7.95 seconds

23,267-23,504 12,497-12,733 23,701-59

240 GameTicks or 12 seconds

11,941-12,299โ€Œ[JE only]
11,942-12,299โ€Œ[BE only]
J:358 GameTicks or 17.9 seconds
B:357 GameTicks or 17.85 seconds
10 23,135-23,296

161 GameTicks or 8.05 seconds

12,705-12,866

161 GameTicks or 8.05 seconds

23,505-23,745 12,256-12,496 60-11,940โ€Œ[JE only]
60-11,941โ€Œ[BE only]
J: 11,880 GameTicks or 9 minute 54 seconds
B: 11,881 GameTicks or 9 minute 54 seconds
11 23,297-23,459

162 GameTicks or 8.1 seconds

12,542-12,704

162 GameTicks or 8.1 seconds

23,746-23,991 12,010-12,255 N or A
12 23,460-23,623โ€Œ[JE only]
23,460-23,624โ€Œ[BE only]
J: 163 GameTicks or 8.15 seconds
B: 164 or 8.2 seconds
12,377-12,541

164 GameTicks or 8.2 seconds

23,992-12,009

12,017 GameTicks or 10 minute 0.850 seconds

N or A
13 23,624-23,790โ€Œ[JE only]
23,625-23,790โ€Œ[BE only]
J: 166 GameTicks or 8.3 seconds
B: 165 GameTicks or 8.25 seconds
12,210-12,376

166 GameTicks or 8.3 seconds

N or A N or A
14 23,791-23,960

169 GameTicks or 8.45 seconds

12,041-12,209

168 GameTicks or 8.4 seconds

N or A N or A
15 23,961-12,040 N or A N or A

Effects of light

[edit | edit source]

Light affects various things in the world: from crop growth, to mob spawning and behavior, and so on. Below, there are charts that depict the effects of light on various mobs and blocks.

Keep in mind that light level is only one of the considerations that apply to mob spawning and plant growth. Check the corresponding articles for more information.

Passive mobs, and some friendly neutral mobs can spawn at both day and night. However, they require a block light level of 9 or higher when the block is not exposed to the sky.โ€Œ[Java Edition only]. In Bedrock Edition, they can only spawn during the day as they require a light level of 7 or more.

Most hostile mobs spawn in the Overworld when it gets dark at night, thunderstorms, or in caves, but torches and other light-emitting blocks prevent the mobs' spawn. These mobs need a maximum internal sky light level of 7 (however, the smaller the value, the more successful spawn attempts happen) and a block light level of 0 to spawn.

Several undead mobs are set on fire for 8 seconds when hit by sunlight; these mobs try to avoid such areas and do not burn while in water, in the rain, wearing a helmet, or in the shade.

The following chart describes the spawning and behavior of various mobs in function of the block light, in different worlds.

Block light level
Mob
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
๐Ÿ‘ Image
Skeleton
Spawn in Overworld Do not spawn. (In the overworld) Do not spawn, burn in sunlight
๐Ÿ‘ Image
Zombie

๐Ÿ‘ Image
Zombie Horse
Spawn in the Overworld Do not spawn Do not spawn, burn in sunlight
๐Ÿ‘ Image
Drowned

๐Ÿ‘ Image
Zombie Nautilus
Spawn in oceans and rivers Do not spawn Do not spawn, burn in sunlight
๐Ÿ‘ Image
Creeper

๐Ÿ‘ Image
Witch

๐Ÿ‘ Image
Husk

๐Ÿ‘ Image
Camel Husk

๐Ÿ‘ Image
Parched

๐Ÿ‘ Image
Sulfur Cube
Spawn in the Overworld Do not spawn
๐Ÿ‘ Image
Spider

๐Ÿ‘ Image
Cave Spider
Spawn in the Overworld Do not spawn. They are hostile. Do not spawn. neutral unless provoked.
๐Ÿ‘ Image
Enderman
Spawn in all three dimensions Do not spawn in the Overworld Do not spawn in the Overworld, teleport randomly with 15 sky light, unless they are attacking or chasing.
๐Ÿ‘ Image
Bat
Spawns under solid blocks in the Overworld Do not spawn
๐Ÿ‘ Image
Slime
(slime chunk)
Spawn in slime chunks at Y: -64โ€“40
๐Ÿ‘ Image
Slime
(swamp)
Spawn in swamp biomes at Y: 50โ€“70 Do not spawn
๐Ÿ‘ Image
Phantom
Spawn in the Overworld if player hasn't entered a bed or died in over 3 in-game days Do not spawn Do not spawn, burn in sunlight
๐Ÿ‘ Image
Silverfish
Spawn from monster spawners in Stronghold or trial spawners in Trial Chambers Spawn from monster spawners on top of stone type block it can enter
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

In the nether:

Block light level
Mob
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
๐Ÿ‘ Image
Wither Skeleton
Spawn in nether fortresses Do not spawn
๐Ÿ‘ Image
Enderman
Spawn in Warped Forest, Soul Sand Valley and Nether Wastes Do not spawn
๐Ÿ‘ Image
Blaze
Spawn in nether fortresses Do not spawn
๐Ÿ‘ Image
Zombified Piglin
Spawn in the Nether Do not spawn
๐Ÿ‘ Image
Piglin
Spawn in Crimson Forest, Nether Wastes Do not spawn
๐Ÿ‘ Image
Skeleton
Spawn in the soul sand valley, Nether wastes. In nether fortress 20% chance to replace Wither Skeletons Do not spawn
๐Ÿ‘ Image
Ghast
Spawn in basalt deltas, Nether wastes, and soul sand valley
๐Ÿ‘ Image
Hoglin
Spawn in crimson forest
๐Ÿ‘ Image
Magma Cube
Spawn in Basalt Deltas, Nether Wastes, and nether fortress
๐Ÿ‘ Image
Piglin Brute
Do not spawn, only upon generation in bastion remnants
๐Ÿ‘ Image
Strider
Spawn on space of lava with air above


Blocks

[edit | edit source]

In Java Edition, most types of plants can grow at night, even if not supplied sufficient light from a light-emitting block, as long as plants of certain types are receiving a sufficient sky light value. This is because those types use the client light formula. In other words, those types do not grow in extremely dark areas where the value of sky light that reaches them is not sufficient. Unlike internal sky light, regular sky light used by the client light formula does not change with the time of day or weather. In Bedrock Edition, more types of plants need a light-emitting block to grow throughout the night than the amount of types that need light at night in Java Edition.

In Java Edition, insufficiently illuminated crops break (uproot) in the next block update, and planting crops is not possible in such conditions. In Bedrock Edition, crops don't break and can always be planted due to a bug.[1]

Light level is checked at the block's position, even for crops and ice blocks. The block above is checked instead for bamboo, saplings, grass blocks, and mycelium.

Below is a chart that explains how various blocks react to different types of light (see ยง Light level and ยง Internal light level, above). It is intended for Java Edition. The main differences with Bedrock Edition not seen in the chart are:

Blocks and plants that are not listed on the chart (for example, sugar cane and cactus) are considered to not be affected by any type of light.

Block Level 0โ€“3 Level 4โ€“7 Level 8 Level 9 Level 10 Level 11 Level 12 Level 13โ€“15
Affected by block light
๐Ÿ‘ Image
Snow
Forms Neither forms nor melts[note 1]โ€Œ[JE only]
Formsโ€Œ[BE only]
Melts
๐Ÿ‘ Image
Ice
Forms Neither forms nor melts[note 2]โ€Œ[JE only]
Formsโ€Œ[BE only]
Melts
Affected by client light
๐Ÿ‘ Image
Mushrooms
Spread Uproot unless on mycelium, podzol, or nylium
๐Ÿ‘ Image
Pumpkin
or melon stems
๐Ÿ‘ Image
Bamboo
[note 3]
Does not grow Grows
๐Ÿ‘ Image
Wheat

๐Ÿ‘ Image
Carrots

๐Ÿ‘ Image
Potatoes

๐Ÿ‘ Image
Beetroots
Uprootโ€Œ[JE only]
Does not grow[note 4]โ€Œ[BE only]
Does not grow Grows
Affected by internal light
๐Ÿ‘ Image
Saplings
[note 5]
Does not grow Grows
๐Ÿ‘ Image
Grass Block

๐Ÿ‘ Image
Mycelium

[note 5]
Becomes dirt if opaque block or partially transparent block on top Does not spread Spreads to nearby dirt
๐Ÿ‘ Image
Frosted ice
Affected by internal sky light
๐Ÿ‘ Image
Daylight detector
(inverted)
Output = 15 - Current light level
  1. โ†‘ "[MC-217420] Snow neither forms nor melts at block light level 11 โ€“ Jira" โ€“ Mojira, March 1, 2021.
  2. โ†‘ "[MC-217424] Ice neither forms nor melts at block light level 10 โ€“ Jira" โ€“ Mojira, March 1, 2021.
  3. โ†‘ For bamboo growth, the light level is checked in the block above the current height.
  4. โ†‘ "[MCPE-36863] Crops don't break in low light โ€“ Jira" โ€“ Mojira, August 19, 2018.
  5. โ†‘ a b For growth, the light level is checked in the block above it.

Rendered brightness

[edit | edit source]
๐Ÿ‘ Image
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.

In classic graphics modes, the game uses the light level (instead of internal light level), time, and weather to compute the rendered brightness of a given object in the world.[note 1] 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 (except on Simple graphics); 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 lowest brightness setting, full daylight reaches 98% brightness,[luma 1] while at night brightness is reduced to about 17% and is shaded blue. Full darkness is about 5% brightness. In Bedrock Edition, brightness during sunrise and sunset is dynamically tinted orange.

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.) Full darkness with the lowest brightness setting is at about 25% brightness, 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 lowest brightness setting is about 28% brightness, and is shaded toward a bluish-green rather than the orange of the Nether and of block lighting. During End flashes in Java Edition, the lighting gets tinted purple.

Regardless of graphics settings, all top faces of a three-dimensional object are rendered with full brightness, the north/south sides are slightly darkened, and the bottom and east/west sides are more darkened. This is not applied to entities and objects on the HUD in Simple graphics.โ€Œ[BE only]


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)
  1. โ†‘ An "object" here refers to any block, entity, particle, or player hand/item on the HUD. Other in-game objects such as the sky and clouds use their own brightness calculations.
  1. โ†‘ Brightness here refers to ITU-R BT.601 luminance value (luma)

Smooth lighting

[edit | edit source]
๐Ÿ‘ Image
The difference between Smooth Lighting on and off

Smooth lighting is a lighting effect that blends light levels across block faces and darkens corners using ambient occlusion to add semi-realistic shadows and glowing from light sources. Paintings, item frames[2] and water surfaces[3] are unaffected in Java Edition; paintings are unaffected in Bedrock Edition with Simple graphics.

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

Ambient occlusion

[edit | edit source]

Ambient occlusion darkens corners between blocks to mimic the real life effect where less light makes it into corners. This effect is based on the blocks placed diagonally in front of the shaded side of a block.

For each corner of a side, the game checks diagonally for full blocks and determines the corner's brightness based on the found full blocks, with no full blocks meaning full brightness and both sides diagonally being full blocks meaning the darkest level possible (ambient occlusion only darkens to an extent and does not turn textures fully black). The brightnesses of the four corners are then blurred across the whole side and are applied to the block's texture.

This table shows all different combinations of ambient occlusion for the back corner of the top of the lower block:

Fully lit Corner darkened Edge darkened Corner and edge darkened Corner and both edges darkened
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image

Vibrant Visuals

[edit | edit source]
This feature is exclusive to Bedrock Edition.
 

Vibrant Visuals completely rewrites the rendered brightness algorithm by applying deferred lighting and physically based rendering. The game is rendered in high-dynamic range (HDR) calculating the luminance of each pixel in the scene, allowing to modify this with post processing effects.

Illumination

[edit | edit source]

First, the game calculates the illuminance applied to any object in the game, including blocks, entities, particles, clouds, and the player hand/held item on the HUD. Illumination is based on physically accurate values and calculated in lumen. Sky objects are rendered separately.

Global directional lighting

๐Ÿ‘ Image
Sunlight with Vibrant Visuals creating shadows and reflections

Global directional lighting is dynamic light created at a set point in the sky. This includes the orbital moving sun and moon in the Overworld, and randomly positioned End flashes in the End. Visualized by volumetric fog, light bloom, and mie scattering, they illuminate all directly exposed surfaces (even if there are transparent objects in between). Intensity of their lights is calculated in lux, which converts to one lumen per block. Unlike in real life, directional light sources closer to the horizon do not "spread" the light over larger surfaces and light it more dim. Instead, the intensity changes with the daylight cycle:

  • At noon, the sun has an intensity of 100 lux. This gradually fades during dusk and dawn, and is 0 during nighttime. A few biomes have custom sunlight intensities:
  • At midnight, the moon has an intensity of 0.4 lux, which gradually fades during dusk and dawn.
  • End flashes have an intensity of 3 lux, with hard-coded fading at the start and the end.
  • In the Nether, there is a "moonlight" (without an actual moon) with a luminance of 100 lux, used to illuminate atmospherics, but also illuminates the Nether roof with a red tint.
  • See Vibrant Visuals/Configurations ยง Lighting for all exact values.

Global directional lighting illuminates objects through direct diffuse with Lambertian BRDF. Depending on the object's roughness and metalness textures, light illuminates the object and gets reflected with its tint. Subsurface scattering allows direct diffuse to slightly penetrate through objects like leaves.

On metallic surfaces like water, global directional lighting also creates specular highlights using the Cook-Torrance model. This reflects light more bundled in one position at higher illuminance, as a stretched spot on the surface.

๐Ÿ‘ Image
An End flash creating purple diffuse, shadows, and volumetric fog

The tinting of direct diffuse and direct specular, as well as the tinting of bloom, volumetric fog, and mie scattering, depends on the light source's color:

  • The sun has different shades of orange, yellow, and white that are constantly changing with the daylight cycle. A few biomes have custom sunlight colors:
  • The moonlight is colored with a static
     163, 182, 255
    , although some biomes have custom colors:
    • Pale gardens use
       217, 225, 255
      .
    • Most warm biomes use
       88, 129, 255
      .
    • Deserts use
       62, 108, 255
      .
  • End flashes are colored
     228, 93, 255
    .
  • See Vibrant Visuals/Configurations ยง Lighting for all exact values.

Surfaces not illuminated by directional lighting are shadows, with the exact border calculated through shadow mapping. The game applies additional calculations to remove smooth borders and make them align with the pixel grid. Clouds also create shadows, but do not get shadowed as they are technically transparent.

Point lighting

๐Ÿ‘ Image
Point lighting and colored block lighting

Point lights are local directional light sources available only in experimental. They are assigned to the center of a block, creating the same effects as global directional lighting. Their intensity depends on the block's light level, and the color is defined per block. Direct diffuse from point lighting is only visible within the block's light radius, see below.

Block lighting

๐Ÿ‘ Image
Block lighting with Vibrant Visuals

Block lighting simulates the classic light model from light-emitting blocks. Instead of using an intensity, the illuminance in lumen is calculated at every pixel around the block, resulting in much smoother light decrease. Specifically, the illumination linearly decreases with the light level, with one block light unit converting to 90.190359 lumen.

This illuminates the environment through plain, indirect diffuse, using default light colors. Point lights or custom static light colors can override this color. For all vanilla experimental light colors, see ยง Light-emitting blocks.

Sky light

๐Ÿ‘ Image
Light falling into a dark cave, where hostile mobs can still spawn. Notice the sky light level decreasing in the cave openings, making the contrast between shadows and directional lighting larger.

Similarly to block light, the internal light level from sky light in the Overworld is used to apply illumination through indirect diffuse, with a white color. This also linearly corresponds to the light level. However, when the sky light level hits 0, global directional lighting is disabled, notably volumetric fog and direct diffuse.

๐Ÿ‘ Image
A dry thunderstorm. With almost no sky light, directional light is the main contributor to the scene, which appears more yellow-brown.

Sky light reduces the contrast between shadows created by directional lighting and direct diffuse. The effect is noticable in cave openings where the sky light level decreases while directional light still illuminates the environment, or during thunderstorms when sky light decreases.

Ambient light

This refers to indirect diffuse that is applied on any surface in the game, regardless of light levels or shadows. It is colored white, and prevents objects from rendering pitch black in caves, for example.

Ambient lighting has set intensities for each dimension: 0.02 lux in the Overworld, 0.5 in the Nether, and 0.125 in the End.

Emissive textures

๐Ÿ‘ Image
Various emissive pixels in a cave.

Emissiveness is a form of illumination that is not applied to surfaces with diffuse. Objects can have emissive pixels defined in their MERS texture, which greatly increases the illuminance on that single pixel, making the color glow in the dark. Emissive textures are also reflected with emissiveness through Cook-Torrance BRDF and SSR reflections.

Deferred shading

[edit | edit source]

Vibrant Visuals shades the environment to make objects blend in more, and create some shadow effects. The game calculates surface normals and depth to shade the albedo color image in a smooth way similar to smooth lighting, which is applied to any object in the game except transparencies like water.

Other effects

[edit | edit source]

The illuminance of the final image gets affected by a few other effects. Atmospherics (most notably mie scattering), classic fog types, and volumetric fog shade objects in the distance and decrease their illuminance, while they are illuminated on their own by any type of lighting. Water bodies and clouds also have a similar light scattering effect. Furthermore, if directional lighting shines on underwater surfaces, they project caustics. These are animated textures strongly illuminated by directional light sources.

During precipitation, the sun and moon get hidden with the directional lighting effects, but mie scattering is still applied. Night Vision heavily increases ambient lighting, and Blindness and Darkness disable global directional lighting.

Vibrant Visuals also applies post processing effects related to lighting. Light bloom appears on any region in the image with high luminance values, creating a glow around the object. Auto exposure and eye adaptation are applied when the overall luminance of the screen changes, darkening it in brightness and brightening it in darkness. Tone mapping finally remaps the image from HDR to SDR with luminance curves that preserve color in higher luminance areas, thus creating a more vibrant picture.

Various effects can be customized in the Vibrant Visuals options. The brightness can be adjusted with a separate "Gamma" option, which allows a larger range of brightness levels.

History

[edit | edit source]
This section is missing information about: More Bedrock Edition history
 
Please expand the section to include this information. Further details may exist on the talk page.

Java Edition

[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. Brightness of the "dark" level is about 40%. "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.
rd-20090515Shadows were brightened.
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-0040Added 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% (8โ„8) and 7 is 87.5% (7โ„8).
20100109-1939There 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-2027Passive mobs now spawn only in higher light levels, and hostile mobs spawn only in the dark.
20100212-1210Sunlight'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.[4]
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".
Ambient light value for the Overworld has been changed from 0.05 to 0.0.
Java Edition
1.4.212w39aDinnerbone fixed black patches in world generation,[5] and began overhauling the lighting systems such as changing the lighting of blocks to allow for directional lighting.[6][7]
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.[8]
1.814w30aThe lighting engine was significantly improved, removing most black spots present in world generation.
1.1318w06aVarious crops can now grow at night after they stopped requiring internal light in favor of client light.
1.1418w43aThe lighting system has been rewritten.
18w46aAdded support for directional opacity of blocks.
19w09aWheat, carrots, potatoes, and beetroots now check for necessary light to grow and survive in the crop's block. Previously, growth was checked above the crop, and survivability in the crop itself.
19w11aPumpkins and melons now check for necessary light to grow in the stem's block. Previously, growth was checked above the stem.
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.
21w18aSlightly reduced light brightness.[9]
pre2Smooth lighting now works properly underwater.[10]
1.18Experimental Snapshot 1Block light level now must be 0 for many hostile mobs to spawn (the sky light can still prevent these mobs from spawning like before).[11]
1.19.3Release Candidate 1The "Maximum" and "Minimum" settings for smooth lighting have been merged, since there is no difference between them.[12]
1.21.224w33aThe lightmap texture is now rendered by a Shader instead of being hardcoded.
1.21.925w36aSlightly increased light brightness.[13]
25w37aAmbient lighting on entities has been adjusted to be more visually in line with blocks and other parts of the game.
The underside of flat surfaces will now be lit from that direction, instead of the opposite direction.

Bedrock Edition

[edit | edit source]
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.
Bedrock Edition
1.13.0beta 1.13.0.4Added light block, which provides a customizable light level.
1.17.30
Experiment
Caves and Cliffs
beta 1.17.20.22Block light level now must be 0 for many hostile mobs to spawn.
1.18.0beta 1.18.0.20New light level requirements for mob spawning are now available through normal gameplay.
1.19.0beta 1.19.0.30Endermen, piglins, skeletons and wither skeletons can spawn in the Nether at light level 11 and below.
1.19.60beta 1.19.60.22Endermen, skeletons and wither skeletons can spawn in the Nether at light level 7 and below.
1.21.80
Experiment
Vibrant Visuals
Preview 1.21.80.25Added a new rendered brightness algorithm for Vibrant Visuals, with directional lighting and various effects.
1.21.90Preview 1.21.90.26Added biome configurations for directional and ambient lighting with Vibrant Visuals.

Legacy Console Edition

[edit | edit source]
Legacy Console Edition
Xbox 360Xbox OnePS3PS4PS VitaWii USwitch
TU3CU11.001.001.00Patch 11.0.1Added lighting improvements from Java Edition Beta 1.8.

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.
  • There is a glitch in where when an entity's origin point enters a block, it becomes black. See the article "Black entities" for more info.

Gallery

[edit | edit source]

Screenshots

[edit | edit source]

Developer images

[edit | edit source]

References

[edit | edit source]
  1. โ†‘ "[MCPE-36863] Crops don't break in low light โ€“ Jira" โ€“ Mojira, August 19, 2018.
  2. โ†‘ "[MC-1531] No smooth lighting on item frames and paintings โ€“ Jira" โ€“ Mojira, October 31, 2012.
  3. โ†‘ "[MC-227302] Smooth lighting doesn't work properly on the water surface โ€“ Jira" โ€“ Mojira, June 3, 2021.
  4. โ†‘ https://web.archive.org/web/0/http://notch.tumblr.com/post/3446675806/minecraft-beta-1-3
  5. โ†‘ "Remember that silly lighting bug where world would generate with big black patches? Well you may not remember it in the future; it's fixed." โ€“ @Dinnerbone (Nathan Adams) on X (formerly Twitter), September 26, 2012
  6. โ†‘ "It's such a small thing to look at, but this required unbelievable amounts of code changing :D" โ€“ @Dinnerbone (Nathan Adams) on X (formerly Twitter), September 26, 2012
  7. โ†‘ http://www.reddit.com/r/Minecraft/comments/10g4mi/dinnerbone_at_this_point_i_think_its_almost/
  8. โ†‘ "Finally! Much fewer "black spots" in the terrain generator, such a relief =)" โ€“ @jeb_ (Jens Bergensten) on X (formerly Twitter), July 31, 2013
  9. โ†‘ "[MC-225088] Overworld surface is darker than before on low brightness โ€“ Jira" โ€“ Mojira, May 7, 2021. Resolved as "Fixed".
  10. โ†‘ "[MC-68129] Smooth lighting doesn't work properly underwater โ€“ Jira" โ€“ Mojira, August 18, 2014.
  11. โ†‘ "Caves & Cliffs: Part II out today on Java" โ€“ Minecraft.net, November 30, 2021.
  12. โ†‘ MC-58668 โ€“ Smooth Lighting Minimum and Maximum levels no longer differ โ€“ resolved as "Fixed".
  13. โ†‘ "[MC-225088] Overworld surface is darker than before on low brightness โ€“ Jira" โ€“ Mojira, May 7, 2021. Resolved as "Fixed".

Navigation

[edit | edit source]
Retrieved from "https://minecraft.wiki/w/Light?oldid=3631949"

Navigation menu