Fandom

Minecraft Mod Custom Stuff Wiki

Black out glass

175pages on
this wiki
Add New Page
Comments0 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.

This block will be toggleable between black and transparent by using redstone.

Instructions

You will need to make two .block files. One for the transparent block and one for the black block.

blackoutglass1.block

name="Black Out Glass";
​id=220;
​texturefile="example.png";
textureindex=0;
transparent="true";
opacity=0;

This will make the first block transparent and not glitchy with the opacity. You should make a glass texture for this. Next we'll add the black out feature.

​activated="world.setBlockId(origin, 221)";

That was the black out feature, now we'll make the block that is black

blackoutglass2.block

name="Black Out Glass";
id=221;
texturefile="example.png";
textureindex=1;

Now just make it's texture black and the glass will turn black. To make it turn back to clear, add this:

​deactivated="world.setBlockId(origin, 220)";

Woohoo! Finished. That was long. If you have any questions, just post them. I'll add a picture later.

See also

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.