mojira.dev
MC-92

Slab and stairs lighting incorrect

The bug

If you take slabs and tile them as a ceiling, the shadows are incorrect. If you tile the whole ceiling it becomes almost black, regardless of any room lighting.

How to reproduce

Create a 3x3 (or 4x4 is better) tile of slabs on a ceiling.

Related issues

MC-278 Bug slabs with all materials in minecraft MC-304 Slabs not lighting properly when placed in upward position. MC-626 Lighting bug with stairs MC-758 Stairs have lighting glitches. MC-3061 Light bug creates shades in the cobblestone stairs MC-3620 Upside down stairs lighting bug MC-4530 Lighting Engine MC-4593 Ilumination Bug with Sandstone ladders MC-5430 slab lighting problem MC-5471 Light bug MC-5574 black side of slab MC-5592 Lighting issue MC-6215 Lighting bug on the side of Stone stairs. MC-6383 up coner stairs lighting bug MC-7018 Slab Shadows MC-7177 Quartz Stairs lighting glitch MC-7297 Stairs texture MC-8768 When a slab is above a chest and a solid block/slab is infront it creates a lighting bug. MC-9876 13w07a - Light Bug which occures with half slabs and blocks MC-10037 strange lighting in half slabs MC-10542 Light goes trough stairs MC-10668 Lighting issue with half slabs MC-10972 Fence Gate and Stairs MC-11925 hopper light MC-12131 Lighting Engine MC-12179 Minecraft Slab Lighting Issue MC-12256 Wooden slabs lighting issue MC-12292 Fancy Graphics-Leaves aren't transparent behind slabs MC-12614 Lighting 1.5 slabs and stairs MC-15723 lighting Area MC-16845 Tryed to make safe place for the crops but two slabs that had 1 block hight from another blocked light. MC-24582 shadows under slabs that have solid blocks on top of them MC-25911 Upside Down Stairs Lightning Glitch MC-28669 when placing stairs around glow stone it causes a lighting glitch MC-29223 Upside-Down Quartz stairs have lighting glitches MC-30469 Slab Light Bug MC-31424 Bugged lighting with slabs MC-32551 Upside down half slab lighting issue MC-35827 Block in front of upside-down stair lighting bug MC-36041 Half slabs and stairs MC-38252 old Light House Bug and old Slab MC-38880 Quartz Slabs Causing Lighting Issues MC-42917 When you put a stair in front of a redstone torch, this is black and when aren't ligth this shines MC-44029 Slab Block MC-45385 Upside-Down Stair & Half Slab Lighting Error MC-48127 Lighting Still Horrid! MC-48364 Lighting issue with quartz stairs(corner pieces) and quartz slabs MC-49915 Problem with Stairs and lights MC-52428 Wooden/Stone Slabs Incorrectly affect lighting MC-53085 Whenever there is an upside down staircase that is inverted (That is, 7/8 of the full block is there except for one of the bottom corners), the area that is not filled in (the other 1/8) is always darkened. MC-54006 Looks Ugly in houses MC-54340 Shadows On Corner Steps MC-54441 Lighting bug on upside down corner stairs MC-55350 Shadows MC-62356 Stair light bug MC-81620 Stair Darked Out MC-86848 Lighting MC-94497 Lighting bug when using hafl-slabs as ceiling MC-97026 Lighting Bug MC-105271 Stairs let in light MC-106326 Slabs glow in the dark (no block- and skylight in surrounding) MC-107124 Stairs MC-107362 Light showing through half slabs. MC-109401 Lighting bug involving slabs, sides appear darker. MC-113239 Lighting blocked by stair MC-115339 Light rendered but not actually there MC-117554 The slabs are not transparent as they should MC-123295 Lighting broken in closed off areas MC-125156 Lighting Bug MC-126787 Lighting bug MC-137345 slabs and light MC-137880 Slab's shadows are too dark MC-138585 Light Glitch MC-414 Light glitch on corner stairs and slabs

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media]
Ezekiel

