-
Notifications
You must be signed in to change notification settings - Fork 0
Examples
bangetto edited this page Jun 10, 2023
·
19 revisions
Predicates can be in two places, in the model file or in the assets/minecraft/overrides
folder, but in most cases it's recommended to use. Item predicates goes to .../item/<item_id.json>
and armor goes to .../armor/<armormaterial_layer.json>
. Now let's look at some examples!
This file is the overrides/item/bread
, and replaces the bread model with the la_baguette
model when it named La Baguette.
The overrides
is the start of file, in it is the predicates
which basically are the conditions, in this case the name
is that, if the predicate
is true than it will applies the example:la_baguette
model from the model
tag.
{
"overrides": [
{
"predicate": {
"name": "La Baguette"
},
"model": "example:la_baguette"
}
]
}
Example is from ViaBackwards-Plus as an Easter egg