playerAnimator

playerAnimator

28M Downloads

[API] Blockbench keyframes math operations not working

yojan69 opened this issue · 1 comments

commented

Describe the bug
(Not sure if it's name is math operations)
Blockbench (or at least geckolib anim utils, not sure) lets you do math (such as sine and cosine) on keyframes, which saves you a tooon of time but seem to not be supported :(

Here's a little snippet of the log it throws:
Failed to load animation mymod:animation/run.json
com.google.gson.JsonParseException: java.lang.NumberFormatException: For input string: "math.sin(query.anim_time*360)*0.5"

To Reproduce
Steps to reproduce the behavior:

  1. Use math operations such as .sin or .cos on blockbench keyframe
  2. Export animation as per usual
  3. (try to) Use it.

Expected behavior
Welp, animation should play, not the actual outcome though

Setup config (minecraft, modloader, libraries):

  • Minecraft version: [1.20.4 (and 1.20.1 too)]
  • Mod loader: [Fabric 0.15.6]
  • PlayerAnimator Library version [1.0.2-rc1+1.20]
  • MC library version (0.88.1+1.20.1)
commented

update: I learned more about this math keyframes thing and it's actually called molang. molang its not supported, that's literally on the readme, didn't know 😭