Started by
SnailsAttack
on
Topic category: Help with MCreator software
I'd like to know if it's possible to have a transparent block which doesn't allow let light to pass through it.
Like, you can see through the block but the light level on one side is unaffected by the light level on the other side. Extra Utilities 2 has a block called "dark glass" with this exact functionality. There's a few other ones as well, but I can't figure out how to replicate this effect in MCreator without issues arising.
yes you can
I'm clearly also asking how you would do it.
Make a block with a transparent texture, then set the light opacity to 255.
If I create a new block and change only the texture (to my glass texture), the transparency type (to "cutout"), enable the "Check this if block has transparent parts" checkbox, and leave the light opacity at its default value of 255, I get this.
Compared to normal glass (top image), this glass (bottom image) only seems to block skylight, while blocklight is free to pass through. I would like it to prevent all light from passing through.
You need to set light opacity to 0, actually.
1.17 is actually adding a block that does exactly this, called Tinted Glass.
If I follow the same procedure for creating the block that I described in my last post except I set the light opacity to 0, the block just behaves the same as normal glass.
the opacity shouldnt not be 0 lol it should be 255 and try telling it that theres no transparency and that should do
If I set the opacity back to 255 and uncheck the "check this if your block has transparent parts" checkbox it makes the glass block light properly, but the sides of it that are adjacent to a solid block become transparent and make it so you can see through the world.
I'd appreciate if you guys didnt send me off testing random stuff. ;p
255 means it would let all light through.
Still haven't figured out how to do this yet so uh... bump.
I'm subscribing to this. I'm trying to recreate tinted glass for 1.16.4 but setting light opacity to 255 — which should BLOCK completely the light, it clearly says it in the note — it blocks only one level of light. And i can't find lightOpacity in the code what so ever.
I'm having this same problem with me recreating tinted glass in my mod.