Minecraft Wiki

除另有声明,转载时均必须注明出处若簡繁轉換出錯,請以遊戲內為準请勇于扩充与修正内容有兴趣逛逛我们的微博沟通交流,欢迎到社区专页需要协助,请在告示板留言

了解更多

Minecraft Wiki
Advertisement
File:Lightexample.png

照明。

File:Light.png

11种不同的亮度。

亮度(Lighting)在Minecraft里会影响能见度,生物的出现,树木的生长,以及蘑菇会否留下。光可以由阳光,火把岩浆,使用中的熔炉,和某些其他方块提供。

历史

Minecraft已经用过了许多不同的方式来照亮世界。Classic的模型十分简单,它只检查方块是否暴露在天空下。Indev的照明则更为复杂并考虑一个方块与最近的阳光和最近的发光方块的距离。Alpha的模型是Indev的细化,分别计算阳光和方块发出的光并利用不同规模的光照强度。早期的Beta更新通过加入平顺照明选项来改善Alpha的模型,而在后期的Beta更新中,整个照明引擎再次被改写来提高效率,有更多的细节,和平稳过渡照明差距。

Classic

File:Classiclight.png

在Classic中的亮光。

Classic中,“阳光”在地图上方边缘发出亮光,并将碰触到其下的任何方块。它将穿透透明方块来照亮其下的方块。接收不到光的方块会处在昏暗的阴影中,不管它们离光源多远,仍然会是相同的亮度水平。

Indev/Infdev

IndevInfdev版本中有16个程度的亮度,最高的15代表直接在日光下的亮度,最低0则代表几乎完全黑暗。亮度使用一个线性尺度并表示其值除以15,例如100%是15(1515)而13是86.67% (1315)。

每种发光的方块都有其自身亮度值,亮度会在每离光源多一个方块时减少一个级别。如果相邻的方块已经有一个更高的亮度,它将被忽略,并为每个刚刚改变其亮度值的方块重复这个过程。

白天,阳光具有最大的亮度15。黄昏时分,它会稳步下降到夜间最低值4,一个代表月光的亮度。阳光从地图顶部发光,但与“光源”的距离并没有减弱其亮度。在任何高度或深度由太阳光照亮的方块将有同样亮度。

Alpha - Beta 1.2_02

Alphapre Beta 1.3的亮度与在Indev和Infdev中的一样,除了尺度变成不是线性的。

全日光提供最大亮度15级,每低一级亮度会是上一级的80%。例如,14级是阳光亮度的80%,然后13级是阳光亮度的64%。这说明着即使是0级亮度仍是阳光亮度的0.815•100% = 3.5%。

Alpha里的阳光有它们自己的光的排列和幕后的优化,使黎明和黄昏看起来更顺畅:从天空而来的光量是预先计算好的并与方块一起保存,而因为它从来除了方块被添加或删除时是不需要改变的。在黄昏,夜间和黎明期间,一个“黑暗”值会从天空的亮度中被减去从而创造一天不同时间对亮度的影响。

下界,光在每个级别只降低10%,而不是正常的20%。这意味着在下界绝不会有完全黑暗的情况。最小光值是阳光的20.59%,提供一个相当于正常世界的8级的永久最低昏暗亮度。

Beta 1.3 - Beta 1.7.3

Beta 1.3 至 1.7.3 与Alpha中的运作是完全相同的,但它有更大的优化,让平顺照明变得可行。

Beta 1.8 - Present

File:Light normal.PNG

Beta pre1.8 白天的光线的光谱。X轴代表与光源的接触(如:火把)而Y轴代表暴露在阳光下。

File:Light night.PNG

Beta pre1.8 夜间亮线的光谱。 Y轴的颜色略带蓝色,并代表暴露在月光下。

Void Lighting

在虚无的亮度。粒子和实体是基于0级光而被照亮,而虚空中的雾也消失了,因为玩家被阳光直接照射。

在Beta 1.8版本中使用了新的照明引擎。新的引擎的添加或更改如下:

  • 某区域的照明受光源方块类型的影响:月光有一种蓝色色调,火把和熔岩有一种红色色调,而完全黑暗和阳光都和以前一样。
  • 光线变化变成了实时的,并基于某一天的时间变化而逐步产生变化以及现在降雨的状态会平顺地改变照明的值,而不是单独逐个区块更新照明。
  • 使用新的实时照明,非阳光照明现在会巧妙地闪烁。但这个功能是纯粹用来美观,并对游戏过程没有影响。
  • 日落比以前更加强烈和现实,而如果玩家背对它它的亮度会变暗。
  • 在极端的深度,黑色的雾会逐步接近。在基岩层,一个火把不再可以从11方块距离外见到。这种效果会因靠近天空而受到抑制(即你站着的地方受到阳光点亮的程度),不管太阳目前是否在天空中。
  • 当在虚无里,照明的运作类似在Classic版本中,在虚空的对象将保持在一个一定的亮度,无论它们离光源多远,只要他们保持在虚空开口之下。对某一特定“栏”的方块的亮度是基于目前在高度0级(基岩层)的光亮度。这适用于所有的实体以及微粒。
  • 此外,挖一条从表面直到虚空的信道然后站在该信道下的虚空中,让阳光直接射入虚空将移除虚空里的雾,无论是不是白天。

