mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2024-11-23 13:36:18 +00:00
a3b394c507
Initial layout
65 lines
1.7 KiB
JSON
65 lines
1.7 KiB
JSON
{
|
|
"format_version" : "1.10.0",
|
|
"animation_controllers": {
|
|
"controller.animation.piglin.attack" : {
|
|
"initial_state" : "default",
|
|
"states" : {
|
|
"ranged_charge" : {
|
|
"animations" : [ "crossbow_charge" ],
|
|
"transitions" : [
|
|
{
|
|
"default" : "variable.attack_state == 0 || query.is_admiring"
|
|
},
|
|
{
|
|
"ranged_hold" : "variable.attack_state == 1"
|
|
}
|
|
]
|
|
},
|
|
"default" : {
|
|
"transitions" : [
|
|
{
|
|
"ranged_hold" : "query.variant == 0 && variable.attack_state == 1 && !query.is_admiring"
|
|
},
|
|
{
|
|
"ranged_charge" : "query.variant == 0 && variable.attack_state == 2 && !query.is_admiring"
|
|
},
|
|
{
|
|
"hand_attack": "variable.has_target && query.variant == 1 && !query.is_item_equipped && variable.attack_time >= 0.0 && !query.is_admiring"
|
|
},
|
|
{
|
|
"melee_attack": "variable.has_target && query.variant == 1 && query.is_item_equipped && variable.attack_time >= 0.0 && !query.is_admiring"
|
|
}
|
|
]
|
|
},
|
|
"ranged_hold" : {
|
|
"animations" : [ "crossbow_hold" ],
|
|
"transitions" : [
|
|
{
|
|
"default" : "variable.attack_state == 0 || query.is_admiring"
|
|
},
|
|
{
|
|
"ranged_charge" : "variable.attack_state == 2"
|
|
}
|
|
]
|
|
},
|
|
"melee_attack" : {
|
|
"animations": ["melee_attack"],
|
|
"transitions" : [
|
|
{
|
|
"default" : "!query.is_item_equipped || !variable.has_target || variable.attack_time < 0.0 || query.is_admiring"
|
|
}
|
|
]
|
|
},
|
|
"hand_attack" : {
|
|
"animations": ["hand_attack"],
|
|
"transitions" : [
|
|
{
|
|
"default" : "query.is_item_equipped || !variable.has_target || variable.attack_time < 0.0 || query.is_admiring"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|