#how do i get the item when my pack is in the game

11 messages · Page 1 of 1 (latest)

foggy turretBOT
#

Welcome to the help forum! Once your question has been resolved, please mark the post as closed by typing !close.

ebon burrow
#

get

summer jolt
#

@ebon burrow if you are using custom model data then it is just /give @s *item* 1 {CustomModelData:#}

#

replacing # with your number you assigned

#

!faq custom_model_data

foggy turretBOT
# summer jolt !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.*
ebon burrow
#

it says that the command is wrong at item what do i replace it with if i made it from scratch

#

i didnt retexture the item

summer jolt
#

Then you need to make a mod that can bring your item to the game. Making a resource pack does not add new items to the game

ebon burrow
#

how do i do that

ebon burrow
#

!close