1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-13 14:49:28 +00:00
bedrock-samples/resource_pack/animations/horse_v3.animation.json
Mike Ammerlaan a3b394c507 1.19.30
Initial layout
2022-09-23 06:24:26 -07:00

101 lines
2.8 KiB
JSON

{
"format_version" : "1.8.0",
"animations" : {
"animation.horse.v3.baby_transform" : {
"loop" : true,
"bones" : {
"body" : {
"position" : [ 0.0, "11 * ((0.0625 - query.model_scale) * 16.0)", 0.0 ]
},
"head" : {
"scale" : "1.0 + 0.5 * (1.0 - (query.model_scale * 16.0))"
},
"legbl" : {
"scale" : [ 1.0, "1.0 + ((0.0625 - query.model_scale) * 16.0)", 1.0 ]
},
"legbr" : {
"scale" : [ 1.0, "1.0 + ((0.0625 - query.model_scale) * 16.0)", 1.0 ]
},
"legfl" : {
"scale" : [ 1.0, "1.0 + ((0.0625 - query.model_scale) * 16.0)", 1.0 ]
},
"legfr" : {
"scale" : [ 1.0, "1.0 + ((0.0625 - query.model_scale) * 16.0)", 1.0 ]
}
}
},
"animation.horse.v3.eat" : {
"loop" : true,
"bones" : {
"neck" : {
"rotation" : [ "variable.eat_anim * (110.0 + math.sin((query.life_time * 20.0) * 57.3) * 2.86)", 0.0, 0.0 ]
}
}
},
"animation.horse.v3.look_at_player" : {
"loop" : true,
"bones" : {
"neck" : {
"rotation" : [ "variable.head_x_rot", "(variable.stand_anim + variable.inverse_max_stand_eat) * query.head_y_rotation(20)", 0.0 ]
}
}
},
"animation.horse.v3.rear" : {
"loop" : true,
"bones" : {
"body" : {
"rotation" : [ "-45.0 * variable.stand_anim", 0.0, 0.0 ]
},
"legbl" : {
"rotation" : [ "45.0 * variable.stand_anim", 0.0, 0.0 ]
},
"legbr" : {
"rotation" : [ "45.0 * variable.stand_anim", 0.0, 0.0 ]
},
"legfl" : {
"rotation" : [ "(-60.0 + math.cos((query.life_time * 20.0) * 34.38) * 57.3) * variable.stand_anim", 0.0, 0.0 ]
},
"legfr" : {
"rotation" : [ "(-60.0 - math.cos((query.life_time * 20.0) * 34.38) * 57.3) * variable.stand_anim", 0.0, 0.0 ]
},
"neck" : {
"rotation" : [ "(15.0 + variable.head_x_rot) * variable.stand_anim", 0.0, 0.0 ]
},
"tail" : {
"rotation" : [ "55.0 * variable.stand_anim", 0.0, 0.0 ]
}
}
},
"animation.horse.v3.tail" : {
"loop" : true,
"bones" : {
"tail" : {
"rotation" : [ 0.0, "math.cos(query.life_time * 802.0) * 57.3", 0.0 ]
}
}
},
"animation.horse.v3.walk" : {
"loop" : true,
"bones" : {
"bagl" : {
"rotation" : [ "variable.leg_x_rot_anim / 5.0", 0.0, 0.0 ]
},
"bagr" : {
"rotation" : [ "-variable.leg_x_rot_anim / 5.0", 0.0, 0.0 ]
},
"legbl" : {
"rotation" : [ "(-variable.leg_stand_factor * 28.6 * query.modified_move_speed) * (1.0 - variable.stand_anim)", 0.0, 0.0 ]
},
"legbr" : {
"rotation" : [ "(variable.leg_stand_factor * 28.6 * query.modified_move_speed) * (1.0 - variable.stand_anim)", 0.0, 0.0 ]
},
"legfl" : {
"rotation" : [ "variable.leg_x_rot_anim * (1.0 - variable.stand_anim)", 0.0, 0.0 ]
},
"legfr" : {
"rotation" : [ "-variable.leg_x_rot_anim * (1.0 - variable.stand_anim)", 0.0, 0.0 ]
}
}
}
}
}