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/humanoid.animation_controllers.json
Mike Ammerlaan 67b754063e v1.20.10.1
2023-07-11 09:11:33 -07:00

296 lines
5.8 KiB
JSON

{
"format_version" : "1.10.0",
"animation_controllers" : {
"controller.animation.humanoid.attack" : {
"initial_state" : "default",
"states" : {
"attacking" : {
"animations" : [ "attack.rotations" ],
"transitions" : [
{
"default" : "variable.attack_time < 0.0"
}
]
},
"default" : {
"transitions" : [
{
"attacking" : "variable.attack_time >= 0.0"
}
]
}
}
},
"controller.animation.humanoid.baby_big_head" : {
"initial_state" : "default",
"states" : {
"baby" : {
"animations" : [ "humanoid_big_head" ],
"transitions" : [
{
"default" : "!query.is_baby"
}
]
},
"default" : {
"transitions" : [
{
"baby" : "query.is_baby"
}
]
}
}
},
"controller.animation.humanoid.base_pose" : {
"initial_state" : "default",
"states" : {
"default" : {
"animations" : [ "humanoid_base_pose" ]
}
}
},
"controller.animation.humanoid.bob" : {
"initial_state" : "default",
"states" : {
"default" : {
"animations" : [ "bob" ]
}
}
},
"controller.animation.humanoid.bow_and_arrow" : {
"initial_state" : "default",
"states" : {
"bow_and_arrow" : {
"animations" : [ "bow_and_arrow" ],
"transitions" : [
{
"default" : "!query.has_target"
}
]
},
"default" : {
"transitions" : [
{
"bow_and_arrow" : "query.has_target"
}
]
}
}
},
"controller.animation.humanoid.brandish_spear" : {
"initial_state" : "default",
"states" : {
"brandish_spear" : {
"animations" : [ "brandish_spear" ],
"transitions" : [
{
"default" : "!variable.is_brandishing_spear"
}
]
},
"default" : {
"transitions" : [
{
"brandish_spear" : "variable.is_brandishing_spear"
}
]
}
}
},
"controller.animation.humanoid.charging" : {
"initial_state" : "default",
"states" : {
"charging" : {
"animations" : [ "charging" ],
"transitions" : [
{
"default" : "!query.is_charging"
}
]
},
"default" : {
"transitions" : [
{
"charging" : "query.is_charging"
}
]
}
}
},
"controller.animation.humanoid.damage_nearby_mobs" : {
"initial_state" : "default",
"states" : {
"damage_nearby_mobs" : {
"animations" : [ "damage_nearby_mobs" ],
"transitions" : [
{
"default" : "!variable.damage_nearby_mobs"
}
]
},
"default" : {
"transitions" : [
{
"damage_nearby_mobs" : "variable.damage_nearby_mobs"
}
]
}
}
},
"controller.animation.humanoid.holding" : {
"initial_state" : "default",
"states" : {
"default" : {
"animations" : [ "holding" ]
}
}
},
"controller.animation.humanoid.look_at_target" : {
"initial_state" : "default",
"states" : {
"default" : {
"animations" : [ "look_at_target_default" ],
"transitions" : [
{
"gliding" : "query.is_gliding"
},
{
"swimming" : "query.is_swimming || query.is_crawling"
}
]
},
"gliding" : {
"animations" : [ "look_at_target_gliding" ],
"transitions" : [
{
"swimming" : "query.is_swimming || query.is_crawling"
},
{
"default" : "!query.is_gliding"
}
]
},
"swimming" : {
"animations" : [ "look_at_target_swimming" ],
"transitions" : [
{
"gliding" : "query.is_gliding"
},
{
"default" : "!query.is_swimming && !query.is_crawling"
}
]
}
}
},
"controller.animation.humanoid.move" : {
"initial_state" : "default",
"states" : {
"default" : {
"animations" : [ "move" ]
}
}
},
"controller.animation.humanoid.riding" : {
"initial_state" : "default",
"states" : {
"default" : {
"transitions" : [
{
"riding" : "query.is_riding"
}
]
},
"riding" : {
"animations" : [ "riding.arms", "riding.legs" ],
"transitions" : [
{
"default" : "!query.is_riding"
}
]
}
}
},
"controller.animation.humanoid.riding_legs_only" : {
"initial_state" : "default",
"states" : {
"default" : {
"transitions" : [
{
"riding" : "query.is_riding"
}
]
},
"riding" : {
"animations" : [ "riding.legs" ],
"transitions" : [
{
"default" : "!query.is_riding"
}
]
}
}
},
"controller.animation.humanoid.sneaking" : {
"initial_state" : "default",
"states" : {
"default" : {
"transitions" : [
{
"sneaking" : "query.is_sneaking"
}
]
},
"sneaking" : {
"animations" : [ "sneaking" ],
"transitions" : [
{
"default" : "!query.is_sneaking"
}
]
}
}
},
"controller.animation.humanoid.swimming" : {
"initial_state" : "default",
"states" : {
"default" : {
"transitions" : [
{
"swimming" : "variable.swim_amount > 0.0"
}
]
},
"swimming" : {
"animations" : [ "swimming" ],
"transitions" : [
{
"default" : "variable.swim_amount <= 0.0"
}
]
}
}
},
"controller.animation.humanoid.use_item_progress" : {
"initial_state" : "default",
"states" : {
"default" : {
"transitions" : [
{
"use_item_progress" : "( variable.use_item_interval_progress > 0.0 ) || ( variable.use_item_startup_progress > 0.0 )"
}
]
},
"use_item_progress" : {
"animations" : [ "use_item_progress" ],
"transitions" : [
{
"default" : "( variable.use_item_interval_progress <= 0.0 ) && ( variable.use_item_startup_progress <= 0.0 )"
}
]
}
}
}
}
}