FANDOM


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