I am trying to update my mod into 1.9 and have sorted through all the errors and now, after getting in game, one of my blocks is not rendering at all.
As you can see the block, when placed, is not there. However the item for the block is displaying as intended.
blockstates/miningRig.json:
{
"variants": {
"facing=north": { "model": "doge:miningRig" },
"facing=south": { "model": "doge:miningRig", "y": 180 },
"facing=west": { "model": "doge:miningRig", "y": 270 },
"facing=east": { "model": "doge:miningRig", "y": 90 }
}
}
models/block/miningRig.json:
{
"parent": "block/cube",
"textures": {
"particle": "doge:blocks/miningRigFrontOff",
"up": "doge:blocks/miningRigTopBackOff",
"down": "doge:blocks/miningRigBottom",
"south": "doge:blocks/miningRigTopBackOff",
"north": "doge:blocks/miningRigFrontOff",
"east": "doge:blocks/miningRigSideOff",
"west": "doge:blocks/miningRigSideOff"
}
}
models/items/miningRig.json:
{
"parent": "doge:block/miningRig"
}
models registered with:
ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(Doge.miningRig), 0, new ModelResourceLocation(Doge.miningRig.getRegistryName(), "inventory"));
The other block I have is working fine although it has no block states and simply uses block/cube_all model
full source available here: https://github.com/mmdanggg2/DogeMod/tree/1.9.4