"animations": {
"first_person_hold": "animation.empty_tube.first_person_hold",
"first_person_hold_offhand": "animation.empty_tube.first_person_hold_offhand",
"third_person_hold": "animation.empty_tube.third_person_hold"
},
"scripts": {
"animate": [
{
"first_person_hold_offhand": "c.is_first_person && q.is_item_equipped('off_hand')"
},
{
"first_person_hold": "c.is_first_person && q.is_item_equipped('main_hand')"
},
{
"third_person_hold": "!c.is_first_person"
}
]
}
#How can i make an attachable run an animation if the item is equipped in offhand?
1 messages · Page 1 of 1 (latest)
How can i make an attachable run an animation if the item is equipped in offhand?
query.is_item_name_any('slot.weapon.offhand', 0, 'minecraft:diamond)
Try using this format
And your item ID
Didn't work either 🙁
{
"format_version": "1.19.0",
"animation_controllers": {
"controller.animation.ram_portalgun.empty_tube": {
"initial_state": "default",
"states": {
"default": {
"animations": [
{"first_person_hold": "c.is_first_person"},
{"third_person_hold": "!c.is_first_person"}
],
"transitions": [
{"offhand": "query.is_item_name_any('slot.weapon.offhand', 0, 'ram_portalgun:empty_tube')" }
],
"blend_via_shortest_path": true,
"blend_transition": 0.1
},
"offhand": {
"animations": [
{"first_person_hold_offhand": "c.is_first_person"},
{"third_person_hold": "!c.is_first_person"}
],
"transitions": [
{"default": "!query.is_item_name_any('slot.weapon.offhand', 0, 'ram_portalgun:empty_tube')" }
],
"blend_via_shortest_path": true,
"blend_transition": 0.1
}
}
}
}
}
I can't help anymore, I'm not good with animation_controllers :/
it's ok buddy, thanks for trying anyway 👍