1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-23 13:36:18 +00:00
bedrock-samples/resource_pack/animation_controllers/shield.animation_controllers.json
Mike Ammerlaan a3b394c507 1.19.30
Initial layout
2022-09-23 06:24:26 -07:00

58 lines
1.2 KiB
JSON

{
"format_version": "1.10.0",
"animation_controllers": {
"controller.animation.shield.wield": {
"initial_state": "default",
"states": {
"default": {
"animations": [
{
"wield_main_hand_first_person": "c.item_slot == 'main_hand'"
},
{
"wield_off_hand_first_person": "c.item_slot != 'main_hand'"
}
],
"transitions": [
{
"blocking": "query.blocking"
},
{
"third_person": "!c.is_first_person"
}
]
},
"blocking": {
"animations": [
{
"wield_main_hand_first_person": "!variable.is_blocking_main_hand && c.item_slot == 'main_hand'"
},
{
"wield_main_hand_first_person_block": "variable.is_blocking_main_hand && c.item_slot == 'main_hand'"
},
{
"wield_off_hand_first_person_block": "variable.is_blocking_off_hand && c.item_slot == 'off_hand'"
}
],
"transitions": [
{
"default": "!query.blocking"
},
{
"third_person": "!c.is_first_person"
}
]
},
"third_person": {
"animations": [ "wield_third_person" ],
"transitions": [
{
"default": "c.is_first_person"
}
]
}
}
}
}
}