平顺照明

SmoothAnimSmal

有和没有平顺照明的差别。

平顺照明(也包括亮度阻塞(Ambient Occlusion)以及内插跨方块面照明)是一个在Beta 1.3中加入的有MrMessiah的帮忙的照明引擎。[1]这个照明引擎在默认情况下是启用的,并可以从选项菜单中的视频选项中启用或停用它。

该引擎混合照明来添加半逼真的阴影和光源的发光。它把内角变暗,令小空间变得更加黑暗。在Beta 1.3之前,该功能只可通过修改游戏与使用MrMessiah的BetterLight Mod来获取。[2]

已知漏洞

  • 平顺照明开启时,传送门会有照明错误,因为透明度是由游戏而不是纹理制造出来的。
  • 即使平顺照明已启用,静止和流动液体的阴影仍是不平顺的。
  • 平顺照明似乎并不在上有效果。
  • 如果玻璃直接放在另一表面上会制造出阴影。
  • 在玩家和物品从从方块移动到方块时平顺照明不会影响他/它们。
  • 在极少数情况下光可以在没有任何发光物体的地区出现。这可能在加载旧Minecraft版本世界到新的版本时发生。

图片

Effects of light

  • Hostile mobs, excluding slimes, zombie pigmen and ghasts, require a light level of 7 or less to spawn.
    • The Halloween Update version Alpha 1.2.0 allowed monsters to 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. Notch reverted mob spawning to the original method in version Alpha 1.2.1, saying, "it was far too annoying. I have plans on what to do with this."
  • Blazes require light level 12 or less to spawn.
  • Planted Flowers and Saplings will stay in the ground at light level 8 or higher. They will also stay in the ground if there are no blocks between them and the sky, regardless of light level.
  • Mushrooms only survive at light level 12 or less.
  • Snow and ice will melt at light level 12 or higher, and won't form at light levels above 10. Sunlight is ignored.
  • Trees will grow if the light in the block above a sapling is 9 or higher.
  • Crops will only grow in light level 9 or higher.
  • Grass will only spread in light level 4 or higher.
  • Ambience is triggered by chambers at least 3x3 that are entirely at light level 8 or lower.
  • Spiders and Cave Spiders will only become hostile at light level 11 or lower.

Light and Non-Opaque Blocks

Ice-water-light-anim

How ice affects light. Click through to see it animated between ice and water.

Transparent blocks do not affect the light spread, unlike solid ones which will stop the light from being transmitted any further. This includes glass, water, ice, portal interiors, and so forth. See Opacity for a full list.

Certain blocks will only allow light to pass through diffusely. These are water and ice, which reduce light by an additional 2 levels per block, and leaves, which diffuse sunlight but only reduce light by the normal 1 level per block.

Light-emitting blocks

LightEmittingBlocks

Blocks that emit light

The following values are the brightness of the block itself. The light emitted decreases by one for each square of distance from the light source. Glass does not diminish the light that passes through it, but water or ice reduces light that passes through it by 3 (2 for passing through +1 for normal block decrease). In Minecraft's source code, the luminescences are defined using the floating point values in the third column. In a weird quirk, 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.

图标 方块 光亮 亮度 数据值
(太阳光) 15 100% 1.0F
Fire
Jack-O-Lantern 南瓜灯
Lava 岩浆
File:Glowstone (Block).png 萤石
File:Locked Chest.png 上锁的箱子
End Portal 末地传送门方块
File:Redstone Lamp (Active).png 红石灯,开启时
Torch 火把 14 80% 0.9375F
File:Furnace (Active).png 亮着的熔炉 13 64% 0.875F
(太阳光,在下雨/雪时) 12 51.2% 0.8125F
Portal 传送门方块 11 40.96% 0.75F
File:Redstone (Ore).png 红石矿石,被触碰时 9 26.21% 0.625F
Redstone (Repeater, Active) 红石中续器,开启时
File:Redstone (Torch, Active).png 亮着的红石火把 7 16.78% 0.5F
(月亮光) 4 8.59% 0.3125F
Brown Mushroom 棕色蘑菇 1 4.40% 0.125F
Brewing Stand 酿造台
Dragon Egg 龙蛋
  • Since the 1.8 lighting update, some players experience a lighting glitch where all entities appear black. This bug can be fixed by typing 'Light' in the SinglePlayer Commands mod. [来源请求]
  • There is a bug in 1.8 which causes light levels to remain higher than they should be over water.
  • There is currently a bug where naturally generated Torches in Abandoned Mineshafts or NPC Villages and Glowstone in The Nether do not always emit light and remain dark until there is a lighting update.

References

Advertisement