Modelengine Stance Data
ModelEngine stance configuration for day/night animations
Fields
| Field | Type | Default | Description |
|---|---|---|---|
dayIdleStance | Var<String> | — | Stance to use during day time when idle (overrides default idle) |
dayWalkStance | Var<String> | — | Stance to use during day time when walking (overrides default walk) |
nightIdleStance | Var<String> | — | Stance to use during night time when idle (overrides default idle) |
nightWalkStance | Var<String> | — | Stance to use during night time when walking (overrides default walk) |
attackStance | Var<String> | — | Stance to use when attacking (overrides default attack) |
hurtStance | Var<String> | — | Stance to use when taking damage (overrides default hurt) |
deathStance | Var<String> | — | Stance to use when dying (overrides default death) |
jumpStance | Var<String> | — | Stance to use when jumping (overrides default jump) |
runStance | Var<String> | — | Stance to use when running (overrides default run) |
sitStance | Var<String> | — | Stance to use when sitting (overrides default sit) |
sleepStance | Var<String> | — | Stance to use when sleeping (overrides default sleep) |
eatStance | Var<String> | — | Stance to use when eating (overrides default eat) |
lookStance | Var<String> | — | Stance to use when looking around (overrides default look) |
celebrateStance | Var<String> | — | Stance to use when celebrating (overrides default celebrate) |
interactStance | Var<String> | — | Stance to use when interacting (overrides default interact) |
enableDayNightCycle | Boolean | true | Enable automatic day/night stance switching |
dayStartTime | Long | 0 | Time threshold for day (0-24000, default: 0 = dawn) |
nightStartTime | Long | 13000 | Time threshold for night (0-24000, default: 13000 = sunset) |
Common TypeWriter fields (priorityOverride)
| Field | Type | Default | Description |
|---|---|---|---|
priorityOverride | Optional<Int> | — | — |
How to use it
Overrides the animation names used by the model, and switches between day and night animations.
- Each
...Stancefield is an animation name. An empty field keeps the default (idle,walk,attack...). - With
enableDayNightCycleon, the day stances are used betweendayStartTimeandnightStartTime(world time in ticks, 0 to 24000) and the night stances the rest of the time. The defaults are0and13000. interactStanceis the animation played when a player right-clicks the NPC.- Stances are applied to server-side NPCs (
tickingon), and need BetterModel or ModelEngine.