mirror of
https://github.com/GeyserMC/GeyserOptionalPack.git
synced 2025-12-19 14:59:14 +00:00
Add an animation for offhand arm swinging (#13)
This commit is contained in:
19
animations/player.animation.json
Normal file
19
animations/player.animation.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"format_version": "1.8.0",
|
||||
"animations": {
|
||||
"animation.player.attack.rotations.offhand": {
|
||||
"animation_length": 0.4,
|
||||
"bones": {
|
||||
"body": {
|
||||
"rotation": [0, "-Math.sin(360*Math.sqrt(q.anim_time*2.5)) * 5.0", 0]
|
||||
},
|
||||
"leftArm": {
|
||||
"rotation": ["-(math.sin((1 - math.pow((1 - q.anim_time*2.5), 4)) * 180) * 1.2 + math.sin(q.anim_time*2.5 * 180)) * 30.0", "(math.sin((1 - math.pow((1 - q.anim_time*2.5), 4)) * 180) ? (-90.0 * math.sin((1 - math.pow((1 - q.anim_time*2.5), 4)) * 180)) + 30.0 : 0.0)", 0]
|
||||
},
|
||||
"rightArm": {
|
||||
"rotation": ["-(math.sin((1 - math.pow((1 - q.anim_time*2.5), 4)) * 180) * 1.2 + math.sin(q.anim_time*2.5 * 180)) * 10.0", 0, 0]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user