Skip to content

rsmm.sdk.content

Content kinds registry — façade over per-kind builders.

A mod registers content via ContentRegistry.register("item", id=..., ...) which delegates to the kinds/<kind>.py implementation. Each kind owns its own template + field-patcher + emit step.

A kind raises SchemaNotMined on emit when the game data it needs is not readable (no install or mirror) or a class it touches is not decoded yet, so authors see what is missing instead of a mod that emits nothing. How far each kind is trusted in game is KIND_CONFIDENCE below.

ContentRegistry.register(self, kind: 'str', *, id: 'str', schema_version: 'int' = 1, **fields) -> 'ContentRef'

Register a content definition of kind and return its :class:ContentRef.

The low-level primitive behind :meth:Mod.item / :meth:Mod.enemy / etc. kind must be a known builder (item, enemy, boss, hero, map, …); non-confirmed kinds require the mod to opt in with experimental=True. id must be unique within the mod for that kind. Extra **fields are passed to the kind builder.