#help with custom model data
1 messages · Page 1 of 1 (latest)
What do you need help with then?
Are you sure you want to use custom model data and not item models?
yes
I need it for a prank
it's a frying pan :D
oh
the item model is for the mace
depending on what you want to do exactly, you don't even need any item modification and you can do it purely with a resourcepack
i thought on using custom model data and apply it to the mace
like /give @a mace[custom_model_data=1]
with a resource pack, of course
Yea totally possible, you just have to use the item model component instead. give @s mace[item_model=<your_namespace>:<item_model_name> this will refrence an item definition inside <your_namespace>/items/ in that item definition, you can refrence the item model you've made. Here is a handy generator: https://misode.github.io/assets/item/
how do I put my model on the resource pack?
Put it in models/items
models/item*
the texture needs to be in textures/item, and you are missing a namespace folder inside of assets, which textures and models will go inside. Typically a namespace folder is going to be a short, all-lowercase identifier for your pack, not necessarily the name (at least not the full name)
...
Im so dumb sry
Looks good, you're just missing your items folder and the JSON that goes in that. That folder is gonna be directly inside magic, alongside models and textures
...make the JSON that goes in there, per blackswitch's instruction
if I want these 2, i'll need to make 2 files?
No, you're just going to reference your pack's model file instead of the vanilla one(s)
like this?
You are not using custom model data
You just need a regular model type, and change the path listed in the Model box to be that path to your frying pan item model file
i put the model and the texture on the respective folders, i made the JSON that goes on the item folder
what's the next step?
So the path to your texture is incorrect in your model file
The name has nothing to do with what texture gets used
The name of the png only matter because you need to write it in the model file
the texture isn't appearing
we did it!