It can be fixed by using a multipart and a modified model (this can be applied to all netherrack based models for MauveCloud's purposes):
In
/assets/mysticalagriculture/blockstates/nether_inferium_ore.json:
Code: Select all
{
"multipart": [
{ "apply": { "model": "netherrack" } },
{ "apply": { "model": "mysticalagriculture:nether_inferium_ore" } }
]
}
In
/assets/mysticalagriculture/models/block/nether_inferium_ore.json:
Code: Select all
{
"parent": "block/block",
"textures": {
"overlay": "mysticalagriculture:blocks/inferium_ore"
},
"elements": [
{ "from": [ 0, 0, 0 ],
"to": [ 16, 16, 16 ],
"faces": {
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "cullface": "down" },
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "cullface": "up" },
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "cullface": "north" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "cullface": "south" },
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "cullface": "west" },
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "cullface": "east" }
}
}
]
}
As you can see, if you compare the files with the default mod files, we're basically saying in the blockstate "use these
two models to make this one block" and then in the inferium_ore model we're just removing the part that draws the netherrack layer.
This can technically be applied to all mods to achieve this effect, but overlay textures generally don't look great due to the pixellated sides and I'd argue to avoid them and just provide proper baked textures instead.