Skip to content
tterrag1098 edited this page Jul 10, 2015 · 10 revisions

With CustomThings you can add blocks with a variety of different properties.

Here are the fields for custom blocks:

Field Name Type Description Default
type String Defines the "material" and sound the block has. It must be one of: rock, dirt, wood, metal, grass, glass, wool, leaf, snow (not case sensitive). "rock"
shape String Defines the "shape" of the block. It must be one of: normal, stair, slab, falling. Normal is a standard 1x1x1 cube. Stair is a stair block and slab is a slab block (duh). Falling means the block will have gravity, i.e. gravel/sand. "normal"
hardness Float Defines how long it takes to break the block. 0.3f
resistance Float Defines how much explosion power it takes to break the block. 0.5f
harvestLevel Integer The tool level is needed to mine the block. 0 - none, 1 - wood / gold, 2 - iron, 3 - diamond. There is no limit on this number (ex. Tcon manyullyn is mining level 5). 0
toolType String What tool is effective on this block. Vanilla tool types are "pickaxe", "shovel", "axe", and "sword". Other mods can add other types. "" (none)
isOpaque Boolean If this block is opaque of not. If a block is opaque it will prevent blocks from rendering behind it, and do other things like kill grass. If this is false, the block can be "see-through" without causing rendering issues. true
lightLevel Integer The light level of the block. This is a number from 0 to 15. For example, a torch is 14, and glowstone is 15. 0
maxStackSize Integer Works the same as the item field, defines the max stack size this block can have as an item. 64
drops String Array The drops from this block. Use the standard notation for defining an ItemStack, with one extra thing. You are able to specify the stack size as a range, i.e. "minecraft:redstone;0#4-10". This line will drop anywhere from 4 to 10 redstone dust from each block mined. [] (drops itself)
minXp Integer Minimum XP that can drop from this block when broken. Not recommended to be changed if the block drops itself. 0
maxXp Integer Maximum XP that can drop from this block when broken. Not recommended to be changed if the block drops itself. 0
textureMap String Array Map of sides to texture. Each string is the exact texture name for the given side. For example if you use the String "derp" for side 4, the texture for the side 4 will be derp.png. This is in order of the Minecraft sides, so 0=down, 1=up, 2=north, 3=south, 4=west, 5=east. null (will use the standard [name].png texture)