#Help with implenting custom Model in 1.21.10

27 messages · Page 1 of 1 (latest)

soft rootBOT
#
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.

silent pagoda
#

my folder structure is like this:
assets/minecraft which contains items models and textures folder inside items i got the diamond_pickaxe.json which contains the code to override the model when renaming, then models/item/pig_pickaxe which contains my pig_pickaxe.json model i made in Blockbench and textures/item/pig_pickaxe which contains my pig_pickaxe.png texture file

#

i got it to the Point where ingame now i just get a Error block with the purple black cube

proven hatch
silent pagoda
proven hatch
#

Also the video you watched unnecessarily checks if the item has a custom name instead just checking if the custom name is the new name, so you could simplify it.

#
{
    "model": {
        "type": "minecraft:select",
        "property": "minecraft:component",
        "component": "minecraft:custom_name",
        "cases": [
            {
                "when": "Pig Pickaxe",
                "model": {
                    "type": "minecraft:model",
                    "model": "minecraft:item/pig_pickaxe"
                }
            }
        ],
        "fallback": {
            "type": "minecraft:model",
            "model": "minecraft:item/diamond_pickaxe"
        }
    }
}```
#

(Adjust values as you need)

silent pagoda
#

still doesnt work, someone fixed my file and for him it works ingame, but for me i still get that cube for whatever reason

proven hatch
#

If yes, it can happen if your model has an invalid parent or references an invalid texture path (capital letters, spaces etc.)

#

would need to see the first ~10 lines of your .json model file to say for sure

silent pagoda
#

ive been asking him and waiting for an answer but he said hes not using anything special, ive also tried using older versions and with Polytone isntalled etc, but ye i can send u the pack to check it out if you want

proven hatch
#

Are you trying this on a server or in singleplayer?
-# If it's on a server it could be due to a cached older version.

silent pagoda
#

i tried both

#

neither works

proven hatch
#

oh, actually, it seems your model has a couple invalid rotations

#

values need to be between -45.0 and 45.0 (inclusive)

#

idk how that even exported like that 🤔

silent pagoda
#

Oh

#

i mean, isnt that line how i hold it on my hand ? so if i have different rotation its not holding properly

proven hatch
#

no, that's the rotation of the cubes in Edit mode

#

the display settings have no such limitation

#

it's these 3 elements in the "Right" group

#

rotating them a bit back and forth should fix their values

silent pagoda
#

ok i fixed some stuff, lets see if that works