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

41 lines
2.5 KiB
JSON

{
"format_version" : "1.8.0",
"animations" : {
"animation.drowned.attack.rotations.v1.0" : {
"loop" : true,
"bones" : {
"body" : {
"rotation" : [ 0.0, "math.sin(math.sqrt(variable.attack_time) * 360.0) * 11.46", 0.0 ]
},
"leftarm" : {
"rotation" : [ "-(math.sin((1.0 - (1.0 - variable.attack_time) * (1.0 - variable.attack_time)) * 180.0) + math.sin(variable.attack_time * 180.0)) * 5.73", "math.sin(math.sqrt(variable.attack_time) * 360.0) * 11.46", 0.0 ]
},
"rightarm" : {
"rotation" : [ "-(math.sin((1.0 - (1.0 - variable.attack_time) * (1.0 - variable.attack_time)) * 180.0) * 34.38 + math.sin(variable.attack_time * 180.0) * 28.65) * (variable.is_brandishing_spear ? -2.5 : 1.0 )", "variable.is_brandishing_spear ? 0.0 : math.sin(math.sqrt(variable.attack_time) * 360.0) * 22.92", 0.0 ]
}
}
},
"animation.drowned.swimming.v1.0" : {
"loop" : true,
"bones" : {
"leftarm" : {
"rotation" : [ "math.lerp(this, -180.0, variable.swim_amount) - (variable.swim_amount * ((math.sin(variable.attack_time * 180.0) * 57.3) * 1.2 - (math.sin((1.0 - (1.0 - variable.attack_time) * (1.0 - variable.attack_time)) * 180.0) * 57.3) * 0.4)) - (variable.swim_amount * (math.sin(query.life_time * 76.776372) * 2.865)) - this", "math.lerp(this, -14.325, variable.swim_amount) - this", "math.lerp(this, 14.325, variable.swim_amount) - (variable.swim_amount * (math.cos(query.life_time * 103.13244) * 2.865 + 2.865)) - this" ]
},
"leftleg" : {
"rotation" : [ "math.lerp(this, math.cos(query.life_time * 390.0 + 180.0) * 0.3, variable.swim_amount) - this", 0.0, 0.0 ]
},
"rightarm" : {
"rotation" : [ "math.lerp(this, -180.0, variable.swim_amount) - (variable.swim_amount * ((math.sin(variable.attack_time * 180.0) * 57.3) * 1.2 - (math.sin((1.0 - (1.0 - variable.attack_time) * (1.0 - variable.attack_time)) * 180.0) * 57.3) * 0.4)) + (variable.swim_amount * (math.sin(query.life_time * 76.776372) * 2.865)) - this", "math.lerp(this, 14.325, variable.swim_amount) - this", "math.lerp(this, -14.325, variable.swim_amount) + (variable.swim_amount * (math.cos(query.life_time * 103.13244) * 2.865 + 2.865)) - this" ]
},
"rightleg" : {
"rotation" : [ "math.lerp(this, math.cos(query.life_time * 390.0) * 0.3, variable.swim_amount)", 0.0, 0.0 ]
},
"root" : {
"position" : [ 0.0, "variable.swim_amount * -10.0 - this", "variable.swim_amount * 9.0 - this" ],
"rotation" : [ "variable.swim_amount * (90.0 + query.target_x_rotation)", 0.0, 0.0 ]
}
}
}
}
}