EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

ItemDefinition

An inventory item with a localized name, stack limit and optional script-driven use.

Signature

{ description: (TextKey)?, equip: (ItemEquipment)?, icon: (TextureAssetId)?, id: ContentId, max_stack: PositiveCount, name: TextKey, paving: (PavingPattern)?, place: (Placement)?, satiety: (PositiveCount)?, spell: (ItemSpell)?, tags: {TagId}, use: (ItemUse)? }

Fields

NameTypeMeaning
descriptionTextKeyLocalized one-line description shown with the item.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text
equipItemEquipmentPresence makes this item equippable; it needs a tool, light or armor, or, on a usable item held in the hand, only a model (an instrument its use plays).
iconTextureAssetIdInventory and hand icon of the item.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: asset:texture
idContentIdUnique definition ID in the declaring package namespace.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$
max_stackPositiveCountMaximum units in one stack.
Range: 1…2147483647; Unit: count
nameTextKeyLocalized item label, resolved in the package base locale.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text
pavingPavingPatternPresence makes the item a paving material the paving tool lays onto the ground; absent items are no paving.
placePlacementHow the item enters the world when placed; absent items cannot be placed.
satietyPositiveCountHow much one portion feeds the village when stored as supply; cooked dishes feed more than raw food. Absent: not food.
Range: 1…2147483647; Unit: count
spellItemSpellPresence makes the item a spell: bound to its owner (never dropped, stored or traded), cast through its use for mana.
tags{TagId}Unordered unique membership tags; registry sorts them.
Items: 0…4096; Unique entries
useItemUseExplicit item use contract; absent for items without a use action.