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

81 lines
2.3 KiB
JSON

{
"format_version" : "1.8.0",
"animations" : {
"animation.iron_golem.attack" : {
"loop" : true,
"bones" : {
"arm0" : {
"rotation" : [ "-114 + ((1.5 * math.abs(math.mod(variable.attack_animation_tick - query.frame_alpha, 10) - 5) - 2.5) / 5) * 57.3", 0.0, 0.0 ]
},
"arm1" : {
"rotation" : [ "-114 + ((1.5 * math.abs(math.mod(variable.attack_animation_tick - query.frame_alpha, 10) - 5) - 2.5) / 5) * 57.3", 0.0, 0.0 ]
}
}
},
"animation.iron_golem.flower" : {
"loop" : true,
"bones" : {
"arm0" : {
"rotation" : [ "-45.8 + ((0.25 * math.abs(math.mod(variable.offer_flower_tick, 70) - 35) - 17.5) / 35)", 0.0, 0.0 ]
}
}
},
"animation.iron_golem.move" : {
"loop" : true,
"bones" : {
"arm0" : {
"rotation": [ "-variable.modified_tcos0 * 2.0", 0.0, 0.0 ]
},
"arm1" : {
"rotation": [ "variable.modified_tcos0 * 2.0", 0.0, 0.0 ]
}
}
},
"animation.iron_golem.move_to_target" : {
"loop" : true,
"bones" : {
"arm0" : {
"rotation" : [ "((math.abs(math.mod(query.modified_distance_moved, 13) - 6.5) - 3.25) / 2.25) * 30.0", 0.0, 0.0 ]
},
"arm1" : {
"rotation" : [ "((math.abs(math.mod(query.modified_distance_moved, 13) - 6.5) - 3.25) / 2.25) * -30.0", 0.0, 0.0 ]
}
}
},
"animation.iron_golem.walk" : {
"loop" : true,
"bones" : {
"body" : {
"rotation": [ 0.0, 0.0, "variable.modified_tcos0 / 1.5" ]
},
"head" : {
"rotation": [ 0.0, 0.0, "variable.modified_tcos0 / 1.5" ]
},
"leg0" : {
"rotation": [ "variable.modified_tcos0 * 6.0", 0.0, 0.0 ]
},
"leg1" : {
"rotation": [ "-variable.modified_tcos0 * 6.0", 0.0, 0.0 ]
}
}
},
"animation.iron_golem.walk_to_target" : {
"loop" : true,
"bones" : {
"body" : {
"rotation" : [ 0.0, 0.0, "2.0 * (math.abs(math.mod(query.modified_distance_moved + 6, 13.0) - 6.5) - 3.25)" ]
},
"head" : {
"rotation" : [ 0.0, 0.0, "2.0 * (math.abs(math.mod(query.modified_distance_moved + 6, 13.0) - 6.5) - 3.25)" ]
},
"leg0" : {
"rotation" : [ "(math.cos(query.modified_distance_moved * 38.17) * 40.0)", 0.0, 0.0 ]
},
"leg1" : {
"rotation" : [ "(math.cos(query.modified_distance_moved * 38.17 + 180) * 40.0)", 0.0, 0.0 ]
}
}
}
}
}