FANDOM


This Article is up to date with Custom Stuff 2 CS2

The post model is represented like a fence without the rails. It is the same effect and look as what you would get if you built a fence straight up. Posts are fairly simple to make and can be produced in the same way as any other block.

Example (CS2 0.10.0 and above)

mod.js

config.addBlockIdProperty("nanoPostID", 2804);
mod.addBlock("nanoPost.js", "post");

nanoPost.js

name = "nanoPost";
id = config.getBlockId("nanoPostID");
creativeTab = "buildingBlocks";
material = "glass";
stepSound = "stone";
canFaceTop = true;
canFaceBottom = true;

thickness[0] = 0.2;  // 1.0 = full block width
addToCreative[0] = true;
displayName[0] = "Nano Post";
hardness[0] = 1.0;
light[0] = 15;
toolClass[0] = "pickaxe";
harvestLevel[0] = 0;

textureFileBack[0] = "nano.png";
textureFileFront[0] = "nano.png";
textureFileSides[0] = "nano.png";

Post Block Attributes

Required Attributes

Optional Attributes

thickness
This attribute determines how thick the post is. A value of 1.0 is a full block's width. The default thickness is 0.5 or about half a block thick.

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.