Kiln tamings (tamings/*.json): Kiln.Taming definitions in JSON
Kiln's taming steps as data (Kiln.Taming's Taming.DefineJson; docs/kiln/modding/taming.md): one taming, or a list of them. Each names the creatures it tames by their creatures registry ids, its steps in order (feed, weaken, use a tool, the game's own step; the last one tames), how close the player must be, its timeouts, what happens to paid steps when it ends without a tame, and the Kiln.Pets definition a tame makes. Items are the items registry's game ids (game:food_t2_dog_bait) or item ids (0xb59dfc2c); a mod's own items, creatures and pets are named in a blocks/*.json tamings section instead (kiln-blocks.schema.json). Comments and trailing commas are allowed; a field this schema does not list is refused by Kiln with its path. Beyond the schema, Kiln checks that the id starts with the defining mod's id, that maxAttemptSeconds is at least inactivitySeconds, and that every item and creature exists on the running build.
- Files:
**/tamings/*.json - JSON: comments allowed, trailing commas allowed
- Schema:
schema/kiln-taming.schema.json; rules: lint.md
Top level
feed
Feed: count of a plain-stack item, taken exactly from the slot the player selected.
| Key | Type | Required | Notes |
|---|---|---|---|
count |
integer | How many (default 1). min 1 max 999 | |
item |
item | yes | |
kind |
"feed" |
yes |
item
An items registry id of the game (game:food_t2_dog_bait, game:^(game:[a-z0-9_.~-]+\|0[xX][0-9a-fA-F]{1,8})$.
Type: string
native
The game's own step(s): applies once the game counted this many of its taming steps (a petting while the animal eats its favourite bait) since the previous step. Only for a tameable wild animal.
| Key | Type | Required | Notes |
|---|---|---|---|
kind |
"native" |
yes | |
steps |
integer | How many of the game's steps (default 1). min 1 max 255 |
step
One step: feed (item, count), weaken (maxHealthFraction), tool (item, wear, allowBreak) or native (steps). Each kind takes only its own fields.
| Key | Type | Required | Notes |
|---|---|---|---|
kind |
"feed" | "weaken" | "tool" | "native" |
yes |
taming
A taming: the same TamingDefinition C# makes (Taming.Define).
| Key | Type | Required | Notes |
|---|---|---|---|
creatures |
array of string | yes | Creatures registry ids (game:enemy_wildbeast_wolf_earlygame, a creature block's my-mod:wolf); a trailing * matches a prefix. min items 1 |
holdRefundsSeconds |
number | With refundOnFail or escrow: seconds Kiln holds a refund for an owner who left, and gives it when the same character is in game again in this world (default 0: no hold, the mod opts in). min 0 max 86400 | |
id |
string | yes | ^[a-z0-9][a-z0-9_.-]*:[a-z0-9][a-z0-9_.-]*$. |
inactivitySeconds |
number | Seconds of simulation without an applied step before the attempt expires (default 30). min 1 max 300 | |
maxAttemptSeconds |
number | The longest an attempt lasts, at least inactivitySeconds (default 300). min 1 max 3600 | |
pet |
string | null | The Kiln.Pets definition a tame makes (my-mod:wolf-pet). None: no pet; the tame is the attempt's own result. max length 128 Pattern ^[a-z0-9][a-z0-9_.-]*:[a-z0-9][a-z0-9_.-]*$. |
|
rangeMeters |
number | How close the player must be (default 3). min 1 max 8 | |
refund |
"nonRefundable" | "refundOnFail" | "escrow" |
What happens to paid steps when the attempt ends without a tame: nonRefundable (the default), refundOnFail (given back when it fails for a reason that is not the player's), escrow (given back on any end but a tame). | |
removeTarget |
boolean | With a pet: the tamed wild body is removed once the pet record is made (default true). | |
requireThresholdUntilCommit |
boolean | The latest weaken threshold holds until the tame (default true). | |
steps |
array of step | yes | The steps, in order; the last one tames. min items 1 max items 64 |
summonPet |
boolean | With a pet: the new pet is summoned at once (default true). |
tool
Use a tool: durability off the exact gear item the player selected, through the game's own durability debit.
| Key | Type | Required | Notes |
|---|---|---|---|
allowBreak |
boolean | The wear may break the tool (default false). | |
item |
item | yes | |
kind |
"tool" |
yes | |
wear |
integer | Durability one use takes (default 1; 0: a use that costs nothing). min 0 max 32767 |
weaken
Weaken: the target's health is at most this share of its maximum. No cost.
| Key | Type | Required | Notes |
|---|---|---|---|
kind |
"weaken" |
yes | |
maxHealthFraction |
number | yes | In (0, 1]. max 1 |