FANDOM


This Article is up to date with Custom Stuff 2 CS2
2012-05-03 22.43.21
This is an example for a block that accelerates the player by increasing his speed. The Player walks on it and gets faster the longer he walks on accelerating blocks. Unfortunately, the player and probably other entities will continue to slide as if on ice when they try to stop.

Example (CS2 0.9.10 and above)

id=212;
name="accelBlock";
material="rock";
stepSound="glass";
creativeTab = "buildingBlocks";
slipperiness = 1.1;

displayName[0] = "Acceleration Block";
textureFileXP[0] = "accelBlock.png";
textureFileXN[0] = "accelBlock.png";
textureFileYP[0] = "accelBlock.png";
textureFileYN[0] = "accelBlock.png";
textureFileZP[0] = "accelBlock.png";
textureFileZN[0] = "accelBlock.png";
addToCreative[0] = true;
toolClass[0] = "pickaxe";
harvestLevel[0] = 1;
hardness[0] = 0.2;
resistance[0] = 1;
light[0] = 8;

CS1
Older Examples and Information for Custom Stuff 1.

Example (CS1)

name="Acceleration Block";
id=212;
texturefile="customblocks.png";
textureindex=11;
material="rock";
stepsound="glass";
hardness=0.2;
resistance=1;
harvestlevel=1;
type="normal";
light=8;
speed=1.1;
toolclass="pickaxe";

Also you can make a redstone powered accelerating block. When you make one like in the following example, you have a normal block until it gets activated by redstone.

Redstone Powered Example

For a redstone activated acceleration block, you need to make two .block files.

For example, this file right here is "Redstoneaccoff.block":

name="Redstone Acceleration Block";
id=213;
texturefile="customblocks.png";
textureindex=9;
material="rock";
stepsound="glass";
hardness=0.2;
resistance=1;
harvestlevel=1;
toolclass="pickaxe";
type="normal";
activated="world.setBlockId(origin, 214)"

Next you have to make the file for the activated block, named "Redstoneaccon.block":

name="Redstone Acceleration Block";
id=214;
texturefile="customblocks.png";
textureindex=10;
material="rock";
stepsound="glass";
hardness=0.2;
resistance=1;
harvestlevel=1;
toolclass="pickaxe";
type="normal";
speed=1.1;
light=9;
deactivated="world.setBlockId(origin, 213)"

Because of the fact that redstone powered blocks don't get deactivated when broken, it's important to add the following line to your file, otherwise it drops an already activated block.

iddropped=213;
Now your redstone powered block is ready to be used!

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.