mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2024-11-23 13:36:18 +00:00
a3b394c507
Initial layout
58 lines
1.2 KiB
JSON
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"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|