Bow pulling models not working  [Solved]

Get help and support for using Cubik Studio.
Post Reply

Bow pulling models not working  [Solved]

Post by Waggles » 01 Jul 2018, 16:42

So I created a model for each of the bow_pulling_0/1/2.json and one for the bow.json itself but the individual models are not used when I pull my bow in-game, from what I heard you need to put a piece of the default bow.json code into your custom bow.json but I don't know what and where, if anyone could help me out that'll be great.
x
User avatar
Waggles
Supporter
Posts: 4
Joined: 04 Aug 2017, 11:21

Re: Bow pulling models not working

Post by Cookiesnom » 02 Jul 2018, 11:10

So the issue I think your having is that when you created a model for the bow, you replaced all the overrides for the pulling animation.

Code: Select all

{
    "parent": "item/generated",
    "textures": {
        "layer0": "items/bow_standby"
    },
    "display": {
        "thirdperson_righthand": {
            "rotation": [ -80, 260, -40 ],
            "translation": [ -1, -2, 2.5 ],
            "scale": [ 0.9, 0.9, 0.9 ]
        },
        "thirdperson_lefthand": {
            "rotation": [ -80, -280, 40 ],
            "translation": [ -1, -2, 2.5 ],
            "scale": [ 0.9, 0.9, 0.9 ]
        },
        "firstperson_righthand": {
            "rotation": [ 0, -90, 25 ],
            "translation": [ 1.13, 3.2, 1.13],
            "scale": [ 0.68, 0.68, 0.68 ]
        },
        "firstperson_lefthand": {
            "rotation": [ 0, 90, -25 ],
            "translation": [ 1.13, 3.2, 1.13],
            "scale": [ 0.68, 0.68, 0.68 ]
        }
    },
    "overrides": [
        {
            "predicate": {
                "pulling": 1
            },
            "model": "item/bow_pulling_0"
        },
        {
            "predicate": {
                "pulling": 1,
                "pull": 0.65
            },
            "model": "item/bow_pulling_1"
        },
        {
            "predicate": {
                "pulling": 1,
                "pull": 0.9
            },
            "model": "item/bow_pulling_2"
        }
    ]
}
This is the original json for the bow, it has all the overrides etc. so what you need to do it change your bow model to something else, like bow_standby but you can really name it what ever you want, then all you have to do it change the first couple lines to parent to that model rather than a generated texture.

Code: Select all

{
    "parent": "item/generated",
    "textures": {
        "layer0": "items/bow_standby"
    },

Code: Select all

{
    "parent": "item/bow_standby",
    
doing that should make it have all the overrides and your bow should work perfect.
x
User avatar
Cookiesnom
Early Adopter
Posts: 45
Joined: 29 Apr 2015, 07:54
Location: New Zealand

Re: Bow pulling models not working

Post by Waggles » 02 Jul 2018, 19:45

Cookiesnom wrote: 02 Jul 2018, 11:10 So the issue I think your having is that when you created a model for the bow, you replaced all the overrides for the pulling animation.

Code: Select all

{
    "parent": "item/generated",
    "textures": {
        "layer0": "items/bow_standby"
    },
    "display": {
        "thirdperson_righthand": {
            "rotation": [ -80, 260, -40 ],
            "translation": [ -1, -2, 2.5 ],
            "scale": [ 0.9, 0.9, 0.9 ]
        },
        "thirdperson_lefthand": {
            "rotation": [ -80, -280, 40 ],
            "translation": [ -1, -2, 2.5 ],
            "scale": [ 0.9, 0.9, 0.9 ]
        },
        "firstperson_righthand": {
            "rotation": [ 0, -90, 25 ],
            "translation": [ 1.13, 3.2, 1.13],
            "scale": [ 0.68, 0.68, 0.68 ]
        },
        "firstperson_lefthand": {
            "rotation": [ 0, 90, -25 ],
            "translation": [ 1.13, 3.2, 1.13],
            "scale": [ 0.68, 0.68, 0.68 ]
        }
    },
    "overrides": [
        {
            "predicate": {
                "pulling": 1
            },
            "model": "item/bow_pulling_0"
        },
        {
            "predicate": {
                "pulling": 1,
                "pull": 0.65
            },
            "model": "item/bow_pulling_1"
        },
        {
            "predicate": {
                "pulling": 1,
                "pull": 0.9
            },
            "model": "item/bow_pulling_2"
        }
    ]
}
This is the original json for the bow, it has all the overrides etc. so what you need to do it change your bow model to something else, like bow_standby but you can really name it what ever you want, then all you have to do it change the first couple lines to parent to that model rather than a generated texture.

Code: Select all

{
    "parent": "item/generated",
    "textures": {
        "layer0": "items/bow_standby"
    },

Code: Select all

{
    "parent": "item/bow_standby",
    
doing that should make it have all the overrides and your bow should work perfect.
ye it worked, thanks a lot!
x
User avatar
Waggles
Supporter
Posts: 4
Joined: 04 Aug 2017, 11:21

Post Reply

Return to “Help Centre”