Frostdev

KilnAPI reference Guide

petState (instance registry)

Generated from schema/registry/petState.json by tools/registrygen/registrygen.py: edit the schema, never this page.

One pet's live state (Kiln.Pets' roster record) and one tame attempt's (Kiln.Taming), on the server: what Kiln.Pets and Kiln.Taming publish, read through the Gate, and the held taming refunds, saved with the world. Kiln.Pets' and Kiln.Taming's own APIs keep their signatures; their requests are counted per mod.

  • Key: pet (one value per pet); side: server; version 0.1.0, experimental (KILNX032)
  • Values are live: a write applies at the Gate's next turn (one-time, owned by the mod), a hold is re-applied at its cadence until released. Kiln.Gate: PetState.<Field>; refs: petState[<key>].<field>.
Field Type Holds Cadence Saved Notes
summoned bool - - world read-only; Its owner wants it out (Pets.Summon sets it, Pets.Dismiss clears it; kept across logout).
order enum (follow, stay, attack) - - world read-only; The order its owner gave: follow, stay or attack.
downed bool - - world read-only; It is down (its body was retired at a lethal hit; a revive brings it back).
level int 1..255 - - world read-only; Its level, 1 to 255.
health int 0..1000000000 - - world read-only; Its health (0 while down; with no body, its kept share of healthMax).
healthMax int 0..1000000000 - - world read-only; Its maximum health (the last body's).
taming.progress int 0..255 - - world read-only; The attempt's steps done.
taming.steps int 0..255 - - world read-only; The steps the attempt needs.
taming.heldRefunds list of entries - - world The refunds Kiln.Taming holds for owners who were away when an attempt ended (TamingDefinition.HoldRefunds), one list per taming mod under a key of its own (petState[pet:<the mod's hold record>], written under that mod's owner): Kiln.Taming's own value, saved with the world in the Gate's gate/ bundle and handed back to it at the next load, so a held refund survives a server restart. Each element is one paid receipt; it also carries Kiln.Taming's record of the hold (owner, definition, time left), which only Kiln.Taming reads. List ops: {"set": [...]} replaces the list, {"clear": true} empties it.
Action Arguments What it does
summon request (json, optional) Brings it out next to its owner (Pets.Summon). Kiln.Pets performs it as before; the Gate counts each request per mod. Unproven: refused (a Gate call of it has no lab yet: Kiln.Pets performs it, the Gate counts it).
dismiss request (json, optional) Sends it away (Pets.Dismiss). Kiln.Pets performs it as before; the Gate counts each request per mod. Unproven: refused (a Gate call of it has no lab yet: Kiln.Pets performs it, the Gate counts it).
command request (json, optional) Gives it an order (Pets.Command): follow, stay or attack a target. Kiln.Pets performs it as before; the Gate counts each request per mod. Unproven: refused (a Gate call of it has no lab yet: Kiln.Pets performs it, the Gate counts it).
revive request (json, optional) Revives a downed pet (Pets.Revive). Kiln.Pets performs it as before; the Gate counts each request per mod. Unproven: refused (a Gate call of it has no lab yet: Kiln.Pets performs it, the Gate counts it).
release request (json, optional) Releases it for good (Pets.Release). Kiln.Pets performs it as before; the Gate counts each request per mod. Unproven: refused (a Gate call of it has no lab yet: Kiln.Pets performs it, the Gate counts it).

Enshrouded is a trademark of Keen Games GmbH. Kiln is unofficial.