·
datatype · drop-in viewer
asset⌬ datatypedataTypeprimary: schema.yaml·part ofpackage inventoryKit.package·originates fromworld 8301876d-c…
inventoryItem.dataType
One item a game can carry: a sword, a potion, a key. Every `.data` asset bound to this contract is an item inventoryKit finds by itself, in the kit and anywhere in the game's own world, so adding an item is adding one data asset and no code.
by·posted 24d ago
What it does
inventoryItem (dataType contract)
One item a game can carry: a sword, a potion, a key. Every .data asset bound to this contract is an item inventoryKit finds by itself, in the kit and anywhere in the game's own world, so adding an item is adding one data asset and no code.
| Field | Meaning |
|---|---|
id | The stable id saves and code use (sword, healthPotion). Never change it once players have the item. |
name, description | What the screens show. |
kind | weapon, armour, consumable, material, key, ammo, currency or misc; screens group and filter by it. |
slot | The equipment slot it goes in: head, chest, legs, feet, hands, mainHand, offHand, accessory, or empty for items that are not worn. |
maxStack | How many fit in one slot (1 = does not stack). |
rarity | common, uncommon, rare, epic or legendary; picks the slot's rarity frame. |
iconFantasy, iconScifi | The icon texture in each look. If one is missing the other is used. |
model | The bundle shown on the ground and when worn or held. |
size | The model's longest side in metres; the kit scales the model to it. |
weight, value | Shown by the survival list; the kit enforces neither. |
useEffect, useAmount, useDuration | What using it does: heal (health, through SecondWind), mana, shield, speed (a speed power-up for useDuration seconds), bomb (a blast that damages everything near), event (only the use event fires). A used consumable loses one from its stack. |
wearOn | A humanoid socket to wear it on instead of its slot's usual one (leftindex1 puts a ring on a finger). |
hold | Fine placement when worn or held: position (metres), rotation (degrees pitch, yaw, roll) and scale. |
tags | Free words a game can filter by. |
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.