Skip to main content

Module chest_menu

Module chest_menu 

Source
Expand description

Chest menu for chest-like containers (chests, barrels, ender chests, shulker boxes).

1-6 rows of 9 slots. Layout:

  • Slots 0 to rows * 9 - 1: Container
  • Slots rows * 9 to rows * 9 + 26: Main inventory (27)
  • Slots rows * 9 + 27 to rows * 9 + 35: Hotbar (9)

Structs§

ChestKind
Per-menu chest state: just the backing container for the validity check.

Functions§

chest
Builds a chest-like menu with rows rows of 9 slots plus the player inventory.
menu_type_for_rows
Menu type for a chest of rows rows.