Is it possible to make a transparent block which doesn't let light through?

Started by SnailsAttack on

Topic category: Help with MCreator software

Last seen on 23:56, 9. Apr 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to make a transparent block which doesn't let light through?

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.

Last seen on 15:41, 10. Dec 2020
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes you can
Thu, 12/10/2020 - 15:42

yes you can

Last seen on 23:56, 9. Apr 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm clearly also asking how…
Thu, 12/10/2020 - 17:24

I'm clearly also asking how you would do it.

Last seen on 19:36, 13. Nov 2022
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a block with a…
Thu, 12/10/2020 - 20:00

Make a block with a transparent texture, then set the light opacity to 255.

Last seen on 23:56, 9. Apr 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If I create a new block and…
Fri, 12/11/2020 - 13:17

https://i.imgur.com/KJjvRNw.png

https://i.imgur.com/lgfxTsv.png

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.

 

Last seen on 04:19, 17. Apr 2024
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need to set light…
Fri, 12/11/2020 - 15:08

You need to set light opacity to 0, actually.

1.17 is actually adding a block that does exactly this, called Tinted Glass.

Last seen on 23:56, 9. Apr 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If I follow the same…
Fri, 12/11/2020 - 18:06

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.

Last seen on 03:20, 8. Jan 2021
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the opacity shouldnt not be…
Fri, 12/11/2020 - 19:06

the opacity shouldnt not be 0 lol it should be 255 and try telling it that theres no transparency and that should do

Last seen on 23:56, 9. Apr 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If I set the opacity back to…
Fri, 12/11/2020 - 19:47

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

Last seen on 04:19, 17. Apr 2024
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
255 means it would let all…
Fri, 12/11/2020 - 20:45

255 means it would let all light through.

Last seen on 23:56, 9. Apr 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Still haven't figured out…
Mon, 12/14/2020 - 03:32

Still haven't figured out how to do this yet so uh... bump.

Last seen on 22:55, 24. Feb 2021
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm subscribing to this. I'm…
Thu, 01/28/2021 - 00:19

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.

Last seen on 20:00, 16. Apr 2024
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm having this same problem…
Thu, 01/28/2021 - 05:09

I'm having this same problem with me recreating tinted glass in my mod.