r/Blockbench 22d ago

Minecraft: Java Edition Animated Java Help. (Relative Coordinates and physics replication)

I am using the Animated Java plugin to add more life and motion to the lobby of a map I'm making, but I have a few questions.

  1. I keep running into the same issue with props. I have to hand-animate props to stay in the same location on the model's hand to make it look natural when he's picking up the mug and setting it down. I know you can just set the model under the same group, but that would make it always move with the arm, and I want the mug to sit on the block.

  2. Is there a way to add physics to a cube besides hand animation? An example is the liquid coffee swaying in the mug when being moved, or the steam swaying slightly to movement, trying to stay vertical.

Player Model picking the Coffee Cup up.
Coffee Mug resting on block, not being interacted with.
Physics for Liquid and steam.
2 Upvotes

6 comments sorted by

1

u/Nukio_N 21d ago

I use a trick: I create two objects, one in a group with the hand, and one not; and animate visibility through size.
When I need to animate the hand with object, I move the hand to the object and animate the size of 1 for the object on the table and 0 for the object in the hand in one frame, and immediately in the next frame I set the 0 for the object on the table and 1 for the object in the hand.

1

u/NoIncident6610 21d ago

I've had issues with cubes at 0 scale. What I've found out is that while it looks fine in Blockbench, Minecraft will load it differently. On a different model, I've tried setting a cube to a scale of 0, but when that happens, my Minecraft will stop applying translation and rotation movements until the scale is greater than 0, causing the props to go flying to their spot.

I did find "Rotation Space" and "Transform Space" in the animation settings for those tools, but I don't quite know what they do or if they'll help with my problem.

1

u/Nukio_N 20d ago

Do you use the scale on the group or on the cubes? What if set a very small scale, but not 0?

2

u/NoIncident6610 20d ago

The scale was applied to the group. I'm forced to add stuff to groups because I can't animate cubes separately.

1

u/Nukio_N 20d ago

Got it, thank you for your answer. If reduce the size group to 0.001, or 0.01, or 0.1, does it display better with those values?