#Adding custom models instead of replacing
15 messages · Page 1 of 1 (latest)
You can't add completely new items
You can however give an existing item a different model if it has a certain nbt tag (CustomModelData)
!faq custom_model_data
Disclaimer: This only works for items (not placed blocks!) and only if you are in Java Edition 1.14 or later!
Example to give a stick 4 new models:
You'd place this file in YourResourcePack/assets/minecraft/models/item and call it stick.json.
stick.json
{
"parent": "item/generated",
"textures": {
"layer0": "item/stick"
},
"overrides": [
{ "predicate": {"custom_model_data": 1}, "model": "item/custom_stick"},
{ "predicate": {"custom_model_data": 2}, "model": "custom/branch"},
{ "predicate": {"custom_model_data": 3}, "model": "block/stone"},
{ "predicate": {"custom_model_data": 4}, "model": "item/more_sticks"}
]
}```
Ingame you can give yourself one of the custom sticks by doing `/give <player> stick{CustomModelData:X}` (X being replaced by the number you want)
*PS: The model path is **always** relative to the models folder of your pack.*
*So `"item/custom_stick"` will load the model in `YourPack/assets/minecraft/models/item` called custom_stick.json.*
*For `"custom/branch"` it would be the model in `YourPack/assets/minecraft/models/custom` called branch.json and so on.*
code a mod
where does one start to do that?
id love to try but i have no idea where to go or what to download
im in the process of trying to set up the beginning of creating a plugin but im having other problems
learn java
took me ~2 months so i wouldn't advise it if you are adding 1 item
well thats just a start
but it sounds like its a entirly loong process
I plan to learn it eventually so i though why not learn now
theres this channel called 'modding by kaupenjoe' who has great mc modding tutorials
gl though 🙂