Blockstate Component Dependent Texture
I want the campfire item's texture to show as unlit when the blockstate is unlit, I already have the "unlit_campfire" model working (I checked it with the item_model=component) but I can't figure out how to write the assets/minecraft/items/campfire.json to make it work.
My code:
{ "model": { "type": "minecraft:select", "property": "minecraft:block_state", "block_state_property": "lit", "cases": [ { "when": "true", "model": { "type": "minecraft:model", "model": "minecraft:item/diamond" } } ], "fallback": { "type": "minecraft:model", "model": "minecraft:item/campfire" } } }