1

Help With Custom Model Data

Flashbulb's Avatar Flashbulb1/2/22 8:03 am history
1/2/2022 2:17 pm
Flashbulb's Avatar Flashbulb
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"
}
]
}
Posted by Flashbulb's Avatar
Flashbulb
Level 48 : Master Fish
88

Create an account or sign in to comment.

4

Silabear
01/02/2022 10:23 am
Level 68 : High Grandmaster Bear
Silabear's Avatar
Make sure, in the base model file, the custom model datas are in ascending order. Please send the base item file
3
Flashbulb
01/02/2022 12:13 pm
Level 48 : Master Fish
Flashbulb's Avatar
The base item file (cod.json) is attached under the cod.json heading.
1
Silabear
01/02/2022 1:39 pm
Level 68 : High Grandmaster Bear
history
Silabear's Avatar
Ok, well they aren’t in ascending order, lowest value has to be in the top
2
Flashbulb
01/02/2022 2:17 pm
Level 48 : Master Fish
Flashbulb's Avatar
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.
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome