Rigs
Controlling a Rig Instance
Learn how to control a Rig Instance.
Selecting the Rig Instance
Before we can control a Rig Instance, we need to be able to select it. The following selectors can be used to select Rig Instances:
Moving and Rotating the Rig Instance
Similar to how we control normal entities in Minecraft, we can move and rotate Rig Instances using the tp
command.
Controlling Animation Playback
Animation playback is controlled using functions. Each animation has a set of functions that can be called to control it. Animation functions must be ran as the root entity of the Rig Instance.
Play Function
Starts playing the animation from the beginning.
Pause Function
Pauses the animation at the current frame.
Resume Function
Resumes the animation from the current frame.
Stop Function
Stops the animation and resets it to the beginning.
Apply Frame Function
Sets the animation to a specific frame with interpolation.
Arguments
Set Frame Function
Sets the animation to a specific frame instantly without interpolation.
Arguments
Tween Function
Pauses all currently playing animations, and smoothly transitions to the target frame of this animation over the duration, then resumes the animation from the target frame.
Arguments
Applying Variants
Variants can be applied to the Rig Instance using the desired Variant's apply
function.
There is no way to remove a Variant individually once it has been applied. To reset the Variant to it's default state, you can apply the default Variant.
Applying the default Variant will not remove any NBT the Variant has modified due to bone configs.
You will have to manually reset the NBT to it's default state, or re-summon the Rig Instance.