Why won't my model and texture for my custom model in my custom texture pack work?
Hi all,
I'm using the custom roleplay data datapack and my own custom resource pack to try and make my own hat. However, I keep on coming up with an issue where my model and texture aren't even loading at all. I'm not well-versed in coding, so I'm not sure what's going on, I followed this tutorial: [https://youtu.be/b4fGIpVMd8o?si=t0JqAl6\_Iq21Z-J9](https://youtu.be/b4fGIpVMd8o?si=t0JqAl6_Iq21Z-J9)
I am currently trying to get this working in 1.21.10
Here is the how my folders are set up in assets/minecraft in my texture pack (both the models and textures files have files named "item" in them that lead to their respective model and texure)
https://preview.redd.it/xk75ki51b68g1.png?width=119&format=png&auto=webp&s=00f2c4c0dd48377883b9c417b055d68e187349d5
Here is the code for the carved\_pumpkin.json in my items folder:
https://preview.redd.it/94olw8r8b68g1.png?width=536&format=png&auto=webp&s=74bab58271d75fbdb4f67c8f362136dc5fc34eaa
Here is some of the code for the jester\_hat.json in model/item folder:
https://preview.redd.it/mkvuqtuib68g1.png?width=513&format=png&auto=webp&s=a7c2e83bf851312c0b6cf06fdfedef9a2e9e69a8
Here is what I get what I put in "/trigger CustomModelData set 1" in game while holding the pumpkin:
https://preview.redd.it/2j20r887c68g1.png?width=772&format=png&auto=webp&s=24c4ab78622617a63fac5d58d2d26aa6d72b35bb
If you have any questions, let me know, I'll try and answer as best I can
I'm using the custom roleplay data datapack and my own custom resource pack to try and make my own hat. However, I keep on coming up with an issue where my model and texture aren't even loading at all. I'm not well-versed in coding, so I'm not sure what's going on, I followed this tutorial: [https://youtu.be/b4fGIpVMd8o?si=t0JqAl6\_Iq21Z-J9](https://youtu.be/b4fGIpVMd8o?si=t0JqAl6_Iq21Z-J9)
I am currently trying to get this working in 1.21.10
Here is the how my folders are set up in assets/minecraft in my texture pack (both the models and textures files have files named "item" in them that lead to their respective model and texure)
https://preview.redd.it/xk75ki51b68g1.png?width=119&format=png&auto=webp&s=00f2c4c0dd48377883b9c417b055d68e187349d5
Here is the code for the carved\_pumpkin.json in my items folder:
https://preview.redd.it/94olw8r8b68g1.png?width=536&format=png&auto=webp&s=74bab58271d75fbdb4f67c8f362136dc5fc34eaa
Here is some of the code for the jester\_hat.json in model/item folder:
https://preview.redd.it/mkvuqtuib68g1.png?width=513&format=png&auto=webp&s=a7c2e83bf851312c0b6cf06fdfedef9a2e9e69a8
Here is what I get what I put in "/trigger CustomModelData set 1" in game while holding the pumpkin:
https://preview.redd.it/2j20r887c68g1.png?width=772&format=png&auto=webp&s=24c4ab78622617a63fac5d58d2d26aa6d72b35bb
If you have any questions, let me know, I'll try and answer as best I can
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
Secondly, it looks like the custom\_model model is either not being referenced correctly (wrong directory) or something is wrong with the model file (jester\_hat.json)
I need 3 pieces of information:
1: is the carved pumpkin is appearing when it is not a custom\_model
2: the full json of the jester\_hat
3: the directory of both files
1. If you mean does the carved pumpkin still appear before running the command, yes.
2. I'm not sure if I can on a comment, it's a lot of code and it won't let me post the comment with the full code here. But I could maybe dm you the code if you wanted.
3. for the directory of the carved\_pumpkin.json : Chube Hat/assets/minecraft/items/carved\_pumpkin.json
for the directory of the jester\_hat.json (the custom model): Chube Hat/assets/minecraft/models/item/jester\_hat.json
I think the issue lies in the jester_hat.json.
You can double check if this is the case by changing the reference json file to some random existing Minecraft model in the carved_pumpkin.json file to see if it is working.
As for vscode extensions: https://code.visualstudio.com/docs/getstarted/extensions
You can follow that guide.
The extensions are just accessible on the sidebar.
Datapack helper plus is the one I use