new inventory %name:STRING% [with] rows %rows:INT% — Expressions

new inventory %name:STRING% [with] rows %rows:INT%
Inventory1.0.0

Description

Creates a new Lumen inventory with a name and row count (1 to 6), without a display title. The size is calculated as rows * 9. Throws a runtime error if rows is not between 1 and 6.

Examples

set gui to new inventory "shop" with rows 6

All Possible Usages (2)

Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.

new inventory <name> rows <rows>
new inventory <name> with rows <rows>

Related (Inventory)