#Sorry but relating to the applying textures:

7 messages · Page 1 of 1 (latest)

pseudo star
#

I have renamed the "custom" folder to items, but where tf do i put that code that was sent in the old post?

tranquil etherBOT
#
Welcome to the help forum!

Please make sure to read #1029373817119838218 as it may answer your question!

Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.

#
Benchbot

Use /help [category] to view the commands in a category

Blockbench
Bot
Minecraft
Server

#
FAQ
Java: Custom Model Data

!faq set 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 3 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"}
    ]
}``` 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)

**Keep in mind:** 
Not all item models look like this. The overrides part basically always work this way, but the part before it has to have the **exact same** information as the default model  (assuming you don't wanna change how the normal item behaves/looks).
Not every item model uses "item/generated" as parent and defines one texture (for example **shields, bows, carved pumpkins** etc.). Additionally, if the default model already uses overrides (like for shields etc.) you need to add your overrides to the existing ones.

Hence always check the relevant model file in the default pack's models/**item** folder. (Type `!faq default-pack` for more info).
Preferably copy the default model into your pack and add your custom_model_data overrides into it.

**General knowledge/tips**
A 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;
while `"custom/branch"` will load the model in `YourPack/assets/minecraft/models`**`custom`** called **branch**.json;
and so on.
pseudo star
#

(someone help lol)

tranquil etherBOT
#
FAQ
Java: Textures Folder

Jokes aside, textures need to be anywhere inside the "YourPack/assets/minecraft/textures" folder inside your pack. If you are in 1.19.3 or newer they need to be in textures/item or textures/block.

If you are using the downloaded version of Blockbench, make sure you also load the textures from the correct location into Blockbench (or save textures from BB directly there), or the relative texture path inside the model will break.

If you are using the web version you need to rightclick every texture and specify the folder path (after "textures") and name of every texture manually instead.

If you wanna use custom subfolders in 1.19.3 or newer use !faq java-1.19.3-textures

kind raven
#

help with what?