Page 1 of 1

How to set up JSON for damage value "different models"

Posted: 07 Apr 2017, 10:38
by 3Stag
So, to make a long story short, I've been trying and trying with no luck to get multiple models to show up with a damaged item.

Here is the JSON of the stone sword, I got it straight from the sphax bd craft.

https://pastebin.com/eWeqcaRh

where exactly would I put the...

Code: Select all

{
    "parent": "item/handheld",
    "textures": {
        "layer0": "items/stone_sword"
    },
    "overrides": [
        {
            "predicate": {
                "damage": 0.50
            },
            "model": "item/stone_sword_d1"
        },
        {
            "predicate": {
                "damage": 0.80
            },
            "model": "item/stone_sword_d2"
        }
    ]
}
I feel I'm doing something wrong. I have cubik studio and can make my own models fine, its just getting the textures to stick on them + different models for damage values. I'm using the same exact code from the official pack too, so the pastebin code is clean.

There wouldn't happen to be a 3d custom models + damaged items template would there?

As a bonus, how would I set up the directories?

I will want to change it from what it is now the (items/3d/bdc_sword_wood_stone)

I simply do:

assets/minecraft/textures/items/custom

and

assets/minecraft/models/item

? is that fine? Thanks! I'm getting a bit frustrated in all honestly, its creating a mess on my harddrive trying to figure it out.