minecraft:item_visual for you with a switch.Get GodCraftOverview
minecraft:item_visual is a block component: it goes in the components object of a custom block. Sets how the block's item looks in the hand and inventory, by giving it its own model and textures. Use it when the item should look different from the placed block.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
geometry | Geometry | none | The model used for the item. |
material_instances | Material Instances Component | none | The textures and materials used for the item. |
Example
Inside the components object of BP/blocks/<name>.json (values are the defaults or placeholders):
BP/blocks/<name>.json
{
"minecraft:item_visual": {
"geometry": {},
"material_instances": {}
}
}