Just an FYI: placing a light source above these blocks will remove the glitch. However I am aware that it is still a bug.

Dustin Dowell

This also happened to me in 1.3.2.

Fisico

this also happen to corner stairs

fuj1n

This Is A Long Standing Bug, If You Want To Remove That Horrible Effect, Place A Torch Above The Slab/Have No Blocks Above The Unlit Slabs

Philip Cass

@Arthur

Just an FYI:

Your wierd habit of capitalising the first letter of every word is really difficult to read. I'm not trying to be annoying, it's genuinely hard to read your comments

fuj1n

Yeah, I know, sorry, this 'habit' annoys me too.

MisterSanderson

This error make this effect in my underground temple (that has no other blocks above his roof). When it's day, the roof is lightened, when it's night, the roof turns black.

Jonathan Haas

Related is MC-2399 where I have analysed the source of the problem. In short: Transparent blocks take their brightness from the block above or the 4 blocks beside them, but not from the block below them. They should take their brightness either from the block itself or at least from all 6 adjacent blocks.

Will Buik

Still having this issue in 1.4.5. Upper-half-slab adjacent only to full blocks is dark. Not sure if any of the screenshots capture this, I can post one if you want. (No client mods)
[[edit]] Blocks were only lit from below.

Stefan Brinkmann

Lightning bug on half Steps and Stairs already there on v.1.4.5

Piotr Kuczynski

They were talking about fixing it in 1.4.* but they pushed trying to fix it in the next update. I also heard that if they fix it the way they know how to it would slow minecraft considerably.

Gustavo Bernardo de Oliveira

I can confirm this. I have many buildings with upside-down half slabs as the ceiling/floor and they still look buggy. However, they look normal if the block exactly above them is not occupated.

Here are some screenshots.
<EDIT: Uploaded the screenshots properly>

In the first screenshot, there are only two sofas (like the ones in the 1st floor) right above the ceiling.
In the second screenshot, there are blocks right above every slab.

MisterSanderson

Gustavo, it is recommended that you attach screenshots directly here.

Drackir

I can confirm this in 1.4.4, 1.4.5 and 1.4.7.

alex_dlc

can someone post this screenshot please? It wont work on my browser for some reason

[media]
alex_dlc

Thanx Tails

Tails

In case you tried to use "Attach Screenshots" pro tip: use "Attach Files" instead.

Gabriel Salla

It's being fixed \o/

Marcel Prasetyo

should be resolved now (in 13w05a)

pizza2004

Can we get a confirmation of whether this happens in 13w10a and an update to the affected versions? If it doesn't affect the current version it should be marked as resolved.

Drackir

I was unable to reproduce the slab shadow issue in the latest snapshot (13w10a). Not sure about the stairs.

Pepe

This still happens in pre1.5 for me , at least for slabs

Drackir

I see the issue in the 1.5 pre-release, too.

dirk (switched to Minetest)

Should be complete dark. Still totally b0rked lighting on stairs and slaps in 13w11a …

Drackir

I noticed that this only happens when "Smooth Lighting" is set to "Off". I went back to 13w10a and checked with Smooth Lighting Off and it was, in fact, still in that version. If people can't see it, they may have a different lighting setting.

Also, it's still in 1.5.

Stephen Smith

On 1.5.1. So annoying because my floor is made of half slabs so anywhere I have crafting tables, my basement gets black spots.

Marie Zimmermann

The same issue applies for my MC 1.5.1
My Smooth Lighting is set to "maximum" and this problem still occurs

Nathan Gorzelanczyk

This same issue as to why half slabs display black.
Its because of blocks are treated the same.
Additional blocks are treated different.

Stairs and Slabs are treated different than blocks.

Bottom line: Minecraft is code is poorly done. But remember this was one of the first things ever coded by the guy!
If only all of us could do such a great job on our first try! It just needs some refinement and TLC...

Hendrik van Dijk

It also happens when stairs are placed upside down and a slab in the middle.
This is a sewer that I made and it depends on what is placed above ground what the lighting will be like in the sewer. I tried different things but nothing solves it.

