I have been making a map, and using Custom Model Data to transform a carrot on a stick into multiple different items ranging from a big handheld cannon to a skin of myself. I made these models using Blockbench.
I ran into the same issue multiple times and it always somehow fixed itself, but I really don't know what to do or how to fix it. I added one more .json model to the model/item folder and added it to the carrot_on_a_stick.json folder in overrides, but after I changed it, the entire carrot_on_a_stick texture became pink and black, even without custom model data, and so did every custom model data carrot_on_a_stick I spawned.
I then removed the new .json file and returned the carrot_on_a_stick .json file to what it was before I added it, but it doesn't return the texture.
It looks like this:
Everytime I add an item.json file, that particular item gets its texture removed, except for the carrot on a stick, up until now.
I have no idea what's wrong with the code, so if you have any idea of what could be causing it to glitch, I would love to hear it. I'm starting to get into better map making by trying theses things out, but so far it's been kind of a struggle as the slightest thing can make it all misfunction.
Not sure if it's causing the problem, but consider removing things like uppercase letters, "(", ")", and "-" in your file names.|
For example I would change "spaceship(not-in-map)" to "spaceship_incomplete"
Also I generally go from least to greatest when adding Custom Model Data. I see you went: "123456, 12345678, 1234567890, 083". Remember that any Custom Model Data that's a higher value than the last model added will render for every item that has a Custom Model Data higher than that amount. For example if I add a fire sword Custom Model Data 1 and get an item with Custom Model Data 2, it will still look like the fire sword.
Another thing to note is that your Custom Model Data can be up to 7 digits long as of Minecraft 1.14. That's what I'm told, not sure if it's true or not.
Hello,
I have been making a map, and using Custom Model Data to transform a carrot on a stick into multiple different items ranging from a big handheld cannon to a skin of myself. I made these models using Blockbench.
I ran into the same issue multiple times and it always somehow fixed itself, but I really don't know what to do or how to fix it. I added one more .json model to the model/item folder and added it to the carrot_on_a_stick.json folder in overrides, but after I changed it, the entire carrot_on_a_stick texture became pink and black, even without custom model data, and so did every custom model data carrot_on_a_stick I spawned.
I then removed the new .json file and returned the carrot_on_a_stick .json file to what it was before I added it, but it doesn't return the texture.
It looks like this:
{
"parent": "item/handheld",
"textures": {
"layer0": "item/carrot_on_a_stick"
},
"overrides": [
{ "predicate": {"custom_model_data": 123456}, "model": "item/gate_breaker"},
{ "predicate": {"custom_model_data": 12345678}, "model": "item/simplestick"},
{ "predicate": {"custom_model_data": 1234567890}, "model": "item/DeSmikkelaar"},
{ "predicate": {"custom_model_data": 083}, "model": "item/spaceship(not-in-map)"}
]
}
Everytime I add an item.json file, that particular item gets its texture removed, except for the carrot on a stick, up until now.
I have no idea what's wrong with the code, so if you have any idea of what could be causing it to glitch, I would love to hear it. I'm starting to get into better map making by trying theses things out, but so far it's been kind of a struggle as the slightest thing can make it all misfunction.
Not sure if it's causing the problem, but consider removing things like uppercase letters, "(", ")", and "-" in your file names.|
For example I would change "spaceship(not-in-map)" to "spaceship_incomplete"
Also I generally go from least to greatest when adding Custom Model Data. I see you went: "123456, 12345678, 1234567890, 083". Remember that any Custom Model Data that's a higher value than the last model added will render for every item that has a Custom Model Data higher than that amount. For example if I add a fire sword Custom Model Data 1 and get an item with Custom Model Data 2, it will still look like the fire sword.
Another thing to note is that your Custom Model Data can be up to 7 digits long as of Minecraft 1.14. That's what I'm told, not sure if it's true or not.
Hope this helps!
I'll try to see if it works! Thx
"DeSmikkelaar" has capital letters, remove them, too.
Meow~
#F5F8FB
KittenKatja ♥
{
"parent": "item/handheld",
"textures": {
"layer0": "item/carrot_on_a_stick"
},
"overrides": [
{ "predicate": {"custom_model_data": 083}, "model": "item/spaceship(not-in-map)"},
{ "predicate": {"custom_model_data": 123456}, "model": "item/gate_breaker"},
{ "predicate": {"custom_model_data": 12345678}, "model": "item/simplestick"},
{ "predicate": {"custom_model_data": 1234567890}, "model": "item/DeSmikkelaar"}
]
}