#Adding custom models instead of replacing

15 messages · Page 1 of 1 (latest)

craggy sierra
#

So i have made a custom item how do i instead of replace a item i instead add the item to minecraft? my version is 1.19.4 if that at all important and i have never done this before

winged fossil
#

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

worthy roverBOT
# winged fossil !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.*
craggy sierra
#

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

tired bane
#

took me ~2 months so i wouldn't advise it if you are adding 1 item

craggy sierra
#

but it sounds like its a entirly loong process

craggy sierra
tired bane
#

gl though 🙂