#offhand item isn't rendering

1 messages · Page 1 of 1 (latest)

brave trail
#

why this isn't rendering in offhand?

gusty jungle
brave trail
#

q.item_slot_to_bone_name(c.item_slot)

gusty jungle
brave trail
#

if i go on binding this is shown: q.item_slot_to_bone_name(c.item_slot)

#

@gusty jungle

gusty jungle
gusty jungle
#

does it follow the left hand bone when in offhand

brave trail
brave trail
gusty jungle
#

when i use attachables, i usually use an animation to make it render differently in 3rd person and 1st person

gusty jungle
brave trail
gusty jungle
brave trail
#

idk

#

{
"format_version": "1.10.0",
"minecraft:attachable": {
"description": {
"identifier": "vapore:talismanominatore",
"render_controllers": ["controller.render.item_default"],
"materials": {
"default": "entity_emissive",
"enchanted": "entity_alphatest_glint"
},
"textures": {
"default": "textures/entity/attachable/talismanominatore",
"enchanted": "textures/misc/enchanted_item_glint"
},
"geometry": {
"default": "geometry.talismanominatore"
},
"animations": {
"first_person_hold": "animation.talismanominatore.first_person_hold",
"third_person_hold": "animation.talismanominatore.third_person_hold"
},
"scripts": {
"animate": [
{
"first_person_hold": "c.is_first_person"
},
{
"third_person_hold": "!c.is_first_person"
}
]
}
}
}
}

gusty jungle
#

now im confused, you did everything right tho

brave trail
kind galleon
gusty jungle
#

yh

brave trail
#

is there an animation file for offhand that i can change?

#

or it's minecraft mirroring it

kind galleon
#

So, it doesn’t render at all when it is in your offhand, and just your offhand nothing in main hand

gusty jungle
brave trail
gusty jungle
#

theres one for first person in mainhand

#

but none for first person in offhand

kind galleon
#

You might need to make an animation for when it is in offhand.

gusty jungle
#

exactly

brave trail
#

"scripts": {
"animate": [
{
"first_person_hold": "c.is_first_person"
},
{
"third_person_hold": "!c.is_first_person"
}

brave trail
gusty jungle
#
{
    "format_version": "1.10.0",
    "minecraft:attachable": {
        "description": {
            "identifier": "vapore:talismanominatore",
            "render_controllers": ["controller.render.item_default"],
            "materials": {
                "default": "entity_emissive",
                "enchanted": "entity_alphatest_glint"
            },
            "textures": {
                "default": "textures/entity/attachable/talismanominatore",
                "enchanted": "textures/misc/enchanted_item_glint"
            },
            "geometry": {
                "default": "geometry.talismanominatore"
            },
            "animations": {
                "first_person_hold": "animation.talismanominatore.first_person_hold",
                "third_person_hold": "animation.talismanominatore.third_person_hold"
            },
            "scripts": {
                "animate": [
                    {
                        "first_person_hold": "c.is_first_person"
                    },
                    {
                        "third_person_hold": "!c.is_first_person"
                    },
{
"first_person_offhand":"c.is_first_person && q.[i've forgotten the query to check for item slot]"
}
                ]
            }
        }
    }
} ```
kind galleon
#

Test if the item is in the off hand slot I think with c.item_slot != ‘main_hand’, this is from the shield animation

brave trail
#

i'm trying it

brave trail
kind galleon
#

Make one for 3rd as well

brave trail
#
    "format_version": "1.10.0",
    "minecraft:attachable": {
        "description": {
            "identifier": "vapore:talismanominatore",
            "render_controllers": [
                "controller.render.item_default"
            ],
            "materials": {
                "default": "entity_emissive",
                "enchanted": "entity_alphatest_glint"
            },
            "textures": {
                "default": "textures/entity/attachable/talismanominatore",
                "enchanted": "textures/misc/enchanted_item_glint"
            },
            "geometry": {
                "default": "geometry.talismanominatore"
            },
            "animations": {
                "first_person_hold": "animation.talismanominatore.first_person_hold",
                "third_person_hold": "animation.talismanominatore.third_person_hold",
                "first_person_offhand": "animation.talismanominatore.first_person_offhand",
                "third_person_offhand": "animation.talismanominatore.third_person_offhand"
            },
            "scripts": {
                "animate": [
                    {
                        "first_person_hold": "c.is_first_person"
                    },
                    {
                        "third_person_hold": "!c.is_first_person"
                    },
                    {
                        "first_person_offhand": "c.is_first_person && q.item_slot != ‘main_hand’"
                    },
                    {
                        "third_person_offhand": "c.is_third_person && q.item_slot != ‘main_hand’"
                    }
                ]
            }
        }
    }
}```
brave trail
#

still isn't working

#

i have found the bug

#

q.item_slot doesn't exist

gusty jungle
brave trail
#

yes

#

i found this

#

"third_person_offhand": "!c.is_first_person && query.is_item_equipped == 1"

kind galleon
#

c.item_slot not q.item_slot

gusty jungle
#

this can work as well

brave trail
kind galleon
#

Full name like tdb:item

gusty jungle
brave trail
#

nice

brave trail
brave trail
# brave trail

the animation in blockbench is right but it render like this

#
    "format_version": "1.10.0",
    "minecraft:attachable": {
        "description": {
            "identifier": "vapore:talismanominatore",
            "render_controllers": [
                "controller.render.item_default"
            ],
            "materials": {
                "default": "entity_emissive",
                "enchanted": "entity_alphatest_glint"
            },
            "textures": {
                "default": "textures/entity/attachable/talismanominatore",
                "enchanted": "textures/misc/enchanted_item_glint"
            },
            "geometry": {
                "default": "geometry.talismanominatore"
            },
            "animations": {
                "first_person_hold": "animation.talismanominatore.first_person_hold",
                "third_person_hold": "animation.talismanominatore.third_person_hold",
                "first_person_offhand": "animation.talismanominatore.first_person_offhand",
                "third_person_offhand": "animation.talismanominatore.third_person_offhand"
            },
            "scripts": {
                "animate": [
                    {
                        "first_person_hold": "c.is_first_person"
                    },
                    {
                        "third_person_hold": "!c.is_first_person"
                    },
                    {
                        "first_person_offhand": "c.is_first_person &&   q.is_item_name_any('slot.weapon.offhand', 0, 'vapore:talismanominatore')"
                    },
                    {
                        "third_person_offhand": "!c.is_first_person &&  q.is_item_name_any('slot.weapon.offhand', 0, 'vapore:talismanominatore')"
                    }
                ]
            }
        }
    }
}```
gusty jungle
#

since the problem was only with fp

brave trail
#

the item is supposed to be held in offhand

kind galleon
#

The 3rd person isn't necessary unless if one of the other animations messes it up, which rarely occurs. Try to see if the offhand in shows without the third_person_offhand. If it doesn't show in 3rd and only 1st, then an animation would be needed to fix it. If it shows, then it doesn't need that animation

brave trail
# kind galleon The 3rd person isn't necessary unless if one of the other animations messes it u...

{
"format_version": "1.10.0",
"minecraft:attachable": {
"description": {
"identifier": "vapore:talismanominatore",
"render_controllers": [
"controller.render.item_default"
],
"materials": {
"default": "entity_emissive",
"enchanted": "entity_alphatest_glint"
},
"textures": {
"default": "textures/entity/attachable/talismanominatore",
"enchanted": "textures/misc/enchanted_item_glint"
},
"geometry": {
"default": "geometry.talismanominatore"
},
"animations": {
"first_person_hold": "animation.talismanominatore.first_person_hold",
"third_person_hold": "animation.talismanominatore.third_person_hold",
"first_person_offhand": "animation.talismanominatore.first_person_offhand",
"third_person_offhand": "animation.talismanominatore.third_person_offhand"
},
"scripts": {
"animate": [
{
"first_person_hold": "c.is_first_person && !q.is_item_name_any('slot.weapon.offhand', 1, 'vapore:talismanominatore')"
},
{
"third_person_hold": "!c.is_first_person"
},
{
"first_person_offhand": "c.is_first_person && q.is_item_name_any('slot.weapon.offhand', 1, 'vapore:talismanominatore')"
}
]
}
}
}
}

#

i have tried this code and the 3rd is working

#

but 1st isn't showing up

kind galleon
#

Can you change the slot number from 1 to 0. Usually slot number 0 is the first one

brave trail
#

done

#

bit nothing changed

brave trail
kind galleon
brave trail
#

but if i'm holding another item the animation is displayed correctly

#

thanks for helping, i will continue tomorrow

brave trail
#

@kind galleon i have noticed that if i hold the item in mainhand and offhand it render correctly but if i hold any other thing it don't work, do you know what it might be?

kind galleon
brave trail
#

@gusty jungle do u have any idea?

kind galleon
#

I think he means that if he holds anything else with it, it breaks the render