Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

inventory

const inventory: PluginFactory<[object], PluginMade<readonly [SystemDefinition<"rules", false, Server, "takeItemCommands">, SystemDefinition<"rules", false, Server, "useItems">, SystemDefinition<"rules", false, Server, "loot">], Readonly<Record<never, never>>, Readonly<Record<never, never>>, never, { drop: CommandDeclaration<{ count: NumberCommandField; slot: NumberCommandField; }, never, undefined, true, false, false, false>; equip: CommandDeclaration<{ slot: NumberCommandField; }, never, undefined, true, false, false, false>; move: CommandDeclaration<{ from: NumberCommandField; to: NumberCommandField; }, never, undefined, true, false, false, false>; split: CommandDeclaration<{ count: NumberCommandField; from: NumberCommandField; to: NumberCommandField; }, never, undefined, true, false, false, false>; unequip: CommandDeclaration<{ slot: OneOfCommandField<EquipmentSlot>; }, never, undefined, true, false, false, false>; use: CommandDeclaration<{ slot: NumberCommandField; target: EntityCommandField & object; }, never, undefined, true, false, false, false>; }, Readonly<Record<never, never>>, { bag: SaveDeclaration<ZodMiniObject<{ equipment: ZodMiniRecord<ZodMiniString<string>, ZodMiniObject<{ count: ZodMiniInt; data: ZodMiniOptional<ZodMiniObject<…, …>>; item: ZodMiniString<string>; }, $strip>>; slots: ZodMiniArray<ZodMiniNullable<ZodMiniObject<{ count: ZodMiniInt; data: ZodMiniOptional<…>; item: ZodMiniString<…>; }, $strip>>>; }, $strip>, readonly ["entity", "player"], readonly []>; loot: SaveDeclaration<ZodMiniObject<{ left: ZodMiniRecord<ZodMiniString<string>, ZodMiniInt>; }, $strip>, readonly ["world"], readonly []>; }>>

The inventory: the bag, what an entity wears, the uses asked of items, loot on the ground and the locks an item opens.