Skip to main content

Modelengine Stance Data

ModelEngine stance configuration for day/night animations

Fields

FieldTypeDefaultDescription
dayIdleStanceVar<String>—Stance to use during day time when idle (overrides default idle)
dayWalkStanceVar<String>—Stance to use during day time when walking (overrides default walk)
nightIdleStanceVar<String>—Stance to use during night time when idle (overrides default idle)
nightWalkStanceVar<String>—Stance to use during night time when walking (overrides default walk)
attackStanceVar<String>—Stance to use when attacking (overrides default attack)
hurtStanceVar<String>—Stance to use when taking damage (overrides default hurt)
deathStanceVar<String>—Stance to use when dying (overrides default death)
jumpStanceVar<String>—Stance to use when jumping (overrides default jump)
runStanceVar<String>—Stance to use when running (overrides default run)
sitStanceVar<String>—Stance to use when sitting (overrides default sit)
sleepStanceVar<String>—Stance to use when sleeping (overrides default sleep)
eatStanceVar<String>—Stance to use when eating (overrides default eat)
lookStanceVar<String>—Stance to use when looking around (overrides default look)
celebrateStanceVar<String>—Stance to use when celebrating (overrides default celebrate)
interactStanceVar<String>—Stance to use when interacting (overrides default interact)
enableDayNightCycleBooleantrueEnable automatic day/night stance switching
dayStartTimeLong0Time threshold for day (0-24000, default: 0 = dawn)
nightStartTimeLong13000Time threshold for night (0-24000, default: 13000 = sunset)
Common TypeWriter fields (priorityOverride)
FieldTypeDefaultDescription
priorityOverrideOptional<Int>——

How to use it​

Overrides the animation names used by the model, and switches between day and night animations.

  • Each ...Stance field is an animation name. An empty field keeps the default (idle, walk, attack...).
  • With enableDayNightCycle on, the day stances are used between dayStartTime and nightStartTime (world time in ticks, 0 to 24000) and the night stances the rest of the time. The defaults are 0 and 13000.
  • interactStance is the animation played when a player right-clicks the NPC.
  • Stances are applied to server-side NPCs (ticking on), and need BetterModel or ModelEngine.