The knowledge registry
Skill-point rewards attached to the character knowledge flags, including Shroud Roots and Elixir Wells. Values are served before the world loads and the join check runs.
Schema version 0.1.1, experimental (KILNX031: may change in any release until it is marked stable). C# entry type Kiln.Registry.KnowledgeRewardEntry. What registries are, the stages, the conflict rules and how ids are made: README.
Edits per call: 4,096. One OnRegistry callback (one phase of one entry point) or one Registries.Change takes at most this many edits of this registry; a call with more is refused whole, with the reason in kiln.log and registry.json, and nothing of it applies (the other calls do). The default for a registry whose schema declares none (4,096).
Ids
- Game entries:
game:knowledge_<flag id>. Mod entries:(none). All ids are lower case. The mod idsgameandkilnare reserved: no mod's entries use them. - One entry per reward in the game data, named knowledge_ followed by its eight-digit hexadecimal flag id. No compiled list of roots or wells.
- Names:
DisplayName(never empty; display names) is a display name made from the flag id.
Fields
Applies: now = takes effect at the next use; worldLoad = takes effect when a world loads; restart = takes effect after a game restart. Ops: number = a value or the relative operations (mul, add, min, max, raiseOnly, lowerOnly); set = a value; list = clear, append, remove, replace; indexed = a list of fixed length, edited one element at a time (xpPerLevel[2]) with a value or a number operation. A field of a list's elements is named with [] in this table and with the element's index in an edit (entries[3].chance, or [*] for every element). Mapping: whether this Kiln maps the field onto the game; an unproven or unmapped field is refused per entry, with the reason, until a Kiln update maps it. Joined client: when a joined Kiln client consumes a server edit; see README.
| Field | Type | Applies | Ops | Since | Mapping | Joined client | About |
|---|---|---|---|---|---|---|---|
skillPoints |
int 0..255 | restart | number | 0.1.0 | mapped | restart | Points contributed while the character owns this knowledge flag. Changing a reward recalculates existing characters too; lowering the total below their spent points can fail the join check. Kiln sums rewards in 32 bits. |
kind |
enum (shroudRoot, elixirWell) | restart | read-only | 0.1.1 | mapped | serverOnly | The reward family from the game-authored knowledge names. Named whole wells are Elixir Wells; additional skill-point plants and the unnamed legacy root rewards are Shroud Roots. Independent of skillPoints. |
Entries
- Add (stage add, id
<your mod id>:<name>): no. - Remove: no.
- Raw game paths in edits (the Advanced tier): refused.
Edit it from a data pack
Use registry.alter with registry knowledge, field skillPoints, and a flag id such as game:knowledge_00ec3c3e.
The ids are enumerated from this game build, not a fixed list. The read-only kind is derived from the game's named knowledge queries, independent of the reward amount. * selects every skill-point reward. Numeric operations
(set, add, mul, min, max) use the ordinary registry composition rules.
Edit it from C#
Use the existing registry transport and the generated knowledge reward entries at GameStart. These are restart fields.
Views
The knowledge view lists this build's reward flags and their effective skillPoints.
Worked example
mods/samples/SkillPointRewards uses balance.skillPoints.shroudRoot = 2, balance.skillPoints.elixirWell = 4, and balance.skillPointsPerLevel = 3. A per-entry knowledge.skillPoints edit always wins over these family controls, regardless of pack order. Several per-entry edits retain normal registry layering.
In multiplayer
Install the same data pack on the server and clients, then restart the game. The join check and every award use the world's captured resource, including when a recorded recipe makes Kiln serve a knowledge override.
Known limits
Each reward is a byte (0–255); Kiln widens their total to 32 bits. Point grants can only unlock whole unowned reward flags; a request that cannot be represented exactly applies the greatest fitting amount and reports that amount.