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/persona.animation_controllers.json
Mike Ammerlaan a3b394c507 1.19.30
Initial layout
2022-09-23 06:24:26 -07:00

25 lines
973 B
JSON

{
"format_version": "1.10.0",
"animation_controllers": {
"controller.animation.persona.blink": {
"initial_state": "default",
"states": {
"default": {
"transitions": [
{ "open": "variable.is_blinking = 0; variable.return_from_blink = query.life_time + math.random(0, 0.2); variable.last_blink_time = query.life_time; return variable.last_blink_time != 0;" }
]
},
"open": {
"transitions": [
{ "blink": "variable.is_blinking = 0; variable.return_from_blink = query.life_time + math.random(0, 0.2); return query.life_time > (variable.last_blink_time + math.random(3, 40));" }
]
},
"blink": {
"transitions": [
{ "open": "variable.is_blinking = 1; variable.last_blink_time = query.life_time; return query.all_animations_finished && (query.life_time > (variable.return_from_blink ?? 0.2));" }
]
}
}
}
}
}