Items & Attributes
Action items with custom attributes and stat modifiers. Items can be given as quest rewards, purchased from shops, or obtained from loot tables.
💡 For quality tiers and the reroll system, see Quality & Reroll.
Action Items
Action Items are special items that execute quest actions when the player right-clicks them. They are defined in config/itemconfig.json files and can customize the item's name, description, tooltip display, and behavior.
⚠️ Action Items are different from regular items. Regular items have vanilla behavior. Action Items trigger quest actions on use.
How Action Items Work
- Configuration β Action Items are defined in
config/itemconfig.jsonwithin a quest pack. - Registration β On game load,
ItemSystemscans all mods foritemconfig.jsonfiles and registers them toActionItemRegistry. - Item Creation β When an action item is given (via
questitemaction), the item receives special attributes includingalegacyvsquest:actions. - Execution β When the player right-clicks the item, the client sends a packet to the server, which executes all configured actions.
Configuration File
Action Items are defined in config/itemconfig.json:
{
"actionItems": [
{
"id": "yourmod:shadow-earring",
"itemCode": "game:yourmod-earring",
"name": "Shadow Earring",
"description": "A dark earring pulsing with void energy.\n",
"actions": [
{ "id": "playsound", "args": ["sounds/effect/magic"] }
],
"attributes": {
"attackpower": 2.5,
"critchance": 0.05,
"maxhealthflat": -3.0
},
"showAttributes": ["attackpower", "critchance", "maxhealthflat"],
"hideVanillaTooltips": ["armor"],
"quality": {
"enabled": true,
"minTier": 1,
"maxTier": 5
}
}
]
}ActionItem Properties
{
"id": "yourmod:shadow-earring",
"itemCode": "game:yourmod-earring",
"name": "Shadow Earring",
"description": "A dark earring pulsing with void energy.\n",
"actions": [
{ "id": "playsound", "args": ["sounds/effect/magic"] }
],
"attributes": {
"attackpower": 2.5,
"critchance": 0.05,
"maxhealthflat": -3.0
},
"showAttributes": ["attackpower", "critchance", "maxhealthflat"],
"hideVanillaTooltips": ["armor"],
"quality": {
"enabled": true,
"minTier": 1,
"maxTier": 5
}
}ActionItem Properties
| Property | Type | Description |
|---|---|---|
id | string | Unique identifier for this action item (e.g. yourmod:shadow-earring). |
itemCode | string | Base vanilla item code this action item is attached to (e.g. game:gear-rusty). |
name | string | Custom display name shown in the item tooltip. |
description | string | Custom description text shown in the tooltip. Supports \n for newlines. |
actions | array | List of actions that execute when the player right-clicks the item. |
modes | array | Tool modes (F-mode selector) that change which actions execute on right-click. |
sourceQuestId | string | If set, the item only works while this quest is active. |
triggerOnInventoryAdd | bool | If true, the item's actions fire automatically when it enters the player's inventory. |
blockMove | bool | If true, the item cannot be moved out of the hotbar. |
blockEquip | bool | If true, the item cannot be equipped into armor/character slots. |
blockDrop | bool | If true, the player cannot manually drop the item. |
blockDeath | bool | If true, the item is not dropped on player death. |
blockGroundStorage | bool | If true, the item cannot be placed in ground storage. |
attributes | object | Map of stat modifiers (e.g. {"attackpower": 2.5, "critchance": 0.05}). See attribute list below. |
showAttributes | array | Which custom attributes to display in the tooltip. If empty, none are shown. |
hideVanillaTooltips | array | Which vanilla tooltip sections to hide (e.g. ["durability", "attackpower"]). |
chargeMode | string | Charge system mode: "all" (all stats gated by charge) or "partial" (only chargeGatedAttrs gated). |
chargeGatedAttrs | array | Attribute keys that are gated by charge (only used when chargeMode = "partial"). |
chargeMaterials | array | Item code substrings that can be used to recharge this item (e.g. ["phosphorite", "fat"]). |
chargePerUnit | float | Hours of charge added per unit of material. Default: 8. |
chargeMax | float | Maximum charge in hours. Default: 100. |
chargeDepletedMult | float | Multiplier applied to gated attributes when charge is depleted. Default: 0 (no effect). |
Actions Array
Each action in the actions array follows the same format as quest actions:
{
"id": "actionId",
"args": ["arg1", "arg2"]
}Any action from the Actions documentation can be used here. When the player right-clicks the item, all actions in the actions array (or the selected mode's actions) are executed.
Tool Modes
> β οΈ EXPERIMENTAL β The F-mode tool selector integration may change or be removed in future versions. Use with caution in production quest packs.
Action items can define tool modes that show the vanilla F-mode selector. The selected mode determines which actions are executed:
"modes": [
{
"id": "track",
"name": "Track",
"icon": "search",
"actions": [
{ "id": "trackboss", "args": [] }
]
},
{
"id": "silent",
"name": "Silent",
"icon": "mute",
"actions": [
{ "id": "notify", "args": ["albase:tracker-silent"] }
]
}
]Attribute System
Items modify player stats when equipped. All numerical attributes are affected by quality multipliers. Percentage-based attributes use decimal values (e.g., 0.1 = 10%).
| Attribute | Type | Description |
|---|---|---|
attackpower | flat | Melee damage bonus |
warmth | flat | Warmth added to wearable items |
protection | flat | Flat damage reduction (armor) |
walkspeed | percent | Movement speed modifier |
hungerrate | percent | Hunger consumption modifier |
healingeffectiveness | percent | Healing received modifier |
rangedaccuracy | percent | Ranged weapon accuracy |
rangedchargspeed | percent | Ranged weapon charge speed |
rangeddamagemult | percent | Ranged weapon damage |
miningspeedmult | percent | Mining speed modifier |
falldamagemult | percent | Fall damage modifier |
temporaldrainmult | percent | Temporal stability drain modifier |
jumpheightmul | percent | Jump height modifier |
knockbackmult | percent | Knockback dealt modifier |
maxhealthflat | flat | Max health modifier |
maxoxygen | flat | Max oxygen (displayed as seconds) |
stealth | flat | Reduces AI detection/aggro |
secondchancecharges | flat | Auto-revive charges |
weightlimit | percent | Weight limit modifier |
viewdistance | percent | Fog/view distance modifier |
healonkill | percent | Heals % of max HP on kill |
Display Configuration
{
"showAttributes": ["attackpower", "maxhealthflat", "hungerrate"],
"hideVanillaTooltips": ["armor", "attackpower", "protection"]
}showAttributesβ List of custom attributes to display in item tooltipshideVanillaTooltipsβ List of vanilla tooltip sections to hide (prevents duplicate info)
Available hideVanillaTooltips values
| Value | Hides |
|---|---|
durability | Durability: X / Y |
miningspeed | Tool tier and mining speeds |
storage | Bag storage slots and contents |
nutrition | Food satiety and nutrition info |
attackpower | Vanilla attack power and tier |
combustible | Burn temperature, smelting info |
grinding | Grinding output |
crushing | Pulverizer output |
temperature | Current item temperature |
modsource | Which mod the item is from |
Full Example
A complete action item with all features:
{
"actionItems": [
{
"id": "memorial-scarf-2026",
"itemCode": "game:clothes-shoulder-artisans-scarf",
"name": "Memorial Scarf 2026",
"description": "A warm scarf with special embroidery.\n",
"actions": [
{ "id": "playsound", "args": ["sounds/effect/writing"] }
],
"attributes": {
"warmth": 2.0,
"protection": 200.0,
"attackpower": 200.0
},
"showAttributes": ["protection"],
"hideVanillaTooltips": ["attackpower"],
"quality": {
"enabled": true,
"minTier": 1,
"maxTier": 5
}
}
]
}This creates a scarf with:
- Custom name and description
- Stat bonuses (warmth, protection, attack power)
- Only
protectionshown in tooltip - Vanilla
attackpowertooltip hidden - Quality enabled (can roll Common to Legendary)
Giving Action Items
Use the questitem action to give an action item to a player:
{
"id": "questitem",
"args": ["memorial-scarf-2026"]
}Or via dialogue action string:
questitem memorial-scarf-2026Giving Items in Quests
// Give a vanilla item
{ "id": "giveitem", "args": ["game:ingot-gold", "5"] }
// Give an action item (with attributes and quality)
{ "id": "questitem", "args": ["yourmod:shadow-earring"] }
// Give random from loot table
{ "id": "randomquestitem", "args": ["yourmod:loot-table-code"] }
// Remove items from player
{ "id": "takeitem", "args": ["game:flint", "5"] }
// Consume action items by ID
{ "id": "consumeactionitem", "args": ["yourmod:quest-token", "3"] }