Skip to content

SkinAnimation

Animate the paperdoll

Parameters

NameTypeDescription
masterSkinCanvasThe SkinCanvas that contains the paperdoll.
lengthintThe entire length of the animation. (in ms)
loopboolshould this animation stop, loop, or stay on the last frame when finished (true, false, "hold_on_last_frame")
start_delayintHow long to wait in ms before playing this animation.
loop_delayintHow long to wait in ms before looping this animation.

Methods

command

Add a command

Parameters

NameTypeDescription
timeintThe time in the animation to trigger this
tagstrThe items's tag or id to modify
postCallableThe command to trigger

rotate

Add a rotation

Parameters

NameTypeDescription
timeintThe time in the animation to trigger this
tagstrThe items's tag or id to modify
postintSet the new rotation
relintAdd the rotation to the current rotation

scale

Add a scale

Parameters

NameTypeDescription
timeintThe time in the animation to trigger this
tagstrThe items's tag or id to modify
postfloatSet the new scale
relfloatAdd the scale to the current scale

translate

Add a position

Parameters

NameTypeDescription
timeintThe time in the animation to trigger this
tagstrThe items's tag or id to modify
postfloatSet the new scale
relfloatAdd the scale to the current scale

play

Start the animation

stop

Stop the animation

Not associated with or approved by Mojang Studios or Microsoft