cubex2 / customstuff4

A Minecraft mod for adding content
https://minecraft.curseforge.com/projects/custom-stuff-4
GNU General Public License v3.0
25 stars 14 forks source link

Problem with block #67

Closed HurtsAsHell closed 6 years ago

HurtsAsHell commented 6 years ago

i created a block but the game doesn't charge the texture, what's the problem?

models { "parent": "block/orientable:directional", "textures": { "textures":"all": "btt:block/star_block" }

block.json { "blocks": [ { "type": "block:simple", "entries": [ { "id": "ns_block", "model": "btt/block:ns_block", "material": "iron", "creativeTab": "buildingBlocks", "maxStack": 64, "hardness":1, "resistance":1, "isBeaconBase" : true, "harvestTool": pickaxe, "harvestLevel": 3, "canPlaceOnCeiling": true, "canPlaceOnFloor": true, "canPlaceOnSides": true, "renderLayer": "solid", "faceBySide" : false } ]} ]}

main { "content": [ { "file": "item.json" }, { "file": "block.json" } ] }

This is the problem

Can u help me?

cubex2 commented 6 years ago

You have to create a blockstate file in assets/btt/blockstates named ns_block.json with the following content:

{
  "variants": {
    "normal": {"model": "btt:ns_block"},
    "inventory": {"model": "btt:ns_block"}
  }
}

The model file should look like this:

{
    "parent": "block/cube_all",
    "textures": {
        "all": "btt:blocks/star_block"
    }
}

You don't need the model property in your block file, it doesn't exist. The used models are defined in the blockstates file mentioned above.

HurtsAsHell commented 6 years ago

thanks