Register a definition
Callforge-items:RegisterItem from your content package at bootstrap, after forge-items is ready.
Definitions are open tables. Consumer packages read their own optional blocks,
equip for
forge-equipment, weapon for the combat/cast glue, use for the consumable flow, and
forge-items rides unknown blocks along untouched.Common fields
| Field | Notes |
|---|---|
id | Required. item:<name>. |
type | Required. Creator-defined string (weapon, consumable, material, …). |
label, weight, rarity | Display + inventory math. rarity must resolve to a registered rarity. |
stackSize | Max per stack (default 1). |
tags | Free-form strings; other systems match on them (e.g. focus.wand, equip.mainhand). |
equipSlot / equip | Read by forge-equipment. See equip consequences. |
useable / use | Read by forge-inventory’s UseItem flow. |
Grant it to a character
Mint an instance, then add it to the character’s bag container (inv:<character_id>):
Equippable items
To make an item apply stats while worn, add anequip block, forge-equipment applies the
modifiers as long as the item occupies an equip slot, and removes them on unequip: