Schemas / Play
rig.play.inventory
v1.0.0 · stable maturity: draft 1 field 1 required
Fields
| Field | Type | Meaning | |
|---|---|---|---|
slots |
array<object> | required | Slots, in order. Empty array = no slots |
Slots holding items. Format when present.
Each slot:
count above the item's maxStack is a document error. The host clamps on load.
JSON Schema
Resolves at https://rig.works/schemas/rig.play.inventory.schema.json —
raw file.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://rig.works/schemas/rig.play.inventory.schema.json",
"title": "rig.play.inventory",
"type": "object",
"additionalProperties": false,
"properties": {
"slots": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"item": {
"$ref": "./_defs.schema.json#/$defs/entity"
},
"count": {
"$ref": "./_defs.schema.json#/$defs/uint"
}
}
}
}
},
"required": [
"slots"
],
"x-rig-maturity": "draft"
}