Skip to main content

Modelengine Stance Data

ModelEngine stance configuration for day/night animations

The ModelEngineStanceData class is an entry that represents ModelEngine stance configuration. This allows you to define different animations for day and night time, as well as custom stances for various actions that override the default ModelEngine behavior. ## How could this be used? This could be used to make NPCs have different behaviors during day and night, such as sleeping animations at night or more active animations during the day. You can also define custom attack, death, hurt, and other action 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>——