Schemas / Play

rig.play.item

v1.0.0 · stable maturity: draft 1 field 0 required

Fields

FieldTypeMeaning
maxStack uint optional Optional. Most that fit in one inventory slot; absent = 1

A stackable thing. Format when present. Compose rig.meta.named for the label.

A picture is rig.media.asset_ref on this entity or a child. Price, when the item is for sale, is rig.commerce.offer - do not add a price field here.

JSON Schema

Resolves at https://rig.works/schemas/rig.play.item.schema.json — raw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.play.item.schema.json",
  "title": "rig.play.item",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "maxStack": {
      "$ref": "./_defs.schema.json#/$defs/uint"
    }
  },
  "x-rig-maturity": "draft"
}

Seen in

play-scene.json