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

Incorrect inventory textures for blocks #3

Closed Thiana closed 7 years ago

Thiana commented 7 years ago

For some reason all custom blocks are given a stick texture in inventory instead of the block texture. The blocks do have the correct textures when placed in world.

An example of the blockstate json is:

{
    "forge_marker": 1,
    "defaults": {
        "textures": {
            "all": "thianacs4:blocks/railcraft_bleachedbone_1"
        },  
        "transform": "forge:default-block",
        "model": "cube_all"
    },
    "variants": {
        "normal": [{}],
        "inventory": [{}]
    }
}

This is using CS4 1.10.2-0.0.2. Thanks :)

cubex2 commented 7 years ago

Have you set the item model attribute of the blocks?

Thiana commented 7 years ago

I was under the impression from reading about the forge extensions and viewing some examples that the extra model file wasn't needed when you used the blockstate with transform and inventory variant set. I've changed it to use the extra model file and set the itemModel.