Fandom

Minecraft Mod Custom Stuff Wiki

Opacity

175pages on
this wiki
Add New Page
Comments2 Share
CS1 Custom Stuff 1

Information presented below this line is outdated syntax or information used for Custom Stuff 1. It will not work with Custom Stuff 2.

DoorShadowError

The importance of opacity shown by doors.

The opacity level of a block determines how much light can pass through a block. The higher opacity is set to, the more light that is blocked. Any whole number between 0 and 255 can be used for the opacity attribute. By default, opacity is set to 255, causing all light to be blocked. If you want to make any block that does not fill an entire block, it is a good idea to set the opacity attribute to 10 or less to let light through. This is important for any block type that is partially transparent. In other words, any type other than 'normal' or 'simple'. The reason for needing to set the opacity to a low value for these block types is that when determining the light value within a block, Minecraft uses the light value on the block directly below it. If all light is blocked, a visual 'bug" will be caused.

Examples

SlabLightGlitch

An example of slabs with the default opacity (right) and the correct opacity (left).

opacity=255;
//blocks all light from passing through

opacity=10;
//allows enough light to fix opacity issues

opacity=0;
//allows all light through the block

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.