TransWikia.com

item model overrides do not seem to work as they should

Arqade Asked by SlyceDF on May 5, 2021

So I was trying to override all the crossbow models if its durability is 10%. Here’s what I did:

{
    "parent": "item/generated",
    "textures": {
        "layer0": "item/crossbow_standby"
    },
    "display": {
        "thirdperson_righthand": {
            "rotation": [ -90, 0, -60 ],
            "translation": [ 2, 0.1, -3 ],
            "scale": [ 0.9, 0.9, 0.9 ]
        },
        "thirdperson_lefthand": {
            "rotation": [ -90, 0, 30 ],
            "translation": [ 2, 0.1, -3 ],
            "scale": [ 0.9, 0.9, 0.9 ]
        },
        "firstperson_righthand": {
            "rotation": [ -90, 0, -55 ],
            "translation": [ 1.13, 3.2, 1.13],
            "scale": [ 0.68, 0.68, 0.68 ]
        },
        "firstperson_lefthand": {
            "rotation": [ -90, 0, 35 ],
            "translation": [ 1.13, 3.2, 1.13],
            "scale": [ 0.68, 0.68, 0.68 ]
        }
    },
    "overrides": [
    {
            "predicate": {
                 "damaged": 1,
                 "damage": 0.9
            },
            "model": "item/cb"
        },
        {
            "predicate": {
                "pulling": 1,
                "damaged": 1,
                "damage": 0.9
            },
            "model": "item/cb0"
        },
        {
            "predicate": {
                "pulling": 1,
                "pull": 0.58,
                 "damaged": 1,
                "damage": 0.9
            },
            "model": "item/cb1"
        },
        {
            "predicate": {
                "pulling": 1,
                "pull": 1.0,
                "damaged": 1,
                "damage": 0.9
            },
            "model": "item/cb2"
        },
        {
            "predicate": {
                "charged": 1,
                "damaged": 1,
                "damage": 0.9
            },
            "model": "item/cba"
        },
        {
            "predicate": {
                "firework": 1,
                "damaged": 1,
                "damage": 0.9
            },
            "model": "item/cbf"
        },
        {
            "predicate": {
                "pulling": 1,
                "damaged": 0
            },
            "model": "item/crossbow_pulling_0"
        },
        {
            "predicate": {
                "pulling": 1,
                "pull": 0.58,
                "damaged": 0
            },
            "model": "item/crossbow_pulling_1"
        },
        {
            "predicate": {
                "pulling": 1,
                "pull": 1.0,
                "damaged": 0
            },
            "model": "item/crossbow_pulling_2"
        },
        {
            "predicate": {
                "charged": 1,
                "damaged": 0
            },
            "model": "item/crossbow_arrow"
        },
        {
            "predicate": {
                "firework": 1,
                "charged": 1,
                "damaged": 0
            },
            "model": "item/crossbow_firework"
        }
    ]
}

I made all the model files, checked everything and the problem is that charged and charging overrides do not work. Any clues? ?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP