I've been having an issue where my blocks won't have a placed block render unless they have a resources/assets/<modid>/blockstates/*.json
Their renders work fine in the inventory, and when held, but not when placed.
I have 3 blocks that are relevant.
I have an ore block that uses damage and enum type property to determine the correct model/texture. It rendered fine with it's existing blockstate json.
{
"variants": {
"type=copper": {"model": "madengineering:blockOre_copper"},
"type=nickel": {"model": "madengineering:blockOre_nickel"},
"type=chrome": {"model": "madengineering:blockOre_chrome"},
"type=tungsten": {"model": "madengineering:blockOre_tungsten"}
}
}
I have a simple custom model block that I had to add a basic blockstate json for it to work.
{
"variants": {
"normal": {"model": "madengineering:blockframe"}
}
}
And I have a much more complicated model with facing and an on/off state that's using the forge blockstate, and I have no idea how to fix it.
{
"forge_marker": 1,
"defaults": {
"model": "madengineering:blocks/blocksyngasgenerator"
},
"variants": {
"hasfuel": {
"true": {
"textures": {
"fuel": "blocks/planks_oak"
}
},
"false": {
}
},
"facing": {
"north": {
"y":0
},
"east": {
"y":90
},
"south": {
"y":180
},
"west":{
"y":270
}
}
}
}
The frame is the two you see, I'm having some trouble with them registering as full blocks even though they're set as transparent.
The errored block is the same as the one I'm holding, and is floating above it, so it has a working model.