Skip to content

display_context and other #5

@zbirow

Description

@zbirow

Will you also write about other types besides minecraft:custom_model_data ?
Because you can also get other textures/models in other ways, e.g. from where it is exposed, broken/used etc.

dispaly_context code:
{
"model": {
"type": "minecraft:select",
"property": "minecraft:display_context",
"fallback": {
"type": "minecraft:model",
"model": "minecraft:item/gold_nugget"
},
"cases": [
{
"when" : "fixed",
"model" : {
"type": "minecraft:model",
"model": "custom_model_data_guide_assets:item/uno_reverse_model"
}
}
]
}
}

if we put an item in a frame, then it changes the model.

source: https://minecraft.wiki/w/Items_model_definition

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions