Kiln building blocks (blocks/*.json), format 1
A mod's blocks: spells, weapons, wands, armor, items, stations, statuses, effects, perks, abilities, talents, triggers and their parts, the same shape as the C# records (Kiln.Blocks). Read by managed/services/Kiln.Blocks/BlockJson.cs (System.Text.Json: comments and trailing commas allowed, unknown keys refused). A field that takes a block takes it inline, or by name: a block of this mod, or "other-mod:name".
- Files:
**/blocks/*.json - JSON: comments allowed, trailing commas allowed
- Schema:
schema/kiln-blocks.schema.json; rules: lint.md
Top level
| Key | Type | Required | Notes |
|---|---|---|---|
$schema |
string | ||
abilities |
object | What a character casts that is no staff's: on a key, a chat command, an item, or from code. | |
affixPools |
object | Affix pools: which items roll which affixes, and how many. Code rolls one onto an item (AffixPoolHandle.Roll); its entries name affixes of this mod's code or blocks files, in either order. | |
affixes |
object | Affix kinds: rolled modifiers on one item ("+5 Strength" on this sword), a stat with tiers and the range each rolls in. A pool rolls them onto an item, and Kiln applies them while it is worn or in hand. Server; asks nothing of players' games. Rolled items keep the id "mod:name", the same as Affixes.Define gives. | |
ais |
object | AI tunings. | |
animations |
object | Animations: clips of a glTF, cooked when the mod builds. | |
armor |
object | Things worn: made exactly as their recipe tooltip shows. | |
armorSets |
object | Parts: a family of looks, one per slot: looks or worn looks. | |
armorSlots |
object | Parts: your own slot, starting from a premade. | |
armorStats |
object | Parts: a piece of armor's numbers. | |
attacks |
object | Attacks, for behaviours to name. | |
baseRules |
object | Base rules (since 0.2.0-dev.31): room for more Flame Altars and larger build zones, in Kiln's own names (a mod with "boot": true; docs/kiln/services/build.md, Base rules and base limits). Kiln combines every mod's rules (the largest count per Flame level, the largest size per altar level and axis) and applies them after every resource patch, raising only: two mods with base rules never conflict. Not blocks: kiln.content applies them. | |
beards |
object | Beards: worn looks on the jaw. A look with files of the mod's own needs "clients": "mod". | |
beds |
object | Beds: the game's sleep and rest, comfort of the bed category; with Kiln a spawn point and a night slept through. | |
behaviours |
object | Behaviours: attacks, rules, a brain. | |
blueprints |
object | New shapes for the game's building materials, half a metre a cell: a table each game merges at its start, so needs "clients": "mod". | |
bodies |
object | Bodies, for creatures and NPCs to name. | |
buildingMaterialPools |
object | ||
buildingMaterials |
object | New building materials: an id and a GUID in the game's tables, and a block item. 49 fit across all mods. Needs "clients": "mod". | |
buildingTools |
object | ||
comforts |
object | Parts: what the game's comfort counts. | |
containers |
object | Things that hold items, as the game's chests do: a lid, sounds and upgrades from the game's small chest. | |
cosmetics |
object | Pieces for the vanity slots: shown over what is worn there, with no stats. A look with files of the mod's own needs "clients": "mod". | |
creatures |
object | Creatures: a body, how it moves, sees and fights. | |
dialogues |
object | Conversations in the game's own NPC menu, for an NPC block's talk or a quest NPC's dialogue. Needs "clients": "mod". | |
doors |
object | Doors: they open and close for whoever uses them, and paths and water follow them. | |
effects |
object | What happens: the same effect plugs in everywhere. | |
format |
1 |
yes | |
hair |
object | Hair styles: worn looks on the head. A look with files of the mod's own needs "clients": "mod". | |
hudLines |
object | Lines of text on the game's screen with values in them, a condition and a refresh rate. Needs "clients": "mod". | |
interactions |
object | Parts: what happens when a player uses a placed thing. Use one by name in onInteract. | |
items |
object | Anything else that goes in a bag: a material, a potion, food, an arrow, a tool. Its kind follows from what you fill in, or say it. | |
keyBindings |
object | Keys that run an action (open a window, toggle a config value, run a command, cast an ability), rebindable in the Kiln menu. Needs "clients": "mod". | |
knowledge |
object | The game's tracking of the mod's items (found) and recipes (crafted once), as it tracks its own: built into the game's knowledge table at start, from the next start or the first when Kiln.Sdk baked it. Needs "clients": "mod" (since 0.2.0-dev.30.5). | |
looks |
object | Parts: what an item looks like. Use one by name wherever a field takes a look. | |
lootTables |
object | Tables of what drops, rolled by Kiln: a creature's drops name one, and so does code (LootTableHandle.Roll/Drop/Give). Server only. | |
materialTweaks |
object | Changes to game materials: what it takes to dig them. Read at boot by kiln.worldtables; a strength change asks nothing of players' games. | |
materials |
kiln-vfx.schema.json materialSection |
Surfaces for models, on the game's own shaders. No base to name, no game data. Built by the game client at start. | |
menus |
object | Parts: the crafting menu a station opens. | |
npcMotions |
object | Reusable Kiln-owned motion-role bindings for an authored Fisher/Villager roster body. | |
npcs |
object | Friendly NPCs: talk, wares, a place in the roster. | |
onHits |
object | Parts: what an item does to what its wearer hits. | |
perks |
object | Enhancements for an item's perks: the game's rule applies, so one runs once a player has unlocked its slot. | |
pets |
object | Pets: creatures an owner keeps, summons, orders and revives (docs/kiln/modding/pets.md). Kiln keeps the records, makes and retires the bodies and protects them; every choice is the block's. A pet on a game creature asks nothing of players' games. | |
placements |
object | Parts: where and how a player can place something. | |
processing |
object | Parts: how a station works on its own. | |
props |
object | Things placed that stand there: furniture, banners, lamps. | |
quests |
object | Quest chains in the game's own journal: steps, objectives, conditions, rewards. Needs "clients": "mod". | |
rarityRolls |
object | Rarity at creation: which item types roll which rarity (Common to Legendary, by weight) when the game crafts them, loot makes them or a Kiln give asks for none. The game then makes the item at that rarity. Server; asks nothing of players' games. A later definition wins an item type an earlier one also names. | |
rarityUpgrades |
object | Rarity upgrades: which items an upgrade takes, up to which rarity, and what each step costs (items, a chance, what a failed roll costs). Items.UpgradeRarity(player, item, "name") runs one; an upgraded item gets its next enhancement slot in place, which the player unlocks at the workbench as usual. Server; asks nothing of players' games. | |
recipes |
object | Recipes of their own: one more way to make any item at a station, such as a game item at the game's workbench. | |
resourcePatches |
object | Changes to the game's own resources, made before the game reads them: fields, a template's components, a list's length (a mod with "boot": true; docs/kiln/modding/resource-patches.md). Not blocks: kiln.content applies them. | |
routines |
object | Day plans for villagers: windows of the game day, each with one of the game's own villager tasks, and a fallback. Bound to a villager by code (Routines.Assign) or by an NPC block's routine. Server; asks nothing of players' games. | |
rules |
object | Rules, for behaviours to name. | |
screenEffects |
object | Full-screen effects: colour grading, a tint, a vignette, fades and flashes. Drawn by each Kiln client; players' games need nothing for them. | |
seats |
object | Seats: the game's sitting, comfort of the chair category. | |
sounds |
object | Sounds of the mod's own: clips and how they play. kiln cook writes their steps into assets/cook.json (tools/soundcook blocks) and cooks them. An effect, a station or code plays one by its name. Players need the mod (clients "mod"). | |
spells |
object | Staff spells. A charge is one item in the stack. | |
statImports |
array of string | Other mods' stats this mod's UI blocks show as stats. |
|
stations |
object | Stations a player builds: a workbench, or a forge or rack that works on its own. | |
statuses |
object | Buffs and debuffs, made of effects. | |
strengths |
object | Parts: what it takes to dig a material. Use one by name wherever a field takes a strength. | |
surfaces |
object | Parts: how building materials look, defined once for materials of this mod to name. | |
talentTrees |
object | Whole trees of their own, on Kiln's screen. Needs "clients": "mod". | |
talents |
object | Nodes of a skill tree: in the game's own tree with game, else parts for a talent tree. Needs "clients": "mod". | |
tamings |
object | Tamings (Kiln.Taming, docs/kiln/modding/taming.md): which creatures, the steps in order (feed, weaken, use a tool, the game's own step), timeouts, the refund policy and the pet a tame makes. Items, creatures and pets are named as every block names them (a game item, an item block of this mod or another). Its id is |
|
terrainBrushes |
object | ||
terrainMaterials |
object | New terrain materials: ground, rock or ore, an id and a GUID in the game's tables. 11 fit across all mods, apart from the building materials. Needs "clients": "mod". | |
toolMaterialPools |
object | ||
triggers |
object | What a player does or is, any of the game's states and actions, driving effects. | |
vfx |
kiln-vfx.schema.json section |
Effects written from nothing: particles and a light. No compiler, no game data. Built by the game client at start. | |
villagerCombat |
object | Villager combat bodies (since 0.2.0-dev.31.33): which of the game's villagers can fight in this start (a mod with "boot": true, "side": "both", "clients": "mod"; docs/kiln/services/villager-bodies.md). Their templates get a combat body before the game starts; a mod's VillagerCombat order makes one fight. Kiln never lets him die (a lethal hit downs him at 1 health) and he never hits players. Without kiln.combat's villager death guard no villager gets a body. Not blocks: kiln.content applies them. | |
wands |
object | One-handed casters whose attacks are spells of their own: no spell item, no charges. | |
weaponClasses |
object | Parts: your own class of weapon, starting from a premade. | |
weaponStats |
object | Parts: a weapon's numbers. | |
weapons |
object | Weapons that are made exactly as their recipe tooltip shows. | |
windows |
object | Windows and screens of rows: text, values, buttons, toggles and sliders on the mod's config. Drawn by each player's game from the mod's own file, so needs "clients": "mod"; on a dedicated server checked and kept, nothing drawn. | |
wornLooks |
object | Parts: what something looks like on the body. Use one by name wherever a field takes a worn look. The cook finds the files of every look here by itself. |
ability
Cast on a key, a chat command, an item, or from code. It pays its costs, keeps its cooldown, then does what its delivery says. Its id is
| Key | Type | Required | Notes |
|---|---|---|---|
aim |
"self" | "forward" | "nearestEnemy" |
Where it aims (default forward). nearestEnemy: no enemy in range, no cast. | |
cast |
cast | ||
command |
string | A chat command that casts it, without the prefix. min length 1 | |
cooldown |
number | Seconds, per caster. min 0 | |
delivery |
delivery | ||
description |
string | ||
item |
item | An item that casts it when used. cast.charges is how many a cast takes of it. | |
key |
string | The default key ("G", "Shift+F"). Binding it needs the mod on the player's game: "clients": "mod". min length 1 | |
name |
string | yes | min length 1 |
onCast |
effects | On the caster, the moment it leaves. | |
playersOnly |
boolean | Keys and commands for players only (default). | |
range |
number | Metres, for aim (default 20). | |
specialCost |
integer | Special-ability charge. min 0 | |
was |
name |
action
A rule's action: setPhase, attack, custom, { "effect": ..., "on": "target" | "self" }, flee, backOff, play, immune, pause, enableFeature, disableFeature, heal, summon, cast, { "apply": ..., "on": ... }, or one of the game's { "type": ... }.
Type: object
affix
One kind of rolled modifier on an item (AffixBlock): its stat, and its tiers with the range each rolls in. A roll picks a tier, then a value in its range, and that value is what the one item carries.
| Key | Type | Required | Notes |
|---|---|---|---|
group |
string | Affixes of one group never roll onto one item together ("prefix", "element"). min length 1 max length 64 | |
name |
string | yes | What players read: "of the Bear", "Fleet". Kept with every roll. min length 1 max length 64 |
stacks |
boolean | Two worn items with it add up (true, the default), or only the highest value counts (false). | |
stat |
string | yes | The stat it changes while its item is worn or in hand: a stat's key ("strength", "move-speed"), or a GUID for another attribute of the game (a share). |
tiers |
array of affixTier | yes | Its tiers, the weakest first: tier 1 is the first. At least one tier with a weight above 0 has minItemLevel 0. min items 1 max items 16 |
affixEntry
One affix a pool can give.
| Key | Type | Required | Notes |
|---|---|---|---|
affix |
string | yes | An affix of this mod by its name (defined in code or in any blocks file of the mod), or "other-mod:name". min length 1 |
weight |
number | How likely it is to come up, among the pool's (default 1). min 0 |
affixName
An affix's or a pool's name, stricter than other blocks': rolled items keep "mod:name", so keep it.
Type: string
affixPool
Which items roll which affixes, and how many (AffixPoolBlock). A roll picks min to max different affixes by weight, never two of one group.
| Key | Type | Required | Notes |
|---|---|---|---|
affixes |
array of affixEntry | yes | What can come up. min items 1 max items 256 |
items |
array of itemRef | The item types that roll from it: game items, or items of this mod by their block name. Left out: any item with an item entity of its own (gear, tools). min items 1 | |
max |
integer | How many at most (default 1): at least min. min 0 max 8 | |
min |
integer | How many different affixes a roll gives at least (default 1). A pool whose entries can never give that many (entries with a weight above 0, one per group) is refused. min 0 max 8 |
affixTier
One tier of an affix: the range a roll of this tier takes its value from.
| Key | Type | Required | Notes |
|---|---|---|---|
max |
number | yes | The highest value: at least min, and of the same sign. min -1000000 max 1000000 |
min |
number | yes | The lowest value: whole points for a whole-number stat (strength: 3), a share for the others (move-speed: 0.05 is 5 %). Negative values make a curse. Never 0, at most 1000000 either way. min -1000000 max 1000000 |
minItemLevel |
integer | The item level from which this tier can roll (default 0: any). min 0 | |
step |
number | The grid a rolled value lies on. Default: 1 for a whole-number stat, 0.01 (one percent) for a share. | |
weight |
number | How likely a roll takes this tier, among the tiers the item's level allows (default 1). min 0 |
ai
How it notices and chases: a game creature's tuning to start from, and what to change.
| Key | Type | Required | Notes |
|---|---|---|---|
aggro |
number | Metres. min 0 max 1000 | |
callsForHelp |
boolean | ||
disable |
string | The game's AI features to turn off, comma separated. | |
enable |
string | The game's AI features to turn on, comma separated (EnemyFeatures names). | |
faction |
string | ||
fights |
boolean | ||
flee |
object | How it runs from a fight. | |
hearing |
number | Share of the game's noise ranges. min 0 max 10 | |
hears |
boolean | False: it does not react to noise. | |
helpRadius |
number | Metres. min 0 max 200 | |
leash |
number | Its home zone's radius, metres. min 0 max 1000 | |
like |
"vukah" | "scavenger" | "heavy" | "still" |
||
moves |
boolean | ||
nightSight |
number | Share of its sight at night. min 0 max 4 | |
pickEvery |
number | Seconds. max 60 | |
pickTarget |
string | A picker registered with Blocks.Target. | |
relations |
object | Faction name -> how this creature treats it. | |
returnsHome |
boolean | False: it never walks home after a fight. | |
roam |
object | How it wanders (turns the game's Roaming on). | |
senseEvery |
number | Seconds. min 0.05 max 60 | |
senseFilter |
string | A sense filter registered with Blocks.SenseFilter. | |
sight |
number | Metres. min 0 max 1000 | |
sightAngle |
number | Half its view, degrees. min 0 max 180 | |
template |
string | ||
threat |
number | How much it draws enemies' attention, 1 as the game has it. min 0 max 100 | |
tune |
object | Any field of the game's AI by path. |
ammo
What an arrow adds to the bow that shoots it.
| Key | Type | Required | Notes |
|---|---|---|---|
damage |
damage | The kinds it deals: the shares count, as for a weapon. | |
delivery |
projectile | A flight of its own. Default: an arrow's. | |
power |
integer | The power it adds to the bow's. Default: damage's total, or an arrow's own. min 0 |
animBlend
Animations mixed by an input.
| Key | Type | Required | Notes |
|---|---|---|---|
circular |
boolean | ||
clips |
object | yes | Finite numeric input positions (decimal or scientific notation) mapped to clip names. kiln lint checks finite values. |
input |
string | moveDirection, hitDirection, lookYaw, ..., or a name of your own. |
animClip
What a state plays: a glTF animation's name, or { "clip": name, ... }, or { "blend": ... }.
Type: string or object
animLayer
Played over the states: always, or on an overlay.
| Key | Type | Required | Notes |
|---|---|---|---|
blend |
animBlend | ||
bones |
array of string | ||
clip |
string | ||
fadeIn |
number | ||
fadeOut |
number | ||
name |
string | ||
overlay |
string | ||
reference |
string | ||
speed |
number | ||
weight |
number |
animatedModel
A held model with moving parts: a skinned model of the mod's and the graph that plays its clip, held in the class's hand with the look's vfx on it (then clients "mod"). Each is a GUID or the name of its model or graph step of assets/cook.json.
| Key | Type | Required | Notes |
|---|---|---|---|
graph |
string | The graph that plays its clip: a GUID or its graph step's name. min length 1 | |
leftGraph |
string | Daggers only: the left hand's graph. Default: graph. min length 1 | |
leftModel |
string | Daggers only: the left hand's model. Default: model. min length 1 | |
model |
string | The skinned model: a GUID or its model step's name. min length 1 |
animation
How a body moves: a glTF of the mod with its clips (cooked when the mod builds), the engine's states and your own. Or a premade: "like".
| Key | Type | Required | Notes |
|---|---|---|---|
clips |
string | The glTF file, its path in the mod's folder: not starting with a slash, a backslash or a drive (C:), and without two dots in a row. | |
dead |
animClip | ||
fall |
animClip | ||
hit |
animClip | ||
idle |
animClip | ||
idleCombat |
animClip | ||
idleSneak |
animClip | ||
layers |
array of animLayer | ||
like |
"vukah" | "scavenger" | "fisher" | "villager" |
||
retarget |
object | The clips are authored on a rig of their own: play them on "skeleton" (a body's) by pairing joints. Each paired joint turns as its source turns; translations carry over on the hips, scaled by the rigs' heights. | |
run |
animClip | ||
skeleton |
string | ||
sneak |
animClip | ||
sprint |
animClip | ||
stagger |
animClip | What a hit reaction, a stun or a parry plays over the whole body. Default: the hit clip once, else Idle. | |
states |
object | States of your own, by name. | |
stun |
animClip | ||
template |
string | A game creature whose graph this is. | |
walk |
animClip |
applies
A status put on the target.
Type: ref or object
area
Everything around the place gets these effects; who is in it is found when it happens.
| Key | Type | Required | Notes |
|---|---|---|---|
affects |
"enemies" | "friends" |
Default enemies. | |
effects |
effects | yes | |
radius |
number | yes | Metres. |
vfx |
vfx | A VFX where the area is, once. Its size is the VFX's own. |
armor
| Key | Type | Required | Notes |
|---|---|---|---|
description |
string | ||
look |
wornLookRef | What it looks like on the body: a model of the mod's own. It wins over visual for what is worn; visual still gives the dropped model and the tint. | |
loot |
loot | ||
name |
string | yes | min length 1 |
onHitTaken |
hits | What every hit the wearer takes does to whoever dealt it, while it is worn, with no unlock. | |
perks |
perks | ||
recipe |
recipe | ||
set |
"warrior" | "mage" | "ranger" or ref or armorSet |
A family of looks: this takes the look the set has for its slot. visual wins over it. | |
slot |
"head" | "chest" | "arms" | "legs" | "feet" | "ring" or ref or armorSlot |
yes | Where it is worn. |
source |
string | Where to get it, in the tooltip. Not given: nothing. | |
stats |
armorStatsRef | ||
tweak |
tweak | ||
visual |
visualRef | ||
was |
name |
armorLook
A set's look for a slot: a look, a worn look, or either by name.
Type: ref or visual or wornLook
armorSet
A family of looks, one per slot.
| Key | Type | Required | Notes |
|---|---|---|---|
arms |
armorLook | ||
chest |
armorLook | ||
feet |
armorLook | ||
head |
armorLook | ||
legs |
armorLook |
armorSlot
Your own slot: it brings its look and stats to the pieces worn there.
| Key | Type | Required | Notes |
|---|---|---|---|
like |
"head" | "chest" | "arms" | "legs" | "feet" | "ring" |
yes | The premade it starts from. |
stats |
armorStatsRef | ||
visual |
visualRef |
armorStats
What a piece of armor gives. A number left out: what its slot has at that level.
| Key | Type | Required | Notes |
|---|---|---|---|
bonus |
object | What wearing it adds; the tooltip follows. A share (melee-damage) is 0.05 for 5%. | |
level |
level | ||
magical |
integer | The tooltip's magical armour. min 0 | |
physical |
integer | The tooltip's physical armour. min 0 | |
rarity |
rarity | ||
resist |
object | Armour against one kind, on top of the two above. |
armorStatsRef
Type: ref or armorStats
baseRule
One base rule. Every member is optional; a rule never lowers the game's numbers.
| Key | Type | Required | Notes |
|---|---|---|---|
buildAreaPercent |
integer | null | Every altar level's build zone at this share of the game's own size, at most 256 metres on an axis. min 100 max 200 | |
extraAltars |
integer | This many more Flame Altars than the game's own number at every Flame level; the result is at most 16. min 0 max 15 | |
format |
1 |
||
minimumAltars |
integer | null | At least this many Flame Altars at every Flame level. Above 16 is refused: the game counts no more. min 1 max 16 | |
sizes |
array | null | At least this full size for an altar of a level, one entry per level. |
beard
A beard: a worn look on the jaw. A morph target named Female is its shape on a female head.
| Key | Type | Required | Notes |
|---|---|---|---|
description |
string | ||
look |
wornLookRef | yes | |
name |
string | yes | min length 1 |
tweak |
tweak | ||
was |
name |
bed
A bed: the game's sleep and rest. Starts from the game's wooden bed; visual.like names another.
| Key | Type | Required | Notes |
|---|---|---|---|
comfort |
ref or comfort | ||
description |
string | ||
lies |
spot | Where the player lies. Default: the starter's spot. | |
light |
vfx | A VFX on it for as long as it stands: where the game's lamps have their light. | |
loot |
loot | ||
name |
string | yes | min length 1 |
onInteract |
interactionRef | What happens when a player uses it. | |
placement |
ref or placement | ||
provides |
boolean | A recipe elsewhere can ask for it nearby (needsProps). It takes one of the game's 13 free places for crafting props, in every game that has the mod; a prop of code is there from the second start. Needs "clients": "mod". | |
recipe |
recipe | How the item that places it is made. | |
skipsNight |
boolean | When every player in the world sleeps at night in such beds, the morning comes. Kiln's, on the server. | |
spawnPoint |
boolean | A player who dies comes back at the last of these beds they slept in. Kiln's, on the server. | |
tweak |
tweak | ||
tweakPlaced |
tweak | The same, set on the template it places (templates section paths). | |
visual |
visualRef | Its look: like (a game item that places something: model, collision and how it places), or model (item: |
|
was |
name |
behaviour
What a creature does: attacks and rules on top of the game's combat AI, or a brain.
| Key | Type | Required | Notes |
|---|---|---|---|
attacks |
array of ref or creatureAttack | max items 32 | |
brain |
string | A brain registered with Blocks.Brain. | |
like |
"vukah-melee" | "scavenger-melee" | "none" |
||
perception |
object | How the brain sees. Only with a brain. Left out: distance and faction. | |
phases |
array of string | ||
pickAttack |
string | ||
pickEvery |
number | Seconds. max 60 | |
rules |
array of ref or rule | max items 32 | |
template |
string |
blueprint
A new shape on the game's building materials: beside the walls and floors in the build menu, taking every material they take.
| Key | Type | Required | Notes |
|---|---|---|---|
cells |
array of array of string | yes | Layers from the bottom up; in a layer, rows from the back to the front; in a row, # a cell and . or a space none. Half a metre a cell, 32 at most each way. min items 1 max items 32 |
cost |
integer | Obsolete and not used: a placement takes one block of the chosen material per cell it fills, as the game's own shapes do. min 1 max 9999 | |
description |
string | ||
materialPool |
string | min length 1 | |
name |
string | yes | min length 1 |
recipe |
recipe | ||
roof |
boolean | A roof shape: it cycles through the roof materials. | |
tweak |
tweak | ||
was |
name |
body
What a creature is: a skinned glTF of the mod, or a game creature's body ("like").
| Key | Type | Required | Notes |
|---|---|---|---|
chains |
array of modelChain | Joint chains of the model's skeleton the game swings, cooked into it when the mod builds. Needs the cook feature modelcook.chains2 (on) and scale 1. | |
cloth |
array of modelCloth | Primitives of the model the game simulates as cloth, cooked into it when the mod builds (assets/physics.json's form). Needs the cook feature modelcook.cloth (on) and scale 1. max items 255 | |
colliders |
array of collider | max items 2 | |
like |
"vukah" | "scavenger" | "fisher" | "villager" |
||
model |
string | The glTF file, its path in the mod's folder: not starting with a slash, a backslash or a drive (C:), and without two dots in a row. | |
scale |
number | 1 as modelled. max 20 | |
size |
object | ||
skeleton |
string | ||
slots |
object | The game's attachment slots on joints: { "HandR": "hand_r" }. | |
template |
string | ||
tool |
string | ||
workshop |
string | Pattern ^0x[0-9a-fA-F]+$. |
bodyPart
A body part, or what is worn in a slot. Hidden, it is not drawn.
Type: "head" | "hair" | "eyeBrow" | "beard" | "neck" | "collar" | "chest" | "waist" | "crotch" | "upperArms" | "lowerArms" | "hands" | "upperLegs" | "lowerLegs" | "feet" | "armorHead" | "armorUpperBody" | "armorArms" | "armorLowerBody" | "armorFeet" | "ringLeft" | "ringRight" | "shield" | "mainHand"
buildingMaterial
A new building material.
| Key | Type | Required | Notes |
|---|---|---|---|
comment |
string | ||
description |
string | ||
icon |
string | The block item's picture: a PNG in the mod's folder, or item: |
|
name |
string | yes | The block item's name, as players read it. min length 1 |
recipe |
recipe | ||
roof |
boolean | A roof material: the roof pieces list it, not the walls. | |
strength |
strengthRef | ||
surface |
buildingSurfaceRef | How it looks. Without one, like the game's Rough Stone. | |
was |
string | The block's old name, after a rename: the material's id comes from it, so its walls stay in every world. |
buildingMaterialPool
| Key | Type | Required | Notes |
|---|---|---|---|
materials |
array of object or object | yes | min items 1 max items 64 |
name |
string | yes | min length 1 |
roof |
boolean | ||
was |
string | min length 1 |
buildingSurface
How a building material looks. On a new material a layer left out repeats side (edgeTop repeats edge); on a retexture it stays the game's.
| Key | Type | Required | Notes |
|---|---|---|---|
bevel |
number | Metres the edges are rounded by. Default 0.01. min 0 max 1 | |
bottom |
surfaceLayer | ||
comment |
string | ||
decoration |
string | A game material whose edge decoration it shows, or "none". | |
edge |
surfaceLayer | ||
edgeCurve |
number | How the edge layer blends in, as the game keeps it: 1 a hard edge, 0.5 softer. max 1 | |
edgeOnlySide |
boolean | The edge layer only on the sides of a block. Default true. | |
edgeTop |
surfaceLayer | ||
mapping |
"default" | "wood" |
How the maps lie on a block. A roof material always maps as a roof. | |
noise |
surfaceLayer | ||
noiseRange |
array of number | [start, full]: where the noise layer starts to show and where it covers all. Default [0.33, 0.75]. min items 2 max items 2 | |
side |
surfaceLayer | ||
top |
surfaceLayer |
buildingSurfaceRef
A building surface, inline or by the name of one in this mod's surfaces sections.
Type: string or buildingSurface
buildingTool
| Key | Type | Required | Notes |
|---|---|---|---|
brushes |
array of ref | yes | min items 1 max items 64 |
description |
string | max length 16384 | |
icon |
string | min length 1 | |
identity |
identity | ||
materialPool |
ref | ||
name |
string | yes | min length 1 max length 1024 |
primary |
terrainToolAction | yes | |
secondary |
terrainToolAction | yes | |
was |
name |
cast
How a spell or an ability is cast: animation, timing, costs.
| Key | Type | Required | Notes |
|---|---|---|---|
animation |
"fast-bolt" | "lob" or object |
The motion. A spell's default is fast-bolt; an ability's, none. On a spell an object changes it: like (a premade; default fast-bolt), animation, hitAt (the release, as releaseAt). | |
charges |
integer | How many a cast takes of a spell's stack or an ability's item. 0: none, used for ever. Default 1. min 0 | |
manaCost |
integer | min 0 | |
releaseAt |
number | Seconds into the animation the spell leaves the staff. | |
staminaCost |
integer | min 0 | |
vfx |
vfx |
clothCollider
| Key | Type | Required | Notes |
|---|---|---|---|
type |
"sphere" | "capsule" |
yes |
clothSphere
| Key | Type | Required | Notes |
|---|---|---|---|
joint |
string | null | The joint it follows (name or j |
|
radius |
number | yes | Metres. max 8 |
x |
number | yes | |
y |
number | yes | |
z |
number | yes |
collider
| Key | Type | Required | Notes |
|---|---|---|---|
height |
number | Metres, a capsule's caps included. At least 0; a capsule must be at least 2 * radius high (checked by kiln lint). min 0 | |
radius |
number | Metres. | |
shape |
"capsule" | "sphere" |
comfort
What the game's comfort counts, for whoever rests within range. Only the best of a category counts.
| Key | Type | Required | Notes |
|---|---|---|---|
amount |
integer | yes | min 0 |
category |
"hearth" | "bed" | "chair" | "table" | "bench" | "throne" | "bathtub" | "sink" | "toilet" | "shower" | "carpet" | "illumination" | "flame" | "trophy" | "stool" | "kitchen" | "wellness" |
Default hearth. | |
range |
number | Metres. Default 5. | |
warmth |
integer | Resistance to the cold near it. Default 1. min 0 |
condition
A rule's condition: healthBelow, healthAbove, targetWithin, targetBeyond, hasBuff, time, night, day, inPhase, custom, not, inCombat, state, hasTarget, targetIsPlayer, targetHealthBelow, hitWithin, chance, targetAtHome, enemiesNear, alliesNear, summonsBelow, or one of the game's { "type": ... }.
Type: object
container
Something that holds items. Starts from the game's small chest; visual.like names another.
| Key | Type | Required | Notes |
|---|---|---|---|
comfort |
ref or comfort | ||
defaultLoot |
ref or lootTable | What it holds when it is placed: a lootTables block by name, or a table written here. Kiln rolls it on the server and gives the stacks into the container once for each container it finds (after a restart, or placed again on the same spot, it is not filled again). A container a player can make is filled at each new spot. | |
description |
string | ||
lid |
object | How its lid moves: the game's toggle animation. A client sight. A field left out is the starter's. | |
light |
vfx | A VFX on it for as long as it stands: where the game's lamps have their light. | |
loot |
loot | ||
name |
string | yes | min length 1 |
onInteract |
interactionRef | What happens when a player uses it. | |
placement |
ref or placement | ||
provides |
boolean | A recipe elsewhere can ask for it nearby (needsProps). It takes one of the game's 13 free places for crafting props, in every game that has the mod; a prop of code is there from the second start. Needs "clients": "mod". | |
recipe |
recipe | How the item that places it is made. | |
slots |
integer | Inventory slots. Default: the starter's. min 1 max 120 | |
tweak |
tweak | ||
tweakPlaced |
tweak | The same, set on the template it places (templates section paths). | |
visual |
visualRef | Its look: like (a game item that places something: model, collision and how it places), or model (item: |
|
was |
name |
cosmetic
A piece for a vanity slot: it shows over what is worn there, with no stats of its own and none taken away.
| Key | Type | Required | Notes |
|---|---|---|---|
description |
string | ||
dyes |
boolean | Takes the game's dyes, where its material has a tint mask. Default false. | |
look |
wornLookRef | yes | |
loot |
loot | ||
name |
string | yes | min length 1 |
recipe |
recipe | ||
slot |
"head" | "upperBody" | "arms" | "lowerBody" | "feet" |
yes | Which vanity slot it goes in. |
tweak |
tweak | ||
was |
name |
creature
A creature: its body, animation, AI and behaviour.
| Key | Type | Required | Notes |
|---|---|---|---|
ai |
ref or ai | ||
animation |
ref or animation | ||
behaviour |
ref or behaviour | ||
body |
ref or body | yes | |
drops |
ref or lootTable | What it drops when it dies, besides what the game gives it: a lootTables block by name, or a table written here. Kiln rolls it where the death is reported. | |
name |
string | ||
spawns |
array of creatureSpawn | ||
stats |
creatureStats | ||
was |
string |
creatureAttack
An attack: the state it plays, its reach, what its blow does.
| Key | Type | Required | Notes |
|---|---|---|---|
angle |
number | Whole cone aperture in degrees, more than 0 and at most 360. 360 hits all around; 359 leaves a one-degree gap behind. max 360 | |
chance |
number | 0..1. min 0 max 1 | |
cooldown |
number | Seconds. min 0 | |
delivery |
delivery | ||
hitAt |
number | Seconds into it, at least 0 and strictly less than length when supplied; kiln lint checks the relationship. A cooked clip can impose a shorter length at runtime. min 0 | |
length |
number | Seconds. max 30 | |
minRange |
number | Metres, at least 0 and strictly less than range (default range 2.5); kiln lint checks the relationship. min 0 | |
name |
string | Pattern ^[A-Za-z0-9._-]+$. |
|
onHit |
array of effectRef | min items 1 | |
plays |
string | ||
range |
number | Metres. max 200 | |
sequence |
guid | ||
style |
array of string |
creatureSpawn
| Key | Type | Required | Notes |
|---|---|---|---|
chance |
number | 0..1. min 0 max 1 | |
dayOnly |
boolean | ||
nightOnly |
boolean | ||
replaces |
string | yes |
creatureStats
| Key | Type | Required | Notes |
|---|---|---|---|
damage |
number | 1 as the game has it. min 0 max 100 | |
experience |
number | 1 as the game has it. min 0 max 100 | |
level |
integer | min 1 max 60 | |
takes |
object |
damage
Damage per kind. On a spell the first one is its main hit: the tooltip's number, and the staff's power adds to it unless flat. Elsewhere exactly this number. Armour and the attacker's stats apply after it.
| Key | Type | Required | Notes |
|---|---|---|---|
blunt |
number | min 0 | |
cut |
number | min 0 | |
explosion |
integer | min 0 | |
fire |
number | min 0 | |
flat |
boolean | On a spell: exactly this number, with no share of the staff's power. | |
ice |
number | min 0 | |
lightning |
number | min 0 | |
metal |
integer | min 0 | |
pierce |
number | min 0 | |
poison |
number | min 0 | |
shroud |
number | min 0 | |
stone |
integer | min 0 | |
wood |
integer | min 0 |
delivery
How it gets there: a flight, or one of the deliveries placed where the caster is.
Type: projectile or object or object or object or object or object or object or object
dialogue
A conversation in the game's own NPC menu: nodes of text and options, each with a condition and actions. An NPC block names it (talk). A conversation in chat (native: false) is quests/*.json's. Players need the mod (clients "mod").
| Key | Type | Required | Notes |
|---|---|---|---|
farewell |
array of kiln-quests.schema.json text |
Replaces the NPC's farewell lines. | |
greet |
boolean | The start node's text is a greeting. Default: yes on a clone, no on a game NPC (its own greetings stay). | |
greetings |
array of object | More greetings, shown before the plain one while their condition holds. | |
hint |
"None" | "Hint" | "Attention" | "MainQuest" |
The marker over the NPC's head on the greeting. | |
nodes |
object | yes | |
start |
string | The first node (default "start"). min length 1 | |
transition |
array of kiln-quests.schema.json text |
Replaces the line between topics. |
dialogueNode
| Key | Type | Required | Notes |
|---|---|---|---|
do |
array of questAction | Run when the node opens. | |
goto |
string | A node without options: where "Continue" goes. min length 1 | |
hint |
"None" | "Hint" | "Attention" | "MainQuest" |
The marker over the NPC's head on this node's greeting. | |
options |
array of dialogueOption | Add new options at the end: positions and node names feed the lines' ids. | |
speaker |
kiln-quests.schema.json text |
||
text |
kiln-quests.schema.json text |
||
voice |
string | A voice-over line the game's dialogue plays: a name in the mod's cooked audio, or a GUID. min length 1 |
dialogueOption
| Key | Type | Required | Notes |
|---|---|---|---|
close |
boolean | Picking the topic ends the talk on the player's screen (as the player's own leave does); the reply shows as the NPC's speech bubble. The server runs do from the game's pick event, not delayed until the close or farewell; do must not rely on the talk screen being open or closed. Since 0.2.0-dev.32.3 on Kiln clients (capability npcspeech.close). | |
do |
array of questAction | ||
goto |
string | The next node: its text is the reply, and its options join the NPC's topics from then on. "end" or none: nothing more. min length 1 | |
hint |
"None" | "Hint" | "Attention" | "MainQuest" |
The topic's marker. | |
if |
questCondition | Shown only while this holds; checked again when chosen. | |
once |
boolean | The topic goes away once heard. | |
reply |
kiln-quests.schema.json text |
What the NPC answers; default the target node's text. | |
text |
kiln-quests.schema.json text |
yes | |
voice |
string | The reply's voice-over; default the target node's. min length 1 |
door
A door. Starts from the game's wooden door; visual.like names another.
| Key | Type | Required | Notes |
|---|---|---|---|
comfort |
ref or comfort | ||
description |
string | ||
light |
vfx | A VFX on it for as long as it stands: where the game's lamps have their light. | |
loot |
loot | ||
name |
string | yes | min length 1 |
onInteract |
interactionRef | What happens when a player uses it. | |
opens |
"both" | "front" | "back" |
Which way it swings. both: away from whoever uses it, as the game's wooden door. front or back: always that way, whichever side the player stands on. A client sight; the angle is in the animation. Default: the starter's. | |
placement |
ref or placement | ||
provides |
boolean | A recipe elsewhere can ask for it nearby (needsProps). It takes one of the game's 13 free places for crafting props, in every game that has the mod; a prop of code is there from the second start. Needs "clients": "mod". | |
recipe |
recipe | How the item that places it is made. | |
sides |
"both" | "front" | "back" |
Which side a player can use it from (default both). A player on the other side is declined, as Kiln's other checks decline. Kiln's, on the server. | |
tweak |
tweak | ||
tweakPlaced |
tweak | The same, set on the template it places (templates section paths). | |
visual |
visualRef | Its look: like (a game item that places something: model, collision and how it places), or model (item: |
|
was |
name |
dropPlace
A place in the game's drop tables: table or dropsLike, one of them.
| Key | Type | Required | Notes |
|---|---|---|---|
chance |
number | min 0 max 1 | |
countMax |
integer | At least countMin; default 1 (checked by kiln lint). min 1 | |
countMin |
integer | min 1 | |
dropsLike |
itemRef | Every table that drops this item, next to it. | |
table |
string | A table's GUID or a glob over GUIDs. | |
weight |
number | Where the table picks one of several. min 0 |
effect
What happens. Parts run in this order: chance decides, area, spawns, vfx, sound, damage (with knockback and flinch), heal and restores, removes, applies, then.
| Key | Type | Required | Notes |
|---|---|---|---|
applies |
applies | ||
area |
area | ||
casts |
ref | An ability the target casts, as from code: its costs and cooldown apply. With on: caster, whoever wields, wears or cast. | |
chance |
number | The whole effect happens this often. min 0 max 1 | |
damage |
damage | ||
flinch |
flinch | ||
heal |
integer | Health given to the target. min 1 | |
knockback |
knockback | ||
on |
"target" | "caster" |
Who it is for: what the trigger gives it (default), or the caster, whoever wields the weapon or cast the spell. | |
removes |
array of statusRef | Statuses taken off the target: blocks by name, or the game's by their 0x id. | |
restores |
object | Given back to the target. Less than 0 takes it away. A target without that attribute gets nothing. | |
run |
string | A mod's [ImpactNative] method, "^[a-z0-9][a-z0-9._-]*\.[A-Za-z0-9_]+$. |
|
screen |
screenRef | A full-screen effect for the target, when it is a player, or for the players near the place. It needs seconds. | |
sound |
string | A sound at the target or the place: a cue of this mod (needs clients: mod), "other-mod:name", or a cue's GUID. min length 1 | |
spawns |
string | Spawned at the target or the place: a game template's name, or a template's GUID. min length 1 | |
then |
effects | More effects, on the same target. | |
vfx |
vfx |
effectRef
effects
Type: array of effectRef
equipBonus
Type: "health" | "stamina" | "mana" | "health-regen" | "stamina-regen" | "mana-regen" | "melee-damage" | "ranged-damage" | "magic-damage" | "crit-chance" | "crit-damage" | "frost-resist" | "sprint-speed"
fitName
Type: "hat" | "hood" | "noArmor" | "shield" | "tight" | "armsTight01" | "legsBeltTight" | "legsFeetTight" | "legsFeetTight01"
fits
What a look makes the rest of the character do: "hood" gives hair its hood cut. A name, or a list of names.
Type: fitName or array of fitName
flinch
How the target flinches.
Type: "none" | "veryLight" | "light" | "medium" | "heavy"
guid
Type: string
hair
A hair style: a worn look on the head. A morph target named Female is its shape on a female head; Hat and Hood the cut under a hat or a hood.
| Key | Type | Required | Notes |
|---|---|---|---|
description |
string | ||
look |
wornLookRef | yes | |
name |
string | yes | min length 1 |
tweak |
tweak | ||
was |
name |
hits
A list of effects, a block of onHits or an effect by name, or an onHit inline.
hudLine
A line of text on the game's screen. It shows while its condition holds and updates at its own pace; hidden, it costs nothing. Drawn by each player's game, so the mod needs "clients": "mod".
| Key | Type | Required | Notes |
|---|---|---|---|
anchor |
"topLeft" | "topCenter" | "topRight" | "middleLeft" | "center" | "middleRight" | "bottomLeft" | "bottomCenter" | "bottomRight" |
Default topLeft. | |
color |
uiColor | Default white. | |
comment |
string | ||
refresh |
number | Seconds between updates. Default 1. min 0.1 max 3600 | |
text |
uiText | yes | The text, with {game.fps:0} and {config.clock.scale:0.00} for values; {{ and }} are braces. |
when |
uiWhen |
iconPng
A PNG icon in the mod's folder. Portable data files and lint require a relative path with no '..'. Item icons also accept a full path inside the owning mod's folder at runtime; status and perk PNGs require relative paths. A missing or refused optional PNG leaves the block defined with its base icon and an error. A file that must exist.
Type: string
identity
A fixed GUID (and so game id) in place of the one Kiln derives, for an item or recipe another loader made: one of legacy and legacyId (since 0.2.0-dev.30.5).
| Key | Type | Required | Notes |
|---|---|---|---|
legacy |
string | The GUID the other loader gave it; the game id is FNV-1a of it. | |
legacyId |
integer or string | Only the game id, when the GUID is not known. |
interaction
What happens when a player uses a placed thing. A field left out is what its starter does. verb, plays, toggle and the game's lock in requires are the game's own; effects and requires' when, unless are Kiln's, on the server.
| Key | Type | Required | Notes |
|---|---|---|---|
effects |
effects | What happens to the player once the game has accepted the use. | |
onRefused |
effects | What happens to the player when requires' when or unless refuses them. | |
plays |
"sit" | "sleep" | "toggle" | "chest" | "inventory" | "read" | "talk" | "drink" or guid |
What the player plays: one of the game's interaction sequences, or a sequence's GUID. | |
prompt |
string | A prompt of your own instead of verb: the same text in every language. min length 1 | |
requires |
requires | ||
toggle |
object | Two states, and each use flips it, as a door's: the guest's sequence flips it. A prompt left out is its starter's. | |
upgrade |
upgradeAction | The use raises an item's rarity by one step of a rarity upgrade (rarityUpgrades), on the server once the game has accepted it: the item in the player's hand, or the one they pick in a window on a Kiln player's game. Without plays the player plays the hand on it (toggle), which replaces what the starter's own use did. | |
verb |
"open" | "close" | "use" | "activate" | "deactivate" | "flip" | "read" | "sit" | "sleep" | "search" | "inspect" | "talk" | "craft" | "collect" | "harvest" | "drink" |
The prompt's word: one of the game's, so every language has it. |
interactionRef
An interaction: inline, or a block of interactions by name.
Type: ref or interaction
item
Its kind follows from what you fill in: tool, ammo, feeds, heals or onUse, else a material. A water container (watering-can, water-pouch) is named by kind.
| Key | Type | Required | Notes |
|---|---|---|---|
ammo |
ammo | ||
canEat |
object | When it can be used. Refused, the item stays and gives nothing. | |
comfort |
integer | The comfort a placed one gives. min 0 | |
description |
string | ||
feeds |
statusRef | The status eating it gives, in the game's food slots. | |
flow |
number | How fast a water container fills and pours (at a lake, a well or a barrel, onto crops and soil), as a multiple of the game's own: what one step moves, 32 for the can, 16 for the pouch, about 20 steps a second. The game has no rate for filling alone. Default: 1. min 0.25 max 8 | |
fuel |
number | Seconds it burns in a fire. | |
heals |
integer | Health using it gives at once; the tooltip's number. | |
holds |
integer | A water container's capacity, in charges: the game's watering can holds 100, its pouch 20 sips. At most 1023 (players' games are sent the water as charges x 64 in 16 bits) unless largeHolds. Default: the kind's own. min 1 max 65535 | |
identity |
identity | ||
kind |
"material" | "consumable" | "food" | "ammo" | "tool" | "watering-can" | "water-pouch" |
watering-can and water-pouch: the game's water containers; holds and flow are theirs. | |
largeHolds |
boolean | Lets holds go past 1023, up to 65535: every player's game shows the container full until it is down to 1023 unless a mod sends the true value (a replicated extension). Default: false. | |
level |
level | ||
loot |
loot | ||
name |
string | yes | min length 1 |
onEat |
effects | On whoever used it, once the item has really gone. | |
onUse |
effects | What using it does, to whoever uses it. | |
rarity |
rarity | ||
recipe |
recipe | ||
source |
string | Where to get it, in the tooltip. Not given: nothing. | |
stack |
integer | How many fit in a stack. Default: the kind's own. A tool does not stack. min 1 max 65535 | |
texts |
object | Texts per language (en, de, pt-BR, ...). | |
tool |
tool | ||
tweak |
tweak | ||
vanillaLook |
string | The game item players without this mod see in its place (a vanilla client, a Kiln client without the mod's content): a game item of the same kind, by debug name. Default: none (an empty slot). | |
visual |
visualRef | ||
was |
name |
itemRef
An item: a game item (Material_T1_Twigs), an item of this mod by its block name, or "other-mod:name". min length 1
Type: string
keyBinding
A key that runs an action. The player can rebind it in the Kiln menu's Keys tab; the choice is kept in keybinds.json under
| Key | Type | Required | Notes |
|---|---|---|---|
category |
string | The group in the Keys tab. Default: the mod's name. min length 1 | |
comment |
string | ||
description |
uiText | What the Keys tab says. Default: the block's name. | |
does |
uiAction | yes | |
key |
string | yes | The default key: F8, Ctrl+K, Shift+Alt+F2, Numpad5, or None to bind it only once the player chooses. min length 1 |
onGameScreens |
boolean | A key that types something (a letter, a digit) fires in play only; true fires on every game screen too, chat included. | |
was |
name | ||
whileCapturing |
boolean | Also fire while the Kiln menu is open. |
knockback
How far the hit pushes the target.
Type: "none" | "small" | "normal" | "big" | "veryBig" | "verySmall" | "pullSmall" | "pullNormal"
knowledge
The game's tracking of one of the mod's items or recipes. One of of and identity.
| Key | Type | Required | Notes |
|---|---|---|---|
identity |
identity | The tracked item's or recipe's identity, in place of of. | |
of |
string | An item block of this mod (pickup: the item; craft: its own recipe), or a recipe block (craft). The recipe says trackCrafted. min length 1 | |
scope |
"player" | "world" | "both" |
Whose knowledge. Default: both for an item, player for a recipe (always player). | |
trigger |
"pickup" | "craft" |
yes | pickup: an item found (the world's and each player's knowledge); craft: a recipe crafted once (each player's). |
level
The tooltip's level; a made item has exactly this. min 1 max 55
Type: integer
loot
Where it can be found, besides being made.
| Key | Type | Required | Notes |
|---|---|---|---|
like |
itemRef | It is rolled in chests and world pickups where this item is, with its chances. | |
rolled |
boolean | Gear only: a roll gives it a level and rarity of its own. The opposite of the crafted-item rule, so it refuses a recipe (KL406). | |
stackMax |
integer | At least 1 and at least stackMin when both are supplied (checked by kiln lint). min 1 | |
stackMin |
integer | min 1 | |
tables |
array of dropPlace | The game's own drop tables it goes into: what enemies and fixed chests hold. A table of your own is a lootTables block. |
lootEntry
One stack a table can give.
| Key | Type | Required | Notes |
|---|---|---|---|
chance |
number | How often it gives anything when it comes up (default 1). With pick "one", after it was picked. min 0 max 1 | |
countMax |
integer | How many, at most. Left out: the same as countMin. min 1 max 65535 | |
countMin |
integer | How many, at least (default 1). min 1 max 65535 | |
item |
itemRef | yes | |
weight |
number | With pick "one": how likely it is the one picked, among the table's (default 1). min 0 |
lootTable
A table of what drops. Kiln rolls it on the server, apart from the game's own loot: it needs no clients of its own.
| Key | Type | Required | Notes |
|---|---|---|---|
entries |
array of lootEntry | yes | What can come up. min items 1 |
pick |
"each" | "one" |
What one roll does: "each" (the default) tries every entry's chance; "one" picks one entry by weight, then its chance. | |
rolls |
integer | How many times the table rolls (default 1). What comes up is added together per item. min 1 max 64 |
materialTweak
Changes a game material in place: what it takes to dig it, its pictures, or both.
| Key | Type | Required | Notes |
|---|---|---|---|
comment |
string | ||
material |
string | yes | The game material: a GameMaterials name, Cell |
strength |
strengthRef | ||
surface |
buildingSurfaceRef | New pictures: a layer written here replaces the game's, the rest stays. Asks nothing of other players. |
menu
The crafting menu a station opens: an existing station's, which lists the station's recipes among its own; or, with tabs, a menu a station with a workshop of its own lays out itself.
| Key | Type | Required | Notes |
|---|---|---|---|
like |
"workbench" | "carpenter" | "kitchen" | "forge" | "oven" | "alchemy" | "drying-rack" | "charcoal-kiln" | "kiln" | "smelter" | "fireplace" | "grinder" | "tannery" | "table-saw" |
Default: the station's kind. With tabs: the menu whose tabs lend theirs their icons. | |
tabs |
array of stationMenuTab | The menu in tabs of its own (since 0.2.0-dev.31; capability stationmenus.store). Only for a station with a workshop of its own: the game's stations keep the game's tabs. Recipes are named by their menuKey; one that no tab lists is still made, but not shown. max items 15 |
menuKey
A key in a station's menu: letters, digits, '.', '_' and '-', at most 64, no colon. Pattern ^[A-Za-z0-9._-]{1,64}$.
Type: string
modelChain
A chain of 2 to 8 joints the game swings (Kiln.Blocks ModelChainBlock).
| Key | Type | Required | Notes |
|---|---|---|---|
bendStiffness |
number | Default 5. min 0 max 1000000 |
|
damping |
number | Default 0.01. min 0 max 0.99 |
|
particleMassKg |
number | One moving joint's mass. Default 1. min 0.001 max 100 |
|
particleRadius |
number | Metres. Default 0. min 0 max 1 |
|
rootJoint |
string | yes | The first joint that swings; its parent stays animated. min length 1 |
stiffness |
number | Default 10000. min 1 max 1000000 |
|
tipJoint |
string | yes | The last joint, below the root along one branch. min length 1 |
modelCloth
One glTF primitive simulated as cloth (Kiln.Blocks ModelClothBlock).
| Key | Type | Required | Notes |
|---|---|---|---|
colliders |
array of clothCollider | What it does not pass through, in bind pose (metres, glTF axes). All cloth of a model: at most 32 spheres, a capsule counting two. | |
damping |
number | Default 0.4. min 0 max 0.99 |
|
gravity |
number | m/s², downwards. Default 9.81. min 0 max 50 |
|
massKg |
number | The whole cloth's mass. Default 1. min 0.001 max 100 |
|
mesh |
integer | yes | The glTF mesh, by its index in the file. min 0 |
particleIds |
array | null | One id per POSITION element; equal ids weld seam copies (within 1e-6 m, same skin). Absent: every vertex its own particle. min items 1 max items 65535 | |
pin |
array of number | yes | One value per particle: 1 held on the model, 0 hangs. Every connected piece needs a 1. min items 1 max items 65535 |
primitive |
integer | yes | The primitive of that mesh, by its index. min 0 |
stiffness |
number | Default 0.8. max 1 |
move
One move. At least one field: a move with none changes nothing.
| Key | Type | Required | Notes |
|---|---|---|---|
animation |
moveAnimation | ||
followUps |
array of moveFollowUp | Where the motion's follow-up windows lead, when not where the class has them. A weapon with any applies all its moves at once or none (Blocks.MovesStatus). Needs blocks.move_followups. max items 64 | |
hitAt |
number | Seconds into the move its blow lands: more than 0 and strictly less than length when supplied (checked by kiln lint). | |
length |
number | Seconds the whole move lasts. | |
like |
string | The game sequence it starts from: a sub-sequence name or a sequence GUID. Default: the class's in this slot. min length 1 |
moveAnimation
The state it plays: a state of this mod by name, a game state ("State" or "Machine/State"), its GUID or its 0x id; or a list, one per state event of the motion (null keeps one).
Type: string or array of string or null
moveChain
moveFollowUp
One route: the windows of this move that wait for trigger lead to another move of the same weapon. Only windows the motion has, with a follow-up of their own. Two routes that select the same window are refused, also when they say the same.
| Key | Type | Required | Notes |
|---|---|---|---|
link |
integer | Which link of that slot's chain, from 1. Default 1. min 1 max 16 | |
occurrence |
integer | null | Which of the trigger's windows in that sub-sequence, from 0 by time. Default: all. min 0 | |
subSequence |
integer | Which sub-sequence of the motion, from 0. Default 0. min 0 | |
to |
"primary" | "heavy" | "heavyAir" | "dodgeAttack" | "jumpAttack" | "plungeAttack" | "block" | "parry" | "special" | "execution" | "sneakAttack" |
yes | The slot of this weapon the windows lead to; the weapon's moves must name it. |
trigger |
"primary" | "heavy" | "block" | "parried" |
yes | The input the windows wait for; parried is the outcome of a block that parried a blow. |
name
The block's name. Ids come from your mod id and this: keep it. A rename says "was". Pattern ^[A-Za-z0-9_.-]+$.
Type: string
npc
A friendly NPC on a game NPC's body: talk, wares, a place in the roster.
| Key | Type | Required | Notes |
|---|---|---|---|
ai |
ref or ai | ||
animation |
ref or animation | Only with an authored roster body (body.model of this mod): its cooked clips and graph. A game NPC body refuses it. | |
behaviour |
ref or behaviour | ||
body |
ref or body | yes | |
motions |
ref or npcMotions | Motion-role bindings for an authored Fisher/Villager body: this mod's npcMotions block by name, or inline bindings. | |
name |
string | yes | min length 1 |
names |
object | ||
place |
object | ||
roster |
object | ||
routine |
ref or routine | Its day plan: a routines block of this mod by name, or a plan written here (it becomes the block <this block's name>.routine). Only the server follows it. | |
talk |
string | A dialogue block or quests/*.json dialogue of this mod. Another mod's dialogue is not supported by the startup build. | |
vendor |
object | ||
was |
string |
npcMotions
The v1 roster motion vector: bind required roles to cooked graph states, and bind optional roles or provide optionalFallback. Interaction uses Kiln's chassis key when omitted or null; no game GUID is needed. This part alone requests no client content.
| Key | Type | Required | Notes |
|---|---|---|---|
bindings |
array of object | Unique role/variant pairs. Sit, sleep, inspect, jump and door are required; omitted optional roles need optionalFallback. | |
optionalFallback |
string | Explicit GUID-bearing graph state for omitted optional motions. Fallbacks are clamped and non-looping; required roles never fall back. min length 1 |
onHit
What an item does to what its wearer hits.
| Key | Type | Required | Notes |
|---|---|---|---|
effects |
effects | yes | |
vfx |
vfx | A VFX where each hit lands. |
perceptionOffset
Metres along the world's axes (y up), added to the entity's position. Default 0, 1.5, 0.
| Key | Type | Required | Notes |
|---|---|---|---|
x |
number | min -32 max 32 | |
y |
number | min -32 max 32 | |
z |
number | min -32 max 32 |
perk
An enhancement on an item, in its perks: it runs while the item is worn or in hand, once a player has unlocked that enhancement. A weapon's onHit is the same with no unlock.
| Key | Type | Required | Notes |
|---|---|---|---|
description |
string | ||
icon |
string | A game perk, whose icon it takes, or a PNG in the mod's folder (square, 256x256 as the game's; then clients "mod"). min length 1 | |
modifies |
modifies | ||
name |
string | yes | min length 1 |
onHit |
hits | What every hit they land does to what was hit. | |
onHitTaken |
hits | What every hit they take does to whoever dealt it. | |
onKill |
hits | What a hit that kills does to what it killed. | |
tweak |
tweak | ||
value |
string | The number the tooltip shows in front of the name: "5%", "12", "2.5", "8s". Default: what one modifies entry or one on-hit effect's chance says. Pattern ^\s*-?[0-9]+(\.[0-9]+)?\s*(%\|s)?\s*$. |
|
was |
name |
perks
Enhancement slots, from the first: a game perk's name or GUID, item:
Type: array of string | null
pet
A pet: its creature, name, level, movement, revive, targets, what it becomes when it goes down, its limits and its HUD. Its id is
| Key | Type | Required | Notes |
|---|---|---|---|
comment |
string | ||
creature |
string or ref or creature | yes | The creature its body is: a game creature by its creatures registry id, a creature block of this mod (by name, or "other-mod:name"), or one written here. |
downed |
petDowned | ||
hud |
petHud | ||
level |
petLevel | ||
limits |
petLimits | ||
movement |
petMovement | ||
name |
string | The name owners read; default: the creature's own. min length 1 max length 64 | |
revive |
petRevive | ||
targets |
petTargets | ||
was |
string | The name before a rename: the pet id comes from the oldest name, so records keep their pets. Pattern ^[A-Za-z0-9_.-]+$. |
petDowned
What it becomes when it goes down.
| Key | Type | Required | Notes |
|---|---|---|---|
outcome |
"recoveryAnchor" | "absent" | "release" | "body" |
recoveryAnchor (default): a bodyless anchor where it fell; absent: no anchor until its owner summons one; release: its record ends; body: a decorative body lies at its anchor until it is revived. |
petHud
What the owner's built-in HUD shows of it.
| Key | Type | Required | Notes |
|---|---|---|---|
bar |
boolean | A row in the owner's pet bar (default true). | |
recoveryMarker |
boolean | The recovery anchor's marker (default true). |
petLevel
Its level and size.
| Key | Type | Required | Notes |
|---|---|---|---|
level |
integer | The level for fixed: 1 up to the creature's highest level (default 1). min 1 max 255 | |
mode |
"fixed" | "ownerAtTame" | "ownerAtSummon" |
Where the level comes from (default fixed). | |
scale |
number | The body's uniform scale (default 1). min 0.25 max 4 |
petLimits
How many there may be: the pet's limits.
| Key | Type | Required | Notes |
|---|---|---|---|
livePerCharacter |
integer | Live bodies of one character while summoning this pet (default 1). min 1 max 16 | |
livePerWorld |
integer | Live bodies of this pet in the world (default 16). min 1 max 256 | |
retainedPerCharacter |
integer | Records of this pet one character keeps (default 32). min 1 max 128 |
petMovement
How it follows: the mod's distances and catch-up.
| Key | Type | Required | Notes |
|---|---|---|---|
allowCatchUp |
boolean | Whether a far or stuck pet is put next to its owner (default true). | |
catchUpDistance |
number | Farther than this it is put next to its owner on safe ground, with allowCatchUp (default 60). min 10 max 160 | |
followDistance |
number | Metres from the owner where it stops (default 3). min 1 max 10 | |
groundSearchMeters |
number | How far up and down Kiln looks for ground at a catch-up spot (default 4). min 0.5 max 8 | |
mode |
"queryInput" | "engineGuard" | "brain" |
queryInput (default): Kiln walks it along walk-only routes; engineGuard: the game's own guard keeps it near; brain: its creature block's own brain moves it (a creature block with a brain). | |
repathSeconds |
number | Seconds between new routes (default 0.5). min 0.1 max 5 | |
runDistance |
number | Farther than this it runs, at least followDistance (default 10). min 1 max 30 | |
stuckSeconds |
number | Seconds without progress before a stuck pet catches up (default 5). min 1 max 30 |
petRevive
How a downed pet is revived: the owner channels next to its recovery anchor.
| Key | Type | Required | Notes |
|---|---|---|---|
allowed |
boolean | False: Kiln's revive is off for this pet (default true). | |
cancelOnMovement |
boolean | The owner moving more than maxOwnerDisplacement cancels it (default true). | |
cancelOnObservedOwnerDamage |
boolean | The owner being hurt cancels the channel (default true). | |
channelSeconds |
number | Seconds the owner channels (default 3). min 0.1 max 60 | |
cost |
null or object | What it costs (a plain stack item), taken when the channel completes; null: free. | |
healthFraction |
number | The share of its maximum health it comes back with (default 0.5). max 1 | |
maxOwnerDisplacement |
number | Metres (default 0.75). min 0.1 max 2 | |
rangeMeters |
number | Metres between owner and anchor while channelling (default 3). min 1 max 8 |
petTargets
Who it may harm and who may harm it: one rule for hits, knockback, aggro, attack orders and defend/assist.
| Key | Type | Required | Notes |
|---|---|---|---|
hostileFactions |
null or array of "environment" | "hitAll" | "fogger" | "vukah" | "scavenger" | "wildlife" | "wildBeast" | "hitOthers" | "skeleton" | "farmAnimal" | "cyclops" | "drak" | "ancients" |
The factions of unowned creatures it may fight; null: Kiln's list (fogger, vukah, scavenger, wildBeast, skeleton, cyclops, drak, ancients). | |
pvp |
"off" | "byModRule" |
off (default): every player and every other character's pet is protected; byModRule: protected unless the mod declared the two characters hostile (Pets.SetHostile). |
placed
What every delivery that is not a flight has: it happens where it is placed, facing where the caster aims.
| Key | Type | Required | Notes |
|---|---|---|---|
affects |
"enemies" | "friends" |
Default enemies. | |
look |
"ice-bolt" | "fireball" |
On a spell, what shows in the hand. | |
tweak |
tweak | ||
vfx |
vfx | A VFX where it happens, facing where it goes. |
placement
Where and how a player can place it. A field left out: what its starter does.
| Key | Type | Required | Notes |
|---|---|---|---|
consumed |
boolean | Placing it takes the item from the stack. | |
fog |
boolean | It can be placed below the Shroud's line. | |
inBase |
boolean | Only inside a base. | |
on |
surface | ||
size |
array of number | Metres, width, height, depth: the box that has to be free, standing on its floor. min items 3 max items 3 | |
snap |
boolean | The cursor starts out snapping to the voxel grid. | |
water |
boolean | It can stand in water. |
processing
How a station works on its own. A field left out: what its kind does.
| Key | Type | Required | Notes |
|---|---|---|---|
goesOutInRain |
boolean | false: it never goes out. | |
running |
object | What shows while it runs. | |
slots |
integer | Inventory slots, inputs and outputs in one. min 1 max 64 |
projectile
It flies. What it strikes gets onHit, and where it stops onImpact happens.
| Key | Type | Required | Notes |
|---|---|---|---|
gravity |
number | 0 flies straight, 1 falls like a thrown stone (default 0.1). | |
homing |
object | It turns toward what it was aimed at, as the game's homing projectiles do. | |
look |
"ice-bolt" | "fireball" |
||
onHit |
effects | On the creature it strikes, if it struck one. | |
onImpact |
effects | At the place it stops, which has no target of its own: use an area. | |
pierce |
integer | How many creatures it flies through, each struck once (onHit on each), before the next one stops it. Needs onHit. Anything that is not a creature stops it at once. min 0 max 8 | |
range |
number | Metres before it fizzles (default 150). | |
speed |
number | Metres per second (default 30). | |
tweak |
tweak | ||
type |
"projectile" |
yes | |
vfx |
vfx |
prop
Something placed that stands there: furniture, a banner, a lamp.
| Key | Type | Required | Notes |
|---|---|---|---|
collider |
object | What a player bumps into and hits stop at: one box, in metres. Default with a glTF model: the box around the model. Only with a model of yours. | |
colliders |
array of object | Several boxes in place of one, all solid, together one shape in the template: a table's top and legs, a doorway's two posts. The same rules as collider. The box the cursor checks for room stays one: the box around them all. min items 1 max items 16 | |
comfort |
ref or comfort | ||
description |
string | ||
light |
vfx | A VFX on it for as long as it stands: where the game's lamps have their light. | |
loot |
loot | ||
name |
string | yes | min length 1 |
onInteract |
interactionRef | What happens when a player uses it. | |
placement |
ref or placement | ||
provides |
boolean | A recipe elsewhere can ask for it nearby (needsProps). It takes one of the game's 13 free places for crafting props, in every game that has the mod; a prop of code is there from the second start. Needs "clients": "mod". | |
recipe |
recipe | How the item that places it is made. | |
tweak |
tweak | ||
tweakPlaced |
tweak | The same, set on the template it places (templates section paths). | |
visual |
visualRef | yes | Its look: like (a game item that places something: model, collision and how it places), or model (a glTF in the mod's folder, which kiln cook makes into the game's model; item: |
was |
name |
quest
A quest chain in the game's own journal, tracked-quest line and map: steps that run in order, each with objectives, and what it pays. The block's name is its id: keep it and the steps' ids. Players need the mod (clients "mod"). A quest from a blocks file is built into the game's journal from the next start, unless the mod ships quests/generated/
| Key | Type | Required | Notes |
|---|---|---|---|
abandonable |
boolean | Players may give it up (default true; never a world quest). | |
auto |
boolean | Starts by itself as soon as it is available. | |
description |
kiln-quests.schema.json text |
||
giver |
questNpc | The NPC who offers it. A quest with a giver starts through that NPC, an action or code. | |
hidden |
boolean | Not listed until it is active. | |
main |
boolean | ||
name |
kiln-quests.schema.json text |
yes | |
onFail |
array of questAction | ||
onStart |
array of questAction | ||
partyRadius |
number | ||
priority |
integer | Its order in the journal (the game uses 40..100; default 50). min 0 | |
repeatable |
boolean | ||
requires |
array of questCondition | ||
retryable |
boolean | Can start again after it failed or was given up (default true). | |
rewards |
questReward | ||
scope |
"player" | "party" | "world" |
player (default), party (players within partyRadius share credit, each gets rewards), world (one shared state). | |
source |
"None" | "Flame" | "Blacksmith" | "Alchemist" | "Huntress" | "Farmer" | "Carpenter" | "CryptKeeper" | "Bard" | "ChineseNewYearTrader" | "Barber" | "Fisher" | "AncientResearcher" | "Grassland" | "Deepforest" | "Steppes" | "Desert" | "ColdHeights" | "Wetlands" | "AncientLands" |
The journal's portrait (keen::QuestSourceType). Default None. | |
steps |
array of questStep | yes | min items 1 |
questAction
One of xp, item, take, knowledge, revoke, start, complete, fail, advance, reset, spawn, despawn, teleport, chat, talk, signal, call. In an option's do the first failing action stops the rest; in rewards and hooks each failure is logged and the rest runs.
| Key | Type | Required | Notes |
|---|---|---|---|
advance |
string | Finishes a step: "quest.step". Refused for unfinished kill, collect and reach objectives unless force. min length 1 | |
amount |
integer | min 1 | |
at |
questPos | ||
bindNpc |
questNpc | The spawned entity becomes this NPC. | |
call |
string | A name registered with Quests.RegisterAction. min length 1 | |
chat |
kiln-quests.schema.json text |
A chat line for the player. | |
complete |
string | min length 1 | |
count |
integer | Items given or taken, spawned entities. min 1 | |
despawn |
string | The tag of what spawn made. min length 1 | |
exact |
boolean | Exactly at: no ground, no base check. | |
fail |
string | min length 1 | |
flag |
integer | revoke: one flag of a Flags object. min 0 max 31 | |
force |
boolean | start, advance: past what refuses. | |
item |
itemRef | Gives count of it (what does not fit lands at the player's feet). | |
knowledge |
string | Grants it: npc:….unlock, quest:…, 0x…. min length 1 | |
node |
string | min length 1 | |
offset |
questPos | Metres from the player, instead of at. | |
reset |
string | min length 1 | |
revoke |
string | Clears that id only: what the game already did because of it stays. min length 1 | |
signal |
string | Feeds custom objectives. min length 1 | |
spawn |
kiln-quests.schema.json template |
A one-off creature near the player or at at, on the ground outside bases. For creatures a step needs, use the step's spawn. | |
start |
string | Starts a quest. min length 1 | |
tag |
string | min length 1 | |
take |
itemRef | ||
talk |
string | Opens a chat conversation: a dialogue of this mod, at node. min length 1 | |
target |
"world" | "player" |
knowledge, revoke: default the player's object if the id has one, else the world's. | |
teleport |
questPos | Moves the player. | |
transient |
boolean | Never written to the save. | |
value |
integer | knowledge: a counter's amount or a flag's number. min 0 | |
xp |
integer | Experience, as a quest reward. min 0 | |
yaw |
number |
questCondition
One of knowledge, level, quest, step, item, predicate, all, any, not. Checked on the server, also when an option is chosen.
| Key | Type | Required | Notes |
|---|---|---|---|
all |
array of questCondition | min items 1 | |
any |
array of questCondition | min items 1 | |
count |
integer | min 1 | |
is |
"locked" | "available" | "active" | "done" | "failed" | "started" | "pending" |
Quest: locked, available, active, done, failed, started. Step: pending, active, done. Default done. | |
item |
itemRef | At least count of it are in the inventory. | |
knowledge |
string | The game's knowledge holds it. min length 1 | |
level |
integer | The character's level is at least this. min 1 | |
not |
questCondition | ||
predicate |
string | A name registered with Quests.RegisterPredicate. min length 1 | |
quest |
string | A quest of this mod (or "other-mod:quest"), in the state is. min length 1 | |
step |
string | "quest.step", in the state is. |
questIdName
an id: letters, digits, '_' and '-'
Type: string
questMarker
The step's map marker. A step with a place (site, spawn, a reach or kill place, an NPC to talk to or deliver to) has one by itself; this names it or moves it. false: none.
Type: boolean or object
questNpc
An NPC: an NPC block of this mod by its name, an id of the mod's quests/*.json, "other-mod:npc". min length 1
Type: string
questObjective
One of kill, collect, deliver, reach, talk, craft, build, knowledge, custom.
| Key | Type | Required | Notes |
|---|---|---|---|
build |
object | Placing it. | |
collect |
object | What the inventory holds now. Takes nothing. | |
craft |
object | A successful craft by the player. | |
custom |
string or object | A signal name, or the signal and how many: Quests.Signal, the signal action, or a C# progress function. | |
deliver |
object | Takes the items when an advance action or the NPC's hand-over finishes it. | |
kill |
object | A death credited to the player (a world quest: any death). | |
knowledge |
string | The game's knowledge holds it: npc:…, quest:…, query:…, 0x…. min length 1 | |
reach |
object | Being there, checked twice a second. | |
talk |
object | Talking to that NPC. | |
text |
kiln-quests.schema.json text |
Shown instead of the step's text when a step has several objectives. |
questPlace
A place found at run time: on real ground (the voxel surface), outside every base, not too steep; one per world. Say what it is near: near ("player", or an NPC), or at.
| Key | Type | Required | Notes |
|---|---|---|---|
at |
questPos | ||
distance |
array of number | Metres from what it is near: [min, max]. It widens by itself until a good spot is found. min items 1 max items 2 | |
exact |
boolean | Exactly at: no ground, no base check. | |
inBase |
boolean | A base is fine (never for enemies: the game pacifies them there and may remove them). | |
margin |
number | Metres to keep from a base's build zone (default 20). min 0 | |
near |
string | "player" (who gets there first), or an NPC: an NPC block of this mod by its name, or an id of the mod's quests/*.json. min length 1 |
questPos
Metres: [x, y, z]. x east, y up, z north. min items 3 max items 3
Type: array of number
questReward
What a quest or a step pays, all at once: experience, items, a status, knowledge. Each part is paid on its own: one that cannot be (a full inventory drops the rest at the player's feet) is logged and the others still are. A world quest pays every player in game.
| Key | Type | Required | Notes |
|---|---|---|---|
items |
object | Item and count: a game item, or an item this mod defines. | |
knowledge |
array of string | The game's knowledge granted: npc:….unlock unlocks an NPC. | |
lootTable |
string | A loot table rolled when the reward is paid: the name of a lootTables block of this mod (or "other-mod:name"). What comes up is given like items. A name that is no loot table refuses the quest. min length 1 | |
status |
ref or object | A status put on the player: a status block of this mod, or a game status; its own time, or seconds. | |
xp |
integer | Experience, through the game's quest path. min 0 |
questSpawn
Creatures the step brings into the world: on real ground outside every base, never saved, checked every second, spawned again when the game removes them, and after a restart or rejoin as many as are still owed. Where: the step's site, or at, near and distance here.
| Key | Type | Required | Notes |
|---|---|---|---|
at |
questPos | ||
count |
integer | min 1 | |
distance |
array of number | min items 1 max items 2 | |
exact |
boolean | ||
inBase |
boolean | ||
level |
integer | The level to spawn at (0: the template's). min 0 | |
margin |
number | min 0 | |
near |
string | "player" or an NPC. min length 1 | |
retries |
integer | How many times they come back when the game removes them (default 5). Then kiln.log has an error. min 0 | |
spread |
number | Metres between them (default 4). min 0 | |
tag |
string | The Kiln.Spawn tag: a kill objective can name it. min length 1 | |
template |
kiln-quests.schema.json template |
yes |
questStep
One step of a quest. It is done when all its objectives are.
| Key | Type | Required | Notes |
|---|---|---|---|
id |
questIdName | yes | Letters, digits, '_' and '-'; unique in the quest. Keep it: progress is filed under it. |
marker |
questMarker | ||
objective |
questObjective | ||
objectives |
array of questObjective | ||
onDone |
array of questAction | ||
onEnter |
array of questAction | ||
recommendedLevel |
integer | min 0 max 255 | |
rewards |
questReward | Paid when the step is done. | |
site |
questPlace | ||
spawn |
questSpawn or array of questSpawn | Creatures the step brings into the world: one or a list. | |
text |
kiln-quests.schema.json text |
The journal's paragraph. | |
title |
kiln-quests.schema.json text |
The journal's short line (the list, the tracked quest). Default its text. | |
voice |
string | A voice-over line in the journal: a name of the mod's cooked audio, or a GUID. min length 1 |
rarity
What a made item is: its colour, and how many enhancements it can have (one more than the rank).
Type: "common" | "uncommon" | "rare" | "epic" | "legendary"
rarityRoll
Which item types roll which rarity when they are made (RarityRollBlock). A rarity whose enhancement slot the item type lacks never comes up; with none left the game's rarity stays. A recipe's tooltip still shows the type's rarity.
| Key | Type | Required | Notes |
|---|---|---|---|
items |
array of string | yes | The item types: game items, items of this mod by block name, "other-mod:name", or a pattern with * over the game's item names ("Weapon_"; "my-mod:" is every item of that mod). min items 1 max items 1024 |
sources |
string | Which creations roll (default "craft, loot"): craft, the game makes it without a rarity (crafting); loot, the game makes it with a rarity it rolled or fixed (random loot, random drop-table stacks); give, a Kiln give without a rarity. Pattern ^(craft\|loot\|give)(, ?(craft\|loot\|give))*$. |
|
weights |
object | yes | How likely each rarity is, among the five; one left out is 0. At least one above 0. |
rarityUpgrade
A rarity upgrade (RarityUpgradeBlock): which items it takes, up to which rarity, and each step by the rarity it reaches. An item whose next rarity has no step, or whose type has no enhancement slot for it, is refused; nothing is paid then.
| Key | Type | Required | Notes |
|---|---|---|---|
allowEmptySlot |
boolean | Upgrade into an enhancement slot the item's type has no perk for (default false: refused). | |
durability |
"keepRatio" | "keep" | "repair" |
What happens to durability (default keepRatio: the game computes max durability again at the new rarity, the share kept). | |
items |
array of string | The item types: game items, items of this mod by block name, "other-mod:name", or a pattern with * over the game's item names ("Weapon_"; "my-mod:" is every item of that mod). Left out: every item with enhancement slots. max items 1024 | |
max |
"uncommon" | "rare" | "epic" | "legendary" |
The highest rarity it upgrades to (default legendary). | |
socket |
"keep" | "gameChance" |
A gem socket: keep (default: as it is), or gameChance (a weapon without one rolls the game's chance at the new rarity; a won socket re-creates the item in its slot). | |
steps |
object | yes | The steps, by the rarity each reaches (uncommon .. legendary). A rarity without a step is not reached. |
recipe
How something is crafted.
| Key | Type | Required | Notes |
|---|---|---|---|
burns |
object | Fuel each cycle burns, item -> count. An input, as in the game's data: with none left the station stops. | |
comfort |
integer | The comfort level it asks of whoever makes it. min 0 | |
identity |
identity | ||
makes |
integer | How many one craft gives. For a spell: charges. min 1 max 65535 | |
menuGroup |
string | The tab of the game's crafting menu that lists it, one the game has (CraftingGroups in C#): "0x |
|
menuKey |
menuKey | Its name in the menu of a station with tabs of its own (menu.tabs): one recipe of the mod per key at a station. Only for a recipe at a station with a workshop of its own; it changes nothing of the recipe itself. | |
needs |
object | Item -> count: a game item, an item of this mod by its block name, or "other-mod:name". | |
needsProps |
array of string | Props that have to stand near a manual station: blocks with provides, by name ("other-mod:name" for another mod's). The game's automated factory path has no nearby-prop context, so factory block recipes refuse this field. max items 8 | |
output |
itemRef | What it makes: in a station's list of recipes, and in a recipes block of its own, where it is needed. Elsewhere a recipe makes the block it is on. | |
seconds |
number | Seconds at a station that works on its own. Needed at one with a workshop of its own. | |
sheltered |
boolean | A player crafts it only under a roof. A station that works on its own never checks a roof, so its recipes refuse it. | |
station |
string | "hand" (the default): the player's own menu; a workshop's 0x id; or a station block by name. In a station's list of recipes: that station, so leave it out. | |
trackCrafted |
boolean | Keeps the game's "crafted once" mark of the recipe; a knowledge block with trigger craft puts it in the game's knowledge table (since 0.2.0-dev.30.5). |
ref
A block of this mod by name, or "other-mod:name". min length 1
Type: string
requires
What it takes to use it. item, count, uses and time are the game's own lock, shown in the player's game; when and unless are checked by Kiln on the server.
| Key | Type | Required | Notes |
|---|---|---|---|
count |
integer | How many of item. Default 1. min 1 max 65535 | |
item |
itemRef | An item in the player's bag. | |
time |
"day" | "night" |
Only by day, or only by night. | |
unless |
states | Not while the player is in any of these. | |
uses |
boolean | The use takes item from the bag, as a lockpick goes. | |
when |
states | Only while the player is in one of these. |
resourcePatch
One resource and what to change in it: fields to set, a template's components, lists cleared, with elements removed, replaced or appended to. At least one of set, append, replace, remove, clear, addComponents, removeComponents, copyComponents. Made in the order removeComponents, addComponents, copyComponents, clear, remove, replace, append, set. A patch is applied whole or not at all.
| Key | Type | Required | Notes |
|---|---|---|---|
addComponents |
array of string | Components of the game's types a template gets, zeroed ("PickupItemZone"); one it has already stays. Made after removeComponents; set then fills them in ("PickupItemZone.lastAttempt.value"). min items 1 | |
append |
object | List path to the values added at its end: a list of numbers, bools or enum members. Made after the components, clear and replace, before set. | |
clear |
array of string | List paths made empty, any element type ("noBuildZones"). A path names one list: [i] on the way is fine, [*] is not. Made after the components, before replace. min items 1 | |
copyComponents |
object | Component type name to the GUID of the template it is copied from, whole (its lists, strings and nested structs with it): added when the template has none of that type, its own replaced when it has. The source must have the component; CurrentTransform, and what an actor needs to live, are refused. Made after addComponents; set can then change the copy's fields. | |
format |
1 |
||
part |
integer | The part index; 0 when left out. min 0 | |
personal |
boolean | Declares every effect of this document client-local. Dedicated server processes skip it; clients, including hosts, apply it normally. The author's claim, not proof: changing a value the server also uses will desync the player. Only resource patches; other collectors remain shared. Default false. |
|
remove |
object | List path to the elements taken out of it (since 0.2.0-dev.32.1): where, by the values of their members (a list of structs or variants: "impactValues.simple": {"where": {"configId": 1585164443}}; "a.b" a member of a member, "$type" the type a variant holds), or values, in a list of numbers, bools or enum members. The elements left keep their order. A path names one list. Made after clear, before replace and append. | |
removeComponents |
array of string | A template's (keen::ecs::TemplateResource) components to take out, by type name ("SpawnTime"); one it has not got is skipped. Made first. CurrentTransform, and what an actor needs to live, are refused. min items 1 | |
replace |
object | List path to the values it holds afterwards, exactly: a list of numbers, bools or enum members. Made after clear, before append. | |
resource |
string | yes | The resource's GUID. |
set |
object | Member path to value. A path: members by name, [i] an element of a list, [*] every element. | |
type |
string | yes | The resource's qualified type name, as keen::BalancingTable. min length 1 |
routine
A villager's day plan (RoutineBlock). At each decision the villager takes the window with the highest priority that covers the game minute; equal priorities go to the window written first; no window: the fallback.
| Key | Type | Required | Notes |
|---|---|---|---|
fallback |
routineFallback | ||
version |
integer | The version of the plan's content (default 1). Raise it when the windows or the fallback change: a saved assignment follows a higher version, and refuses changed content of the same version. min 1 max 4294967295 | |
was |
string | The block name this plan had before a rename: saved assignments still find it. min length 1 | |
windows |
array of routineWindow | The windows of the day. max items 64 |
routineFallback
The task for a minute no window covers, and after a sleep the game does not allow now (default vanilla). A task that always can: vanilla, idle or roam.
| Key | Type | Required | Notes |
|---|---|---|---|
kind |
"vanilla" | "idle" | "roam" |
yes |
routineTask
One of the game's own villager tasks. It takes no values in this version: how long an idle lasts and how far a roam goes are the villager's own.
| Key | Type | Required | Notes |
|---|---|---|---|
kind |
"vanilla" | "idle" | "roam" | "sleep" | "sit" | "inspect" |
yes | vanilla: the game's own choice. idle: stand. roam: walk around home. sleep: go to the assigned bed, when the game lets this villager sleep now (else the fallback runs). sit: find a seat. inspect: find something to look at or work on. |
routineWindow
One window: from startMinute up to, not including, endMinute, in minutes of the game day (0 is midnight). A start after the end runs over midnight. Equal start and end is refused, except 0 and 0 with allDay.
| Key | Type | Required | Notes |
|---|---|---|---|
allDay |
boolean | The whole day; then startMinute and endMinute are 0 or left out. | |
endMinute |
integer | The first minute after the window (default 0; midnight is 0). min 0 max 1439 | |
priority |
integer | Among the windows that cover a minute the highest wins (default 0). min -2147483648 max 2147483647 | |
startMinute |
integer | The first minute of the window (default 0). min 0 max 1439 | |
task |
routineTask | yes |
rule
On a trigger, every so often, when its conditions hold, do something.
| Key | Type | Required | Notes |
|---|---|---|---|
chance |
number | 0..1. min 0 max 1 | |
cooldown |
number | Seconds. min 0 | |
do |
array of action | yes | min items 1 |
every |
number | Seconds. max 3600 | |
name |
string | ||
on |
"onUpdate" | "onEnter" | "onExit" | "onStartAttack" | "onEndAttack" | "onEnterState" | "onExitState" | "OnUpdate" | "OnEnter" | "OnExit" | "OnStartAttack" | "OnEndAttack" | "OnEnterState" | "OnExitState" |
||
when |
array of condition |
screenColor
"#rrggbb", or { "color": "#rrggbb", "amount": 0.5 }.
Type: string or object
screenEffect
A full-screen effect. Every field left out changes nothing. Graded in linear light: exposure and temperature, contrast, saturation, gamma, tint, vignette, fill; then mixed in by strength and the fades. Drawn over the frame the game presents, so over the game's UI too.
| Key | Type | Required | Notes |
|---|---|---|---|
contrast |
number | Around mid grey. Default 1. min 0.05 max 4 | |
exposure |
number | Stops: 1 is twice as bright. Default 0. min -8 max 8 | |
fadeIn |
number | Seconds to reach full. Default 0. min 0 max 60 | |
fadeOut |
number | Seconds to fade once it ends or is stopped. Default 0. min 0 max 60 | |
fill |
screenColor | The whole picture goes to this colour by its amount: a fade to black, or a flash with a fade out. | |
gamma |
number | Above 1 lifts the mid tones. Default 1. min 0.1 max 5 | |
order |
integer | Several playing at once run lower first. | |
range |
number | Metres: when an effect plays it at a place, the players this near see it. Default 30. | |
saturation |
number | 0 is grey. Default 1. min 0 max 4 | |
seconds |
number | Seconds at full. Left out: until stopped; an effect's screen effect needs it. 0 with a fade out is a flash. min 0 max 3600 | |
strength |
number | How much of the whole effect shows. Default 1. min 0 max 1 | |
temperature |
number | -1 cold to 1 warm, keeping brightness. Default 0. min -1 max 1 | |
tint |
screenColor | A colour the picture is multiplied by. | |
vignette |
number or object | Darker or coloured edges: how much (0.6), or { amount, color, radius, softness }. | |
was |
name | The name this block had before a rename. |
screenRef
A screen effect: its name, or one written here.
Type: ref or screenEffect
seat
A seat: the game's sitting. Starts from the game's wooden chair; visual.like names another.
| Key | Type | Required | Notes |
|---|---|---|---|
comfort |
ref or comfort | ||
description |
string | ||
light |
vfx | A VFX on it for as long as it stands: where the game's lamps have their light. | |
loot |
loot | ||
name |
string | yes | min length 1 |
onInteract |
interactionRef | What happens when a player uses it. | |
placement |
ref or placement | ||
provides |
boolean | A recipe elsewhere can ask for it nearby (needsProps). It takes one of the game's 13 free places for crafting props, in every game that has the mod; a prop of code is there from the second start. Needs "clients": "mod". | |
recipe |
recipe | How the item that places it is made. | |
sits |
spot | Where the player sits. Default: the starter's spot. | |
tweak |
tweak | ||
tweakPlaced |
tweak | The same, set on the template it places (templates section paths). | |
visual |
visualRef | Its look: like (a game item that places something: model, collision and how it places), or model (item: |
|
was |
name |
sound
A sound of the mod's own: one or more clips (each play picks one), how loud and how far it carries.
| Key | Type | Required | Notes |
|---|---|---|---|
clips |
array of string | yes | Audio files in the mod's folder: WAV, FLAC, Ogg Vorbis, MP3. Mono for a sound with a range. min items 1 |
comment |
string | ||
loop |
boolean | It plays until stopped: a station's running sound, an ambience. | |
normalize |
number | The sources' active RMS in dBFS, as the cook sets it (the game's effects: about -23). max 0 | |
pitchRandomness |
number | How much each play's pitch varies. min 0 max 1 | |
range |
array of number | [min, max] metres: full volume within min, silent beyond max. Without: heard alike everywhere (UI, music). min items 2 max items 2 | |
scene |
"Sfx" | "Music" | "Ui" | "Voice" |
The player's volume slider it follows. | |
volume |
number | The cue's volume. Default 1. min 0 max 1 |
spell
| Key | Type | Required | Notes |
|---|---|---|---|
cast |
cast | yes | |
delivery |
delivery | yes | |
description |
string | ||
level |
integer | min 1 max 55 | |
maxCharges |
integer | Charges in one stack (default 500). min 1 max 65535 | |
name |
string | yes | min length 1 |
onCast |
effects | On the caster, the moment it leaves the staff. | |
recipe |
recipe | ||
tweak |
tweak | ||
was |
name |
spot
Where the player sits or lies: metres from the thing's origin in its own axes, and which way they face, in degrees.
| Key | Type | Required | Notes |
|---|---|---|---|
at |
array of number | min items 3 max items 3 | |
facing |
number |
state
One of the game's player states or actions, by Kiln's name or the game's own (Gliding, HangGliding, ActionPrimary, Sitting, ...): docs/kiln/modding/player-states.md. A trigger also takes eating and eaten. min length 1
Type: string
states
min items 1
Type: array of state
station
A station a player builds: a prop that makes things. With processing it works on its own, over time, from its own inventory, like a forge; without, a player crafts at it at once, like a workbench.
| Key | Type | Required | Notes |
|---|---|---|---|
comfort |
ref or comfort | ||
description |
string | ||
kind |
"workbench" | "carpenter" | "kitchen" | "forge" | "oven" | "alchemy" | "drying-rack" | "charcoal-kiln" | "kiln" | "smelter" | "fireplace" | "grinder" | "tannery" | "table-saw" |
The game's station it starts from: model, collision, sound and the menu it opens. Default: drying-rack with processing, else workbench. | |
light |
vfx | A VFX on it for as long as it stands: where the game's lamps have their light. | |
loot |
loot | ||
menu |
ref or menu | ||
name |
string | yes | min length 1 |
onInteract |
interactionRef | What happens when a player uses it. | |
ownWorkshop |
boolean | A workshop of its own, which decides which recipes it runs. Default: yes for a kind that works on its own, with processing or recipes. | |
placement |
ref or placement | ||
processing |
ref or processing | ||
provides |
boolean | A recipe elsewhere can ask for it nearby (needsProps). It takes one of the game's 13 free places for crafting props, in every game that has the mod; a prop of code is there from the second start. Needs "clients": "mod". | |
recipe |
recipe | How the item that places it is made. | |
recipes |
array of recipe | What it makes, each with output. | |
tweak |
tweak | ||
tweakPlaced |
tweak | The same, set on the template it places (templates section paths). | |
visual |
visualRef | Its look: like (a game item that places something: model, collision and how it places), or model (item: |
|
was |
name |
stationMenuSet
A set of recipes in a tab.
| Key | Type | Required | Notes |
|---|---|---|---|
heading |
uiText | The heading over the set; none on a tab's first set. | |
key |
menuKey | yes | Unique in its tab. |
recipes |
array of string | yes | The recipes it lists, in this order, by their menuKey: "key" for the station's mod, "other-mod:key" for another's. Each one once in the menu, at most 512 in a tab. max items 512 |
stationMenuTab
A tab of a station's menu: its name, the icon it borrows, and its sets of recipes.
| Key | Type | Required | Notes |
|---|---|---|---|
iconFromTab |
integer | The icon of the n-th tab (0 the first) of the menu the station is like, as the game shipped it. -1 (the default): the first. min -1 max 14 | |
key |
menuKey | yes | Unique in the menu; the tab's id follows from it, so keep it. |
name |
uiText | yes | What the tab says. A language map: at most 35 languages, each text 1 to 4096 bytes. |
sets |
array of stationMenuSet | yes | Its sets of recipes. The first has no heading: the tab's name heads it. max items 28 |
status
A buff or debuff, shown in the game's buff bar. It lasts its seconds, or while a player is in a state.
| Key | Type | Required | Notes |
|---|---|---|---|
description |
string | ||
icon |
string | The icon, when it is not the look's: a game status by its id, whose icon it takes, or a PNG in the mod's folder (square, 256x256 as the game's; then clients "mod"). | |
kind |
"debuff" | "buff" |
||
look |
"frost" | "poison" | "fire" |
Its icon and body effect. Default: a timer's icon for a debuff, a blessing's for a buff, and no body effect. | |
modifies |
object | Stats changed for as long as it runs. Whole-number stats take whole numbers; the rest are shares, 0.1 being 10%. A GUID names any other attribute (as a share). | |
name |
string | yes | min length 1 |
onApply |
effects | ||
onExpire |
effects | ||
onTick |
effects | ||
refreshes |
boolean | Applied again while it runs: the timer starts over (true, the default), or the new one replaces the old. | |
screen |
screenRef | A full-screen effect on the screen of the player who has it, while they have it. | |
seconds |
number | How long it lasts unless whoever applies it says otherwise. Not needed with while. min 0 | |
tickEvery |
number | Seconds between onTick (default 1). | |
tweak |
tweak | ||
vfx |
vfx | ||
was |
name | The name this block had before a rename. Ids come from the oldest name, so saves keep it. | |
while |
state | A player has it for as long as they are in this state. |
statusRef
strength
What it takes to dig a material. Cost per block = health / (the tool's damage for this hardness x the server's mining factor x the class modifier). A field left out stays what it was.
| Key | Type | Required | Notes |
|---|---|---|---|
breaks |
"none" | "wood" | "stone" | "metal" |
The tool's class modifier that applies. none: 1.0, whatever the tool. | |
drops |
string | The loot item: a game item's name or a GUID, or on a new material "block": its own block item. A new material that doesn't say gives back its recipe's first input at the recipe's ratio, as the game's blocks do. | |
hardness |
"soft" | "slightlyHard" | "moderatelyHard" | "hard" | "veryHard" | "unbreakable" |
The damage column a tool or an explosion uses. Unbreakable takes no damage from anything, and can't be dismantled. | |
health |
integer | Health points of a block. Rough Stone is 250, an Iron Block 2000. min 1 max 1000000 | |
itemsPerBlocks |
integer | How many blocks dug give one loot item. min 1 max 100000 |
strengthRef
A strength, inline or by name.
Type: string or strength
surface
What it sits on: floor, wall, ceiling, or several ("wall, ceiling"): the first is tried first. Pattern ^(floor\|wall\|ceiling)(, ?(floor\|wall\|ceiling))*$.
Type: string
surfaceColor
#rrggbb, sRGB. Pattern ^#[0-9a-fA-F]{6}$.
Type: string
surfaceLayer
One layer of a surface: maps of your own, a game material's layer ("game", "layer") with maps of yours on top, or the name of another layer of this surface.
Type: surfacePart or object
surfacePart
Type: "side" | "top" | "bottom" | "edge" | "edgeTop" | "noise"
surfacePng
A PNG in the mod's folder, a power of two on both sides, 4 to 4096. Pattern ^[^/\\].*\.[pP][nN][gG]$. A file that must exist.
Type: string
surfaceValue
A PNG (its red channel) or a value 0 to 1.
Type: surfacePng or number
talent
A node: in the game's own tree with game, or in a talent tree. It works for as long as a character has it.
| Key | Type | Required | Notes |
|---|---|---|---|
characterLevel |
integer | In a tree: the character level needed. min 0 | |
column |
integer | min 0 max 31 | |
cost |
integer | Points per level (default 1). min 0 | |
description |
string | Default: what modifies says. | |
game |
object | A place in the game's own tree: its screen draws it, its skill points pay for it. | |
icon |
string | A PNG in the mod's folder. Pattern \.[pP][nN][gG]$. |
|
keeps |
statusRef | A status they have for as long as they have the talent. | |
maxLevel |
integer | Levels (default 1). The game's tree keeps at most 7. min 1 max 99 | |
modifies |
modifies | Stats changed, per level. | |
name |
string | yes | min length 1 |
onHit |
hits | ||
onHitTaken |
hits | ||
onKill |
hits | ||
onStart |
effects | On them when it starts to work: at the unlock and at each join. | |
pointsSpent |
integer | In a tree: points spent in it first. min 0 | |
requireAll |
boolean | In a tree: all of requires, not any one. | |
requires |
array of string | In a tree: its node names. In the game's tree: talents of this mod by name, or game nodes by 0x id. | |
row |
integer | min 0 max 31 | |
texts |
texts | ||
unlocks |
ref | An ability only those with this talent can cast. | |
was |
name |
talentTree
A whole tree on Kiln's screen in the game's look. Kiln keeps each character's unlocks with the character.
| Key | Type | Required | Notes |
|---|---|---|---|
description |
string | ||
key |
string | min length 1 | |
menu |
string | Its pause-menu entry. Default: name. min length 1 | |
name |
string | yes | min length 1 |
nodes |
object | yes | Node name -> a talent, inline or by name. Keep the names: saves hold them. |
points |
object | Where its points come from (default 1, and 1 more per character level). | |
respec |
boolean | Everything can be given back for free (default). | |
was |
name |
taming
A taming: its creatures, its steps (the last one tames), how close, the timeouts, the refund policy and the pet a tame makes.
| Key | Type | Required | Notes |
|---|---|---|---|
comment |
string | ||
creatures |
array of string or creature | yes | Each named as a pet's creature is: a game creature by its creatures registry id (game:enemy_wildbeast_wolf_earlygame; a trailing * matches a prefix of game ids), a creature block of this mod (by name) or of another ("other-mod:name"), or one written here. 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). min 0 max 86400 | |
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 |
ref or pet | The pet a tame makes: a pet block of this mod (by name) or of another ("other-mod:name"), or one written here. None: no pet. | |
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 (default nonRefundable). | |
removeTarget |
boolean | With a pet: the tamed wild body is removed (default true). | |
requireThresholdUntilCommit |
boolean | The latest weaken threshold holds until the tame (default true). | |
steps |
array of tamingStep | yes | The steps, in order. min items 1 max items 64 |
summonPet |
boolean | With a pet: the new pet is summoned at once (default true). | |
was |
string | The name before a rename: the id comes from the oldest name. Pattern ^[A-Za-z0-9_.-]+$. |
tamingStep
One step: feed (item, count), weaken (maxHealthFraction), tool (item, wear, allowBreak) or native (steps).
| Key | Type | Required | Notes |
|---|---|---|---|
allowBreak |
boolean | tool: the use may break the tool (default false). | |
count |
integer | feed: how many of a plain stack item (default 1). min 1 max 999 | |
item |
itemRef | ||
kind |
"feed" | "weaken" | "tool" | "native" |
yes | |
maxHealthFraction |
number | weaken: the target's health is at most this share of its maximum. max 1 | |
steps |
integer | native: how many of the game's own steps (default 1). min 1 max 255 | |
wear |
integer | tool: durability one use takes off the selected gear item (default 1). min 0 max 32767 |
terrainBrush
| Key | Type | Required | Notes |
|---|---|---|---|
description |
string | max length 16384 | |
identity |
identity | ||
name |
string | yes | min length 1 max length 1024 |
radius |
number | yes | min 0.25 max 8 |
shape |
"sphere" |
||
was |
name |
terrainMaterial
A new terrain material: it starts from a game terrain material and looks like one.
| Key | Type | Required | Notes |
|---|---|---|---|
comment |
string | ||
description |
string | ||
flatten |
boolean | The game's flatten tool works on it. Default: like's. | |
icon |
string | The item's picture: a PNG in the mod's folder, or item: |
|
like |
string | The game terrain material it starts from: a GameMaterials Terrain name or Cell<1..127>. Its strength, loot, sounds, friction and buffs come along. Default TerrainStone. min length 1 | |
look |
string | The game terrain material whose look it takes. Default: like's. min length 1 | |
name |
string | yes | What players read: its item's name when it's placeable. min length 1 |
placeable |
boolean | It has an item the game's terrain shapes place, and digging gives it back. Default false: only found and dug, as the game's ores. | |
recipe |
recipe | How its item is made; needs placeable. | |
sliding |
boolean | Feet slide on it, as on ice. Default: like's. | |
strength |
strengthRef | ||
was |
string | The block's old name, after a rename: the material's id comes from it, so its cells stay in every world. |
terrainToolAction
| Key | Type | Required | Notes |
|---|---|---|---|
mode |
"remove" | "add" |
yes | |
removeMaterials |
array of integer | ||
terrainOnly |
true |
texts
Texts per language (en, de, pt-BR, ...).
Type: object
tool
What a tool does: what it is for, and how well. Each class takes the fields it has a number for.
| Key | Type | Required | Notes |
|---|---|---|---|
breaksInto |
itemRef | What it becomes when its durability runs out: a game item or an item of this mod. A torch, or a tool with enhancement slots. | |
durability |
number | Seconds a torch burns while held, the tooltip's Duration (600). Only a torch. max 2147483647 | |
fishing |
object | A fishing rod's pull and stamina. | |
harvests |
"wood" | "stone" | "rake" | "sieve" | "glider" | "grappling-hook" | "fishing-rod" | "torch" |
yes | wood: an axe. stone: a pickaxe, for stone and metal, and it digs. rake: flattens the ground. sieve: the mining sieve. glider, grappling-hook, fishing-rod, torch: the game's. |
power |
integer | How hard it bites: an axe's wood damage, a pickaxe's or a sieve's stone damage (the rest scales along), a rake's flattening strength (the game's: 500, 1000). | |
range |
number | Metres: how far a rake flattens around where it aims (3), how far a grappling hook reaches (13.5). max 32 | |
staminaCost |
integer | Stamina each use costs; the tooltip follows. Not for a fishing rod or a torch. min 0 | |
wearPerDebit |
integer | What each of the game's wear debits costs the tool's durability (1: the game's own; 0: it does not wear). Per debit, not per swing. A tool with enhancement slots (an axe, a pickaxe, a sieve). Set where the world runs. Needs items.tool_wear_debit. min 0 max 32767 |
toolMaterialPool
| Key | Type | Required | Notes |
|---|---|---|---|
entries |
array of object | yes | min items 1 max items 64 |
name |
string | yes | min length 1 max length 1024 |
was |
name |
trigger
A state entered, an action started, or a consumable eaten, driving effects on the player. Runs on the server world.
| Key | Type | Required | Notes |
|---|---|---|---|
cooldown |
number | Seconds, per player. min 0 | |
do |
effects | ||
item |
itemRef | Only with this item: what an action uses, what is eaten, or for a state what is in hand or worn. | |
on |
state | yes | |
onEnd |
effects | When they leave the state. A state only. | |
stop |
boolean | Stops the action, or the eating. | |
unless |
states | Not while the player is in any of these. | |
was |
name | ||
when |
states | Only while the player is in one of these. |
tweak
Game fields this block does not cover, by the path a data pack writes, set on what it makes. They win over what the block sets.
Type: object
uiAction
What a button or a key does: exactly one of command, toggle, set, castAbility, applyEffect, openWindow, closeWindow, toggleWindow, toast (a command may add commandTarget). Runs on the player's game, never on a dedicated server.
| Key | Type | Required | Notes |
|---|---|---|---|
applyEffect |
effectRef | Applies an effect to the player, through a hidden ability named ui-apply. |
|
castAbility |
ref | Asks the server to cast an ability of this mod (or "other-mod:name"), as its key would. The server needs the mod. | |
closeWindow |
ref | Closes a window block. | |
command |
string | A command line of this game's command registry, as the console runs it: as the host's own character when this game hosts the world, else as the console. It does not reach a server this game joined, unless commandTarget is server. min length 1 max length 256 | |
commandTarget |
"local" | "server" |
Where the command runs: local (the default) as above, or server: on the server this game joined (or hosts), as this game's player there, with that player's rights. Only with command. A server without Kiln's kiln:ui-command runs nothing (a toast says so). | |
openWindow |
ref | Opens a window block of this mod (or "other-mod:name"). | |
set |
uiSet | ||
toast |
uiText | A short message in the corner of the screen. | |
toggle |
uiBind | Flips a true/false config entry. | |
toggleWindow |
ref | Opens a window block when it is closed, closes it when it is open (since 0.2.0-dev.31). A key fires while a mod's window has the input (not while its text field has the keyboard), so it also closes the window; whileCapturing only adds firing over the Kiln menu. |
uiBind
A value: state.
Type: string
uiColor
#rrggbb, #rrggbbaa, or white, black, gray, red, green, yellow, orange, cyan.
Type: string
uiColumn
| Key | Type | Required | Notes |
|---|---|---|---|
cell |
uiText | yes | A template over the row's fields: {row. |
id |
string | yes | The row's id, unique in the window (nested rows included). Pattern ^[a-z][a-z0-9_-]{0,63}$. |
label |
uiText | yes |
uiField
| Key | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | The row's id, unique in the window (nested rows included). Pattern ^[a-z][a-z0-9_-]{0,63}$. |
type |
"bool" | "int64" | "uInt64" | "decimal" | "float64" | "string" |
yes |
uiMenu
An entry in the game's pause menu and/or main menu that opens the window.
| Key | Type | Required | Notes |
|---|---|---|---|
in |
"pause" | "main" | "both" |
Default pause. | |
order |
integer | Lower first. Kiln's own Mods entry has 1000. | |
text |
uiText | yes |
uiRow
One line of a window. "type" says which: text, value, toggle, slider, choice, separator, button, and (since 0.2.0-dev.31) input, table, tabs, tree, image.
Type: uiRowText or uiRowValue or uiRowToggle or uiRowSlider or uiRowChoice or uiRowSeparator or uiRowButton or uiRowInput or uiRowTable or uiRowTabs or uiRowTree or uiRowImage
uiRowButton
A button that runs an action.
| Key | Type | Required | Notes |
|---|---|---|---|
does |
uiAction | yes | |
label |
uiText | yes | |
sameLine |
boolean | On the same line as the row before it. | |
tooltip |
uiText | Shown while the pointer rests on the row's widget. May show values like a text row does. | |
type |
"button" |
yes | |
when |
uiWhen |
uiRowChoice
A drop-down on an enum config entry, with its options.
| Key | Type | Required | Notes |
|---|---|---|---|
bind |
uiBind | yes | |
label |
uiText | yes | |
sameLine |
boolean | On the same line as the row before it. | |
tooltip |
uiText | Shown while the pointer rests on the row's widget. May show values like a text row does. | |
type |
"choice" |
yes | |
when |
uiWhen |
uiRowImage
A PNG of the mod's folder (since 0.2.0-dev.31): at most 8 MiB and 2048 x 2048; 8 pictures and 32 MiB of pixels per mod.
| Key | Type | Required | Notes |
|---|---|---|---|
asset |
string | yes | A relative path in the mod's folder, no "..". A file that must exist. |
does |
uiAction | ||
height |
number | min 0 max 4096 | |
id |
string | yes | The row's id, unique in the window (nested rows included); not r followed by digits (an older row's place). Pattern ^(?!r[0-9]+$)[a-z][a-z0-9_-]{0,63}$. |
sameLine |
boolean | On the same line as the row before it. | |
tooltip |
uiText | Shown while the pointer rests on the row's widget. May show values like a text row does. | |
type |
"image" |
yes | |
when |
uiWhen | ||
width |
number | min 0 max 4096 |
uiRowInput
A text field (since 0.2.0-dev.31) on a text config entry or a string state entry: a draft until Enter (or, with commit blur, leaving the field) writes it; Escape puts the old text back. Only in an interactive window or a screen.
| Key | Type | Required | Notes |
|---|---|---|---|
bind |
uiBind | yes | |
commit |
"blur" | "enter" |
blur (default): Enter or leaving the field writes it. enter: only Enter. | |
id |
string | yes | The row's id, unique in the window (nested rows included); not r followed by digits (an older row's place). Pattern ^(?!r[0-9]+$)[a-z][a-z0-9_-]{0,63}$. |
label |
uiText | yes | |
maxBytes |
integer | At most this many UTF-8 bytes. Default 256. min 2 max 4096 | |
multiline |
boolean | Several lines; Enter is a new line (commit blur). | |
sameLine |
boolean | On the same line as the row before it. | |
secret |
boolean | A masked field (mod API 0.2.30): only on a string state entry (state is never saved), never with multiline. A Kiln that cannot mask refuses the row at load. | |
tooltip |
uiText | Shown while the pointer rests on the row's widget. May show values like a text row does. | |
type |
"input" |
yes | |
when |
uiWhen |
uiRowSeparator
A line, with a heading when it has text.
| Key | Type | Required | Notes |
|---|---|---|---|
sameLine |
boolean | On the same line as the row before it. | |
text |
uiText | ||
tooltip |
uiText | Shown while the pointer rests on the row's widget. May show values like a text row does. | |
type |
"separator" |
yes | |
when |
uiWhen |
uiRowSlider
A slider on a whole-number or decimal config entry. A drag writes the config once it rests for a moment.
| Key | Type | Required | Notes |
|---|---|---|---|
bind |
uiBind | yes | |
label |
uiText | yes | |
max |
number | ||
min |
number | Default: the entry's own range, which it must have when min and max are left out. | |
sameLine |
boolean | On the same line as the row before it. | |
tooltip |
uiText | Shown while the pointer rests on the row's widget. May show values like a text row does. | |
type |
"slider" |
yes | |
when |
uiWhen |
uiRowTable
A table (since 0.2.0-dev.31) of world.local.inventory or a mod's own rows source (mod.
| Key | Type | Required | Notes |
|---|---|---|---|
columns |
array of uiColumn | yes | min items 1 max items 16 |
id |
string | yes | The row's id, unique in the window (nested rows included); not r followed by digits (an older row's place). Pattern ^(?!r[0-9]+$)[a-z][a-z0-9_-]{0,63}$. |
items |
string | yes | Pattern ^(world\.local\.inventory\|mod\.[a-z][a-z0-9_-]{0,63})$. |
maxRows |
integer | Default 128; a source with more shows a notice. min 1 max 512 | |
sameLine |
boolean | On the same line as the row before it. | |
selected |
string | A string state entry that holds the selected row's key. Pattern ^state\.[a-z][a-z0-9_-]{0,63}$. |
|
tooltip |
uiText | Shown while the pointer rests on the row's widget. May show values like a text row does. | |
type |
"table" |
yes | |
when |
uiWhen |
uiRowTabs
Tabs (since 0.2.0-dev.31), each with its own rows.
| Key | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | The row's id, unique in the window (nested rows included); not r followed by digits (an older row's place). Pattern ^(?!r[0-9]+$)[a-z][a-z0-9_-]{0,63}$. |
sameLine |
boolean | On the same line as the row before it. | |
selected |
string | A string state entry that holds the selected tab's id. Pattern ^state\.[a-z][a-z0-9_-]{0,63}$. |
|
tabs |
array of uiTab | yes | min items 1 max items 16 |
tooltip |
uiText | Shown while the pointer rests on the row's widget. May show values like a text row does. | |
type |
"tabs" |
yes | |
when |
uiWhen |
uiRowText
A line of text. {game.fps:0} and {config.clock.scale:0.00} in it show a value (refreshed at the window's pace); {{ and }} are braces.
| Key | Type | Required | Notes |
|---|---|---|---|
color |
uiColor | ||
sameLine |
boolean | On the same line as the row before it. | |
text |
uiText | yes | |
tooltip |
uiText | Shown while the pointer rests on the row's widget. May show values like a text row does. | |
type |
"text" |
yes | |
when |
uiWhen | ||
wrap |
boolean | Break long text at the window's edge. The overlay's wrapped text has no colour: not with color. |
uiRowToggle
A checkbox on a true/false config entry. A click writes the config.
| Key | Type | Required | Notes |
|---|---|---|---|
bind |
uiBind | yes | |
label |
uiText | yes | |
sameLine |
boolean | On the same line as the row before it. | |
tooltip |
uiText | Shown while the pointer rests on the row's widget. May show values like a text row does. | |
type |
"toggle" |
yes | |
when |
uiWhen |
uiRowTree
A tree (since 0.2.0-dev.31): a mod's own tree source (nodes) or one written here (roots).
| Key | Type | Required | Notes |
|---|---|---|---|
expanded |
string | A stringSet state entry that holds the open branches. Pattern ^state\.[a-z][a-z0-9_-]{0,63}$. |
|
fields |
array of uiField | max items 16 | |
id |
string | yes | The row's id, unique in the window (nested rows included); not r followed by digits (an older row's place). Pattern ^(?!r[0-9]+$)[a-z][a-z0-9_-]{0,63}$. |
nodeRows |
array of uiRowText or uiRowValue | max items 8 | |
nodes |
string | Pattern ^mod\.[a-z][a-z0-9_-]{0,63}$. |
|
roots |
array of uiTreeNode | min items 1 | |
sameLine |
boolean | On the same line as the row before it. | |
selected |
string | A string state entry that holds the selected node's key. Pattern ^state\.[a-z][a-z0-9_-]{0,63}$. |
|
tooltip |
uiText | Shown while the pointer rests on the row's widget. May show values like a text row does. | |
type |
"tree" |
yes | |
when |
uiWhen |
uiRowValue
A label and a value that cannot be edited here: Label: value.
| Key | Type | Required | Notes |
|---|---|---|---|
bind |
uiBind | yes | |
format |
string | How a number shows ("0", "0.00", "#,##0") or a true/false ("yes|no"). min length 1 | |
label |
uiText | yes | |
sameLine |
boolean | On the same line as the row before it. | |
tooltip |
uiText | Shown while the pointer rests on the row's widget. May show values like a text row does. | |
type |
"value" |
yes | |
when |
uiWhen |
uiScalar
A field value: true/false, a number (whole numbers read exactly), or a string (also for an int64 or decimal field, written exactly).
Type: boolean or number or string
uiSet
A config entry and the value to give it: true or false, a number in its range, or an option of an enum.
| Key | Type | Required | Notes |
|---|---|---|---|
bind |
uiBind | yes | |
to |
boolean | number | string | yes |
uiStateDefinition
A window's state entry (since 0.2.0-dev.31). int64 and decimal numbers are strings ("12", "1.5").
Type: object
uiTab
| Key | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | The row's id, unique in the window (nested rows included). Pattern ^[a-z][a-z0-9_-]{0,63}$. |
label |
uiText | yes | |
rows |
array of uiRow | yes | min items 1 |
when |
uiWhen |
uiText
A text: plain, or one per language ({ "en": "Save", "de": "Speichern" }, "" for every other language). The game's language picks it: the exact key ("pt-br"), the primary language ("pt"), then "en", then "".
Type: string or object
uiTreeNode
| Key | Type | Required | Notes |
|---|---|---|---|
children |
array of uiTreeNode | ||
key |
string | yes | Pattern ^[A-Za-z0-9._:-]{1,128}$. |
label |
uiText | yes | |
values |
object |
uiWhen
Shown only while this is true: a name (game.inGame, config.clock.show: true, not 0, not empty), !name, or name == value with == != < <= > >=, joined with &&. Examples: "game.inGame", "!game.inGame", "game.screen == InGame", "game.fps < 30 && config.hud.on". min length 1
Type: string
upgradeAction
A rarity upgrade as what a use does (UpgradeAction): one step of a rarity upgrade rule, paid by the player, on the server.
| Key | Type | Required | Notes |
|---|---|---|---|
range |
number | How far from it, in metres, a player may stand when they pick an item in the choose window (default 6). min 1 max 64 | |
rule |
string | yes | The rarity upgrade it runs: a rarityUpgrades block of this mod by name, or "other-mod:name". min length 1 Pattern \S. |
target |
"held" | "choose" |
held (default): the item in the player's hand, for every player; choose: a window lists the player's gear with each next step's cost and chance (Kiln players; others get held). |
upgradeStep
One step of a rarity upgrade: what reaching its rarity costs and how likely it is.
| Key | Type | Required | Notes |
|---|---|---|---|
chance |
number | How likely the step is to succeed (default 1). The server rolls it. min 0 max 1 | |
cost |
object | The items it costs, by name (as in items; plain items such as materials, never gear or a gem), each 1 to 100000. Left out: free. | |
levelScale |
number | The cost grows with the item's level: count x (1 + levelScale x (level - 1)), rounded up (default 0). min 0 max 1000 | |
onFail |
"keepItemLoseCost" | "keepItemKeepCost" | "downgrade" |
What a failed roll costs (default keepItemLoseCost: the item stays, the cost is spent; downgrade: the cost is spent and the item drops one rarity). | |
unlock |
boolean | The new enhancement slot comes unlocked (one level, one more perk acting) instead of waiting for the workbench (default false). |
vfx
A VFX and where it shows: a VFX block of this mod by name, "other-mod:name", or "game:
Type: ref or object
villagerCombat
One villager combat block: the villagers, the move sets their graph gets, the brain they fight with.
| Key | Type | Required | Notes |
|---|---|---|---|
brain |
"companion" | "vukah" | "scavenger" | "heavy" |
The tuning premade (AIs.*) of his enemy brain. Default "companion". | |
format |
1 |
||
styles |
array of "unarmed" | "swordAndShield" | "greatsword" | "hammer" | "dualDaggers" |
The player's melee move sets his graph gets. Default ["swordAndShield"]. min items 1 | |
villagers |
array of string | yes | Creatures registry ids: "game:" and the template's name in lower case (game:townsfolk_male_villager_01_gunthergaleforth). This build takes the 39 villagers on the player's skeleton. min items 1 |
visual
What an item looks like. Empty: its starter's look.
| Key | Type | Required | Notes |
|---|---|---|---|
animated |
animatedModel | ||
dropped |
itemRef | An item whose model this shows lying on the ground. | |
icon |
string | The icon alone: item: |
|
like |
itemRef | An item whose whole look this takes: held or worn model, dropped model, collection model and icon. | |
model |
string | The model alone: item: |
|
tint |
string | The colour of the parts the game lets you tint. Pattern ^#[0-9a-fA-F]{6}$. |
|
vfx |
vfx | A VFX on the thing itself while it is there: in the hand while held (right hand, at the grip, by default), or on what stands there for a placed thing. |
visualRef
A look: inline, or a block of looks by name.
wand
| Key | Type | Required | Notes |
|---|---|---|---|
class |
weaponClassRef | ||
description |
string | ||
heavy |
wandAttack | Default: the primary again. Its damage is exactly what it says. | |
loot |
loot | ||
name |
string | yes | min length 1 |
onHit |
hits | ||
onKill |
hits | ||
perks |
perks | ||
primary |
wandAttack | yes | Its main damage is the wand's power: the tooltip's number, and what perks and stats scale. |
recipe |
recipe | ||
source |
string | Where to get it, in the tooltip. Not given: nothing. | |
special |
wandAttack | Once a player has the game's skill for it. Default: the primary again. Its damage is exactly what it says. | |
stats |
weaponStatsRef | ||
tweak |
tweak | ||
visual |
visualRef | ||
was |
name |
wandAttack
One of a wand's attacks: how it is cast and what it sends.
| Key | Type | Required | Notes |
|---|---|---|---|
cast |
cast | yes | The mana it costs and when it leaves the wand. animation is a staff's: a wand's motion is moves. |
delivery |
delivery | yes | |
moves |
"bolt" | "heavy" | "special" or object |
The motion. Default: the attack slot's own. An object changes it: like (a premade; default the slot's own), animation, hitAt (the release, as cast.releaseAt). | |
onCast |
effects | On the caster, the moment it leaves the staff. |
weapon
| Key | Type | Required | Notes |
|---|---|---|---|
class |
weaponClassRef | yes | |
description |
string | ||
loot |
loot | ||
moves |
weaponMoves | ||
name |
string | yes | min length 1 |
onHit |
hits | What every hit the wielder lands does to the target, while it is in hand, with no unlock. | |
onKill |
hits | What a hit that kills does to what it killed, while it is in hand. | |
perks |
perks | ||
recipe |
recipe | ||
source |
string | Where to get it, in the tooltip. Not given: nothing. | |
stats |
weaponStatsRef | ||
tweak |
tweak | ||
visual |
visualRef | ||
was |
name |
weaponClass
Your own class of weapon. It brings its look, stats and perks to the weapons of the class.
| Key | Type | Required | Notes |
|---|---|---|---|
like |
"sword" | "axe" | "mace" | "greatsword" | "greataxe" | "hammer" | "daggers" | "bow" | "staff" | "shield" | "wand" |
yes | The premade it starts from. |
perks |
perks | ||
stats |
weaponStatsRef | ||
visual |
visualRef |
weaponClassRef
How it is held and swung: a premade, a block of weaponClasses by name, or your own.
Type: "sword" | "axe" | "mace" | "greatsword" | "greataxe" | "hammer" | "daggers" | "bow" | "staff" | "shield" | "wand" or ref or weaponClass
weaponMoves
What its attack slots play, slot by slot; a slot left out keeps its class's. A slot the class does not have is refused.
| Key | Type | Required | Notes |
|---|---|---|---|
block |
move | No hitAt: a block lands no blow. | |
dodgeAttack |
move | ||
execution |
move | ||
heavy |
moveChain | The heavy attack on the ground: one move or a chain. | |
heavyAir |
move | The heavy attack in the air. Default: primary's first link when primary is given. | |
jumpAttack |
move | ||
parry |
move | No hitAt: a parry lands no blow. | |
plungeAttack |
move | ||
primary |
moveChain | The light attack on the ground: one move, or a chain whose links hand over in turn. | |
sneakAttack |
move | ||
special |
move |
weaponStats
A weapon's numbers: the tooltip's, made exactly so.
| Key | Type | Required | Notes |
|---|---|---|---|
block |
number | A shield's block strength. min 0 max 1 | |
damage |
damage | The kinds it deals: the shares of the kinds that hurt count; wood, stone and metal are exact. | |
level |
level | ||
power |
integer | The tooltip's damage at that level. Default: what the class has, or damage's total. min 0 | |
rarity |
rarity | ||
staminaCost |
integer | Stamina each use costs; the tooltip follows. min 0 |
weaponStatsRef
Type: ref or weaponStats
window
A window or a screen of rows: text, values, buttons, toggles, sliders, choices and separators. Drawn by each player's game from the mod's own file, so the mod needs "clients": "mod"; on a dedicated server it is checked and kept, and nothing is drawn. What it shows refreshes every "refresh" seconds, not every frame; a closed window costs nothing.
| Key | Type | Required | Notes |
|---|---|---|---|
alpha |
number | A window: how opaque the background is. min 0 max 1 | |
autoResize |
boolean | A window: it grows and shrinks with its rows. | |
comment |
string | ||
dim |
boolean | A screen: darken the game behind it (default true). | |
height |
number | Pixels at UI scale 1. 0: a window fits its rows, a screen is 520 high. min 0 max 4096 | |
interactive |
boolean | A window: false gives a panel the player only looks at (default true). | |
kind |
"window" | "screen" |
window (default): an overlay window the player can drag. screen: a full screen in the game's look, dimming the game, closed by Escape. | |
menu |
uiMenu | ||
openAtStart |
boolean | Open as soon as the game has it. Default: closed until a key, a button or a menu entry opens it. | |
position |
array of number | A window: where its centre is, [x, y] as 0..1 of the screen. min items 2 max items 2 | |
refresh |
number | Seconds between updates of the values and conditions it shows. Default 0.25. min 0.1 max 3600 | |
rows |
array of uiRow | yes | min items 1 max items 200 |
state |
object | The window's own typed state (since 0.2.0-dev.31), bound as state. |
|
title |
uiText | yes | |
titleBar |
boolean | Default true. | |
width |
number | Pixels at UI scale 1. 0: a window fits its rows, a screen is 720 wide. min 0 max 4096 |
wornLook
What something looks like on the body: a model of your own or a game item's, what it hides and how the rest of the character fits around it.
| Key | Type | Required | Notes |
|---|---|---|---|
attach |
string | A rigid model: a mesh with no skin, on this slot or j |
|
female |
wornModel | A second file for a female body, instead of a morph target. | |
fits |
fits | ||
hides |
array of bodyPart | What is not drawn while this is worn. Nothing else is hidden. | |
icon |
string | A PNG in the mod's folder, or item: |
|
like |
itemRef | A game item, or an item of this mod, whose whole look this takes. What else the look says wins. | |
lods |
array of string | Coarser files of model, from the next level on. | |
materials |
object | A glTF material's name, or "*" for every one, to a material block's name or a game material's GUID. One it leaves out becomes a block of its own. | |
model |
wornModel | Skinned on the player's skeleton, or a plain mesh with attach. A morph target named Female is the shape on a female body. | |
pixelSizes |
array of number | When each level shows: one per level, 0 first, rising. | |
variants |
object | Whole models for what the character wears or is: "shield", "female+tight". The most specific that applies is drawn, and model otherwise. |
wornLookRef
A worn look: inline, or a block of wornLooks by name.
wornModel
A .glb or .gltf in the mod's folder, item:
Type: string