Play Player Animation
Play a player animation from BetterModel players folder
Campos
| Campo | Tipo | Padrão | Descrição | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
modelId | Var<String> | steve | The limb model ID from BetterModel/players folder (e.g., 'steve', 'alex') | ||||||||||||||||
animation | Var<String> | — | The animation name to play | ||||||||||||||||
playMode | PlayMode | PLAY_ONCE | Animation play mode: PLAY_ONCE, HOLD_ON_LAST, or LOOPValores:PLAY_ONCEHOLD_ON_LASTLOOP | ||||||||||||||||
settings | PlayerAnimationSettings | — | Animation playback settings
|
| Campo | Tipo | Padrão | Descrição |
|---|---|---|---|
lerpIn | Int | 6 | The duration of the lerp in effect (ticks) |
lerpOut | Int | 6 | The duration of the lerp out effect (ticks) |
speed | Float | 1.0 | The speed multiplier of the animation |
Campos comuns do TypeWriter (criteria, modifiers, triggers)
| Campo | Tipo | Padrão | Descrição |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
How to use it
This plays an animation on the player's own limb model. modelId is a model from BetterModel's players folder and animation its animation name. playMode is PLAY_ONCE, HOLD_ON_LAST or LOOP. In settings, lerpIn and lerpOut are in ticks (6 by default) and speed is a multiplier. To stop a looping animation, replace it with another one.