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