CONTENT CONTRACT · VERSION 1
animal
A wild or domestic animal: its body, idle actions, gear and loot.
Signature
{ actions: {Name}, character: CharacterId, faction: (ContentId)?, hunt: (AnimalHunt)?, id: ContentId, kind: "animal", lifecycle: TransientLifecycle, loadout: Loadout, loot: (LootId)?, name: TextKey, near_water_mm: (PositiveDistance)?, penned: boolean, petted: (Name)?, petting: (Name)?, routine: (AnimalRoutineId)?, safe_distance_mm: (Distance)?, shy: (AnimalShy)?, sounds: AnimalSounds, squad: (AnimalSquad)?, tame: boolean }Fields
| Name | Type | Meaning |
|---|---|---|
actions | {Name} | Idle action clips of its rig in repertoire order; the first is its rest pose. Each lasts its clip once. Items: 1…16; Unique entries |
character | CharacterId | Character definition supplying body, stats and movement. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: character |
faction | ContentId | Initial faction declared by the ruleset; if omitted, the definition's own ID must be a declared faction. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
hunt | AnimalHunt | It hunts a wielder who struck it twice instead of fleeing, as a hostile figure (`docs/server-state.md` §12.7). Absent: it flees. |
id | ContentId | Package-qualified identity; unique within its declaring namespace. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
kind | "animal" | Discriminant |
lifecycle | TransientLifecycle | Corpse lifetime; population rules decide any new spawn. |
loadout | Loadout | Inventory and held weapon; dropped at death except natural weapons. |
loot | LootId | Additional items dropped at death. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: loot |
name | TextKey | Localization key for the displayed name. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
near_water_mm | PositiveDistance | Wild ones of this kind settle only this close to open water (beavers, storks); absent: anywhere. Range: 1…2147483647; Unit: mm |
penned | boolean | Whether village animals of this kind live in the pen. |
petted | Name | Clip of its rig while a player pets it; absent: its rest pose. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
petting | Name | Clip of the player rig a player pets it with (bent over a dog, crouched by a cat); absent: it cannot be petted. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
routine | AnimalRoutineId | Daily routine of its kind; without one it roams and plays its actions all day. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: animal_routine |
safe_distance_mm | Distance | Wild animals keep this distance outside camp and protected safe spots during spawning and movement. Range: 0…2147483647; Unit: mm |
shy | AnimalShy | Shy movement (a duckling): steps aside and stands instead of fleeing and roaming. Not with hunts. Absent: the usual wild behaviour. |
sounds | AnimalSounds | Its call and petting sounds. |
squad | AnimalSquad | Its part in a pack while it hunts: animals of one spawn sharing a squad name fight as one (`ruleset.squad`). Only with `hunt`; absent: the defaults of `AnimalSquad`. |
tame | boolean | Whether players may pet it and it belongs to the village side. |
Validated example
{
"folded_wings": false,
"gait_speed_mm_per_s": 1800,
"head_bob": false,
"hop": false,
"hunting_stance": false,
"kind": "animal",
"stride_mm": 2800,
"tail_rate_mrad_per_s": 2000,
"track_speed_mm_per_s": 1800
}