Hi, I've been working on this for ages, but I cannot figure out how custom model data works in 1.16. I've looked at tons of different tutorials, but all of the examples I find don't work properly, I was hoping someone here might be able to help. When I use this, both textures show up as the purple and black squares, but I have no idea why. My claymore.png is in assets/minecraft/textures/item and my .json files are in assets/minecraft/models/item . I hope that helps.
Hi, I've been working on this for ages, but I cannot figure out how custom model data works in 1.16. I've looked at tons of different tutorials, but all of the examples I find don't work properly, I was hoping someone here might be able to help. When I use this, both textures show up as the purple and black squares, but I have no idea why. My claymore.png is in assets/minecraft/textures/item and my .json files are in assets/minecraft/models/item . I hope that helps.
I suggest running your file through https://jsonlint.com to make sure it's valid. In your case, it's not.
On a close examination, it seems you've created your file in something like Wordpad with "Fancy Quotes" turned on. These slanted symbols aren't the same as proper " " marks, and so aren't valid for a .json file. But they look prettier, which is why some programs insert them automatically. I suggest using a program like Notepad++ that's designed for editing code.
If that doesn't fix it, please post your session log (.minecraft/logs/latest.log) to Pastebin or a similar site and post a link here. Please do not post a screenshot of it as that's harder to use.
The texture for your model seems to be called from "assets/minecraft/textures/item/claymore".
Translating this into a non-Minecraft readable file path, it would be assets/minecraft/textures/item/assets/minecraft/textures/item/claymore.png.
You could fix this by either adding the folder "item" inside another folder that you add called "textures" inside another folder that you add called "minecraft" inside another folder than you add called "assets" inside the item folder.
Or you could just use "textures": {"layer0": "item/claymore"}.
[p]Here is the pastebin link: https://pastebin.com/DeP6JM95[/p]
[p]The error seems to be here, if that's helpful, my .json files have been validated now and are also at the bottom of the log.[/p]
[*]
[14:29:57] [Worker-Main-4/WARN]: Unable to load model: 'minecraft:iron_sword#inventory' referenced from: minecraft:iron_sword#inventory: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 3 path $.
[/numlist]
[p]I don't quite know what it's telling me, I looked online but I couldn't find anything that I could apply to this, probably because I'm not sure where to look. Thanks for all your help so far.[/p]
List tags are malformed.
Hi, I've been working on this for ages, but I cannot figure out how custom model data works in 1.16. I've looked at tons of different tutorials, but all of the examples I find don't work properly, I was hoping someone here might be able to help. When I use this, both textures show up as the purple and black squares, but I have no idea why. My claymore.png is in assets/minecraft/textures/item and my .json files are in assets/minecraft/models/item . I hope that helps.
Here is my .json file "iron_sword":
{
“parent”: “item/handheld”,
“textures”: {
“layer0”: “item/iron_sword”
},
“overrides”: [
{“predicate”:{“custom_model_data”:111}, “model”: ”item/claymore”}
]
}
and then my .json file "claymore":
{
“parent”: “item/handheld”,
“textures”: {
“layer0”: “assets/minecraft/textures/item/claymore”
}
}
I suggest running your file through https://jsonlint.com to make sure it's valid. In your case, it's not.
On a close examination, it seems you've created your file in something like Wordpad with "Fancy Quotes" turned on. These slanted symbols aren't the same as proper " " marks, and so aren't valid for a .json file. But they look prettier, which is why some programs insert them automatically. I suggest using a program like Notepad++ that's designed for editing code.
If that doesn't fix it, please post your session log (.minecraft/logs/latest.log) to Pastebin or a similar site and post a link here. Please do not post a screenshot of it as that's harder to use.
I hope that helps you.
The texture for your model seems to be called from "assets/minecraft/textures/item/claymore".
Translating this into a non-Minecraft readable file path, it would be assets/minecraft/textures/item/assets/minecraft/textures/item/claymore.png.
You could fix this by either adding the folder "item" inside another folder that you add called "textures" inside another folder that you add called "minecraft" inside another folder than you add called "assets" inside the item folder.
Or you could just use "textures": {"layer0": "item/claymore"}.
Meow~
#F5F8FB
KittenKatja ♥
[p]The error seems to be here, if that's helpful, my .json files have been validated now and are also at the bottom of the log.[/p]
[*]
[14:29:57] [Worker-Main-4/WARN]: Unable to load model: 'minecraft:iron_sword#inventory' referenced from: minecraft:iron_sword#inventory: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 3 path $.
[/numlist]
[p]I don't quite know what it's telling me, I looked online but I couldn't find anything that I could apply to this, probably because I'm not sure where to look. Thanks for all your help so far.[/p]
List tags are malformed.