Frostdev

KilnAPI reference Guide

Data packs

A mod can change game data with content/*.json, without an entry assembly. The general format and live sections are in kiln.content. Startup values use the file's registry section.

Skill-point rewards

balance.skillPoints.shroudRoot and balance.skillPoints.elixirWell control the two reward families; balance.skillPointsPerLevel controls levels. The knowledge registry also exposes each flag's skillPoints for per-entry control. These are restart fields: they are composed at the registry stage, written into Kiln's served resource copy before world setup, and therefore visible to the game's join check and awards. A recorded recipe's automatic knowledge layer builds on that same copy; it does not discard these edits.

For Shroud Roots 2, Elixir Wells 4, and level-ups 3 (the game defaults are 1/3/2):

{
  "format": 1,
  "registry": {
    "alter": [
      { "registry": "balance", "select": "game:balance", "field": "skillPoints.shroudRoot", "op": 2 },
      { "registry": "balance", "select": "game:balance", "field": "skillPoints.elixirWell", "op": 4 },
      { "registry": "balance", "select": "game:balance", "field": "skillPointsPerLevel", "op": 3 }
    ]
  }
}

This is the complete pack in mods/samples/SkillPointRewards. Its manifest is side: both, clients: mod; install it on the server and each client, then restart both. To edit a particular flag, use its id from the knowledge registry view, game:knowledge_<eight hexadecimal digits>. Entries are enumerated from the running build, not a compiled list. The normal registry numeric operations and load-order composition apply. Families are classified from the game's named knowledge flags, not their current point amounts. A per-entry knowledge.skillPoints edit wins over a family control for that entry even if its pack loads earlier; relative per-entry edits read the family result. Within each band, several packs follow normal registry layering. A family edit that overflows any member is refused atomically.

Each individual reward is 0–255. The game's original knowledge sum wraps at 256; Kiln's players.knowledge_points_wide hook returns the same sum in 32 bits, without altering flag ownership or the per-level formula. If that hook cannot resolve, Kiln logs why the widening is unavailable.

Rewards are recomputed from owned flags, not saved as a separate point balance. Changing them affects existing characters too. Lowering a total below points already spent can fail the join check; another loader's keep-skills patch may keep an over-budget tree instead of resetting it. Back up characters before changing progression rules.

/skillpoints and Progression.GiveSkillPoints unlock whole, unowned reward flags. They report the actual points applied, never a count of flags. If the requested amount cannot be represented, they apply the largest fitting amount; for example, with only two-point rewards left, a request for three applies two, not four.

See the knowledge field reference and balance reference.

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