1
0
mirror of https://github.com/GeyserMC/GeyserOptionalPack.git synced 2025-12-19 14:59:14 +00:00
Files
GeyserOptionalPack/src/main/resources/optionalpack/animations/humanoid.animation.json
LetsGoAway ddf7cbcf01 Java compiler for GeyserOptionalPack (#65)
* inital commit

* i think pr is ready now

* wait now its ready

* Update copyright year

* add license to each file

* Update pack version

* copy license / mojang disclaimer to pack

* Update mojang.md

* test actions

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update .gitignore

* clean up some code

* change "extracting" to copying

* Update build.yml

* Add new compilation instructions

* update developer documentation for new compiler

* make some code more readable

* some more code cleanup

* Code cleanup and tweaks

* Move to gradle action for running

* Cleanup run folder

* Update build action to use run folder

* Lets not bother with the run folder

* Download the specified version from mojang

* Remove old run folder

---------

Co-authored-by: rtm516 <ryantmilner@hotmail.co.uk>
2025-08-28 00:03:07 +01:00

16 lines
954 B
JSON

{
"format_version" : "1.8.0",
"animations" : {
"animation.humanoid.holding_spyglass" : {
"loop" : true,
"bones" : {
"rightarm" : {
"rotation" : [ "q.is_item_name_any('slot.weapon.mainhand', 0, 'minecraft:spyglass') ? math.clamp(query.target_x_rotation - 105 - (v.is_sneaking ? 15 : 0), -170, 180)", "q.is_item_name_any('slot.weapon.mainhand', 0, 'minecraft:spyglass') ? math.clamp(q.target_y_rotation - 15, -60, 90)", "q.is_item_name_any('slot.weapon.mainhand', 0, 'minecraft:spyglass') ? 5.0" ]
},
"leftarm" : {
"rotation" : [ "q.is_item_name_any('slot.weapon.offhand', 0, 'minecraft:spyglass') ? math.clamp(query.target_x_rotation - 105 - (v.is_sneaking ? 15 : 0), -170, 180)", "q.is_item_name_any('slot.weapon.offhand', 0, 'minecraft:spyglass') ? math.clamp(q.target_y_rotation + 15, -60, 90)", "q.is_item_name_any('slot.weapon.offhand', 0, 'minecraft:spyglass') ? -5.0" ]
}
}
}
}
}