-
Notifications
You must be signed in to change notification settings - Fork 8
Custom Blocks
tterrag1098 edited this page Mar 15, 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" |
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) |
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 | Integer Array | Map of sides to texture. The number represents the suffix to the texture name, for example if your block's name is "derp", the texture for the number 4 will be derp4.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) |