Skip to content
0tho edited this page Sep 15, 2014 · 19 revisions

Block Object Properties:

Subsections: none

  • name:String - The name of the block

  • textureName:String -The texture name from the block. path:resourcepack/customItems/blocks/textureName.png

  • material:String - check material list

  • toolClass:String - check toolClass list) -> The tool to mine this block

  • hardness:Number - How hard is to mine this block

  • lightLevel:Number - (min: 0.0, max: 1.0) -> The light level from a block. Glowstone = 1.0, Stone = 0.0

  • harvestLevel:Number - The level of the pickaxe needed to mine the block. This doesn't apply to shovel blocks or axe blocks

Format Example

{
    "blocks":[
        {
            "name": "Block1Name",
            "textureName": "Block1TextureName",
            "material": "Material",
            "toolClass":"ToolClass",
            "hardness": 0,
            "resistance": 0,
            "lightLevel": 0,
            "harvestLevel": 0
        },
        {
            "name": "Block2Name",
            "textureName": "Block2TextureName",
            "material": "Material",
            "toolClass":"ToolClass",
            "hardness": 0,
            "resistance": 0,
            "lightLevel": 0,
            "harvestLevel": 0
        },   
        ...
        {
            "name": "BlockXName",
            "textureName": "BlockXTextureName",
            "material": "Material",
            "toolClass":"ToolClass",
            "hardness": 0,
            "resistance": 0,
            "lightLevel": 0,
            "harvestLevel": 0
        }
    ]
}

Clone this wiki locally