Fandom

Minecraft Mod Custom Stuff Wiki

Redstone activated falling block

175pages on
this wiki
Add New Page
Comment1 Share

About

Minecraft always feels like it is missing some sort of interesting traps, so I tried to create a new block with very good traps potential.

This new block is normally solid, but when you apply a redstone current, these blocks will become unstable and fall. The stability of the unpowered block makes setting up traps much easier than when using sand and gravel, allowing for many new trap designs.

Scripts

mod.js

mod.addBlock("noSignal.js", "normal");
mod.addBlock("signal.js", "gravity");

noSignal.js

id = 2000;
name = "test1";
displayName[0] = "Block";
material = "wood";
hardness[0] = 3.0;
drop[0] = 2000;
addToCreative[0] = true;
creativeTab = "decorations";
textureFile = "/terrain.png";
textureIndexXP[0] = 20;
textureIndexXN[0] = 20;
textureIndexYP[0] = 21;
textureIndexYN[0] = 21;
textureIndexZP[0] = 20;
textureIndexZN[0] = 20;
onRedstoneSignal[0] = "if(redstoneSignal == true){world.setBlockId(position, 2001);};";

signal.js

id = 2001;
name = "fall";
displayName[0] = "FallBlock";
material = "wood";
hardness[0] = 3.0;
drop[0] = 2000;
addToCreative[0] = false;
creativeTab = "decorations";
textureFile = "/terrain.png";
textureIndexXP[0] = 20;
textureIndexXN[0] = 20;
textureIndexYP[0] = 21;
textureIndexYN[0] = 21;
textureIndexZP[0] = 20;
textureIndexZN[0] = 20;
onRedstoneSignal[0] = "if(redstoneSignal == false){world.setBlockId(position, 2000);};";

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.