Hendrik van Dijk

But puting Smooth lighting on maximum reduces the blackness of the 'shadow'

Pedro M. Zamboni

yes, because non-solid opaque blocks like slabs and stairs get the lighting from the block up it or on the sides, not on the botton. to make the thing wor, we will need a new stair/halfblock lighting system this happens because the engine was crated before the "you can put slabs and stairs upsidedown" update, so, it will not get light from the under part of it, because it is blocked. Now, to fix that, mojang can make dynamic block lighting for slabs and stairs, supporting every direction they can turn. Sory for my bad english, i'm from brazil.

kingsley fleming

Here it is:

1. Before
2. The Glitch
3. Stair block replaced with regular block

Byron

This bug should be updated to show it still affects version 1.6.2.

_zombiehunter

Confirmed for 13w36a !

MisterSanderson

Still happening (with less severity than 1.4 and 1.5) in 1.6.4.

marcono1234

Is also with ladders and blocks around and one above it

Jack Wilkinson

Windows 7 64-Bit
Java 7
Creative
MC 1.6.4

Flexo013

Confirmed for 1.7.2

Robert Polhemus

Still exists in 1.7.4. If you have a hollow area underground and place slabs against the ceiling, any slabs exposed to direct sunlight will show black from below when the room is lit with a torch and no other light can get in. Same with stairs.

Ben W

Appears to have been partially fixed as of 1.7.4. A ceiling of slabs, as in the second and third pictures, now behaves as expected in most cases from what I have observed.

G Cadogan

I am still seeing this on 1.7.4 with Smooth Lighting off. I believe I've resolved the problem with a mod I'm working on. In the ChunkCache class in the getSkyBlockTypeBrightness method, I've replaced the line "return var5;" with these lines:

int varGLC = this.getSpecialBlockBrightness(par1EnumSkyBlock, par2, par3 - 1, par4);

                    if (varGLC > var5)
                    {
                    	var5 = varGLC;
                    }
                    
                    return var5 <= 0 ? var5 : var5 - 1;

Could any modders out there check my changes for any side effects I haven't noticed?

G Cadogan

I am NOT seeing this issue in 14w06b.

Fisico
[media]

Look at Block and Sky Light... Huge bug since ever.. 🙂

aaaa aaaa

Still happens with 1.7.4...I tried mixing slabs and stairs in a ceiling, and in certain sides of the stairs black squares appears if you put a slab nearby. Very annoying.

Itouch2

Confirmed for 1.7.5 and 14w11b

Zach C.

I am also experiencing this issue, but only in 14w11b, not 1.7.5. Half slabs are darker than full slabs and other blocks. Sometimes only one side of the half slab appears darker. This only occurs when smooth lighting is activated. Additionally, the space above the slab is NOT occupied. The bug occurs independently.

qmagnet

14w11b has this bug but it may be a new form. I don't remember this lighting quite this strangely in earlier 1.8 snapshots.

galaxy_2alex

...indeed, the bug has gotten much worse in the newest snapshots.

Joe Callahan

It happens in the 1.7.9 version.

KerrySanderson

I am seeing shading errors in 14w20b that are not present in 1.7.9. I have uploaded two images that show the error and also how the same exact scene appears in 1.7.9. Environment for both images is clear weather, clouds off, time = 6000, and the viewing direction is south-southwest.

The snapshot version:
http://www.richardspens.com/images/shared/2014-05-21_17.35.jpg

The 1.7.9 version:
http://www.richardspens.com/images/shared/2014-05-21_17.34.jpg

Stephen Smith

@Richard You should probably just attach the images here. Both of your links 404.

KerrySanderson

Color me a little dumb, but I have just now figured out how to attach them here. The first one is from 1.7.9, the second is from 14W20b.

kumasasa

Is this still a concern in Snapshot 14w25b or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

qmagnet

It appears to me that this seems to be fixed in 14w26b. Any others confirm this?

