It would be easy to add a block like this; light opacity and visual opacity are entirely separate things in the code, and by only changing a single line I was able to make normal glass behave as described:
Normal:
Opaque:
With light on both sides (the faces of the blocks next to the glass are now lit up):
A two block thick layer lit on both sides:
Two layers with a space between them, containing a torch, and dark on both sides. Some changes to how the game renders lighting around opaque glass blocks would probably be desired to smoothen out the transitions (similar to how the game handles slabs and stairs, which block light, so if one is placed next to a solid block the block needs to check the light levels in the blocks adjacent to it):
This is all that I did (light opacity defaults to 0 for non-opaque cube blocks and 255 otherwise):
Block.glass.setLightOpacity(0); // Normal glass
Block.glass.setLightOpacity(15); // Opaque glass
This idea has a lot of potential for building and using light sources. I think this block should be called "soul glass" and be made from smelting soul sand.
Night glass is a new type of block, made by crafting eight blocks of normal glass with one phantom membrane, with eight produced per craft.
Night glass appears very similar to normal glass, but with one major difference; it blocks light.
Stained night glass can also be made, by crafting one phantom membrane with eight identical blocks of stained glass.
How would this be useful?
My suggestions: Enhancements - Throwable Fire Charges - On Phantoms and Elytra. Also check out The Minecraftian Language. This signature is not here to waste your space.
It could be useful for when you want to make a space that is dark but also has windows.
I could support night glass being added.
I don't even play Minecraft much anymore yet here I am on the Minecraft forums for some reason...
How would it work? How would it be crafted? Would it be found in any generated structures? Does it require Silk Touch to break?
My suggestions: Enhancements - Throwable Fire Charges - On Phantoms and Elytra. Also check out The Minecraftian Language. This signature is not here to waste your space.
All good questions, except the bolded question, which was answered in the suggestion.
I don't even play Minecraft much anymore yet here I am on the Minecraft forums for some reason...
It would be easy to add a block like this; light opacity and visual opacity are entirely separate things in the code, and by only changing a single line I was able to make normal glass behave as described:
Opaque:
With light on both sides (the faces of the blocks next to the glass are now lit up):
A two block thick layer lit on both sides:
Two layers with a space between them, containing a torch, and dark on both sides. Some changes to how the game renders lighting around opaque glass blocks would probably be desired to smoothen out the transitions (similar to how the game handles slabs and stairs, which block light, so if one is placed next to a solid block the block needs to check the light levels in the blocks adjacent to it):
This is all that I did (light opacity defaults to 0 for non-opaque cube blocks and 255 otherwise):
TheMasterCaver's First World - possibly the most caved-out world in Minecraft history - includes world download.
TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?
This idea has a lot of potential for building and using light sources. I think this block should be called "soul glass" and be made from smelting soul sand.
Check out my suggestions! Here is one of them: