I am using some custom model data for a data pack, and it is not working properly. Basically, when I try to get an item with custom model data "125" or "124", it gives me the custom model data for "123". I am referencing the textures correctly, as the perch model and texture works, but the others do not and always give the perch texture. I do not know why this is happening and if anyone could help, I would appreciate it.
The cod.json file
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "minecraft:item/cod"
},
"display": {
"head": {
"rotation": [
0,
90,
-60
],
"translation": [
-7,
-4,
-7
],
"scale": [
0.8,
0.8,
0.8
]
}
},
"overrides": [
{
"predicate": {
"custom_model_data": 125
},
"model": "minecraft:item/fish/bluegill"
},
{
"predicate": {
"custom_model_data": 124
},
"model": "minecraft:item/fish/smallmouth_bass"
},
{
"predicate": {
"custom_model_data": 123
},
"model": "minecraft:item/fish/perch"
}
]
}
"parent": "minecraft:item/generated",
"textures": {
"layer0": "minecraft:item/cod"
},
"display": {
"head": {
"rotation": [
0,
90,
-60
],
"translation": [
-7,
-4,
-7
],
"scale": [
0.8,
0.8,
0.8
]
}
},
"overrides": [
{
"predicate": {
"custom_model_data": 125
},
"model": "minecraft:item/fish/bluegill"
},
{
"predicate": {
"custom_model_data": 124
},
"model": "minecraft:item/fish/smallmouth_bass"
},
{
"predicate": {
"custom_model_data": 123
},
"model": "minecraft:item/fish/perch"
}
]
}
Create an account or sign in to comment.
4
Make sure, in the base model file, the custom model datas are in ascending order. Please send the base item file
The base item file (cod.json) is attached under the cod.json heading.
Ok, well they aren’t in ascending order, lowest value has to be in the top
Ok, I fixed that, and it makes sense, as other custom model data items in the pack are in ascending order, thank you for the help.