user-f2760

can confirm fix

Drackir

@qmagnet, @FVbico: Can you confirm that it no longer happens when "Smooth Lighting" is set to "Off"?

user-f2760

makes no diffrence for me, still fixed on my pc

qmagnet

Seems to be fixed with smooth lighting off as well.

Byron

This issue still exists for me in 14w26b with slabs and stairs. Smooth lighting is set to maximum.

KerrySanderson

This issue was fixed for me in 14w25b. It remains fixed, with smooth lighting set to MAXIMUM or to OFF.

Byron

This is what I'm experiencing in 14w26c. I'm using Windows 7 64 bit with Java 7 64 bit. Smooth lighting is set to Maximum.

The light from a pumpkin partially bleeds around stairs to create unusual bright spots and shadows.

Removing the pumpkin, you can see that light bleeds through a ceiling of half slabs to leave the top layer bright and the rest of the room in darkness.

Jonathan Markevich

14w26c and smooth lighting seems to fix this completely. If I turn off smooth lighting it's still not perfect but definitely acceptable.

kumasasa

@@unknown What you observe is not the issue of this ticket.
See for example this

[media]

,

[media]

or

[media]

The effect with your staircase is working by design since slabs and stairs are transparent.

Dlawso the Really Lucky Rabbit

Good to see one of the oldest issues finally fixed. Awesome job, Mojang!

galaxy_2alex

Reopened, occurs again in a different way in latest version
See also MC-105271 and MC-107124

user-f2760

To be more precies: the stairs/slabs let light through them (javaw_2016-09-27_18-52-33.png and javaw_2016-09-27_18-52-12.png).

salma

i have the same issue after updating TU46 I'm on xbox 360

JUE13

Confirmed for 1.12-pre2

lord.quadrato

Affecting 18w16a

Danny Kessler

Hello,

I have this bug too. (18w22c)
(I attached a picture above in the big picture list (2018-05-31_22.57.33 <- the Name from the picture))

lord.quadrato

Confirmed for 1.13-pre1

lord.quadrato

Confirmed for 1.13-pre3

lord.quadrato

Confirmed for 1.13-pre5

Pau Olivares

Confirmed for 1.13-pre4 & 6.

Pau Olivares

Confirmed in 1.13-pre7.

Kraif

Confirmed for 1.13-pre8.

Kraif

Confirmed for 1.13-pre9.

Kraif

Confirmed for 1.13-pre10.

Kraif

Confirmed for 1.13.

Kraif

Confirmed for 18w30a.

Kraif

Confirmed for 18w31a.

Kraif

Confirmed for 18w32a.

Kraif

Confirmed for 18w33a.

Kraif

Confirmed for 1.13.1.

Kraif

Confirmed for 1.13.2-pre1.

Kraif

Confirmed for 1.13.2-pre2.

Tschipp

This looks much better in 18w46a, but I maybe wouldn't mark it as "fixed":
1.13.2:

[media]

18w46a:

[media]

*Edit: Also, the corner block in the middle of the image is an outward facing stair.

FaRo1

That is smooth ligthing and a different issue: MC-12558

Brokkonaut

Not completely fixed (18w46a):

[media]
Brokkonaut

How it still can be reproduced in 18w46a:

  • Place blocks in the following shape

  • Surround it with (full) blocks so that the lower slab is in full darkness

  • The top of that lower slab should now be dark but it is still bright

[media]

So I think this bug should be reopened

violine1101

Please create a new ticket about any potential issues with the new lighting. This ticket is ancient and won't be reopened.

TheBearPotato

Appears in 1.14.4

violine1101

Then please create a new ticket.

Jonathan Markevich

Fry

Confirmed

light, lighting, slab, stair, stairs

Minecraft 1.4.2, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w02a, Snapshot 13w02b, ..., Minecraft 18w43a, Minecraft 18w43b, Minecraft 18w43c, Minecraft 18w44a, Minecraft 18w45a

Minecraft 14w26c, Minecraft 18w46a

Retrieved