Using it

Menus: /crates and the crate screen

/crates (or /mv menu) lists every crate with its icon, description, the player's keys, the price and their next guaranteed drop. Left-click shows the rewards, right-click opens the crate and shift-right-click opens many (when menu.allow-open is true; with false, /crates only shows rewards and players open at the crate block).

The crate screen (click a crate block, /mv preview <crate>, or a crate in /crates) shows the crate icon and description, the reward count, the odds per rarity, every reward with its rarity and real chance, the player's keys and opens, pity progress bars, the next milestone, and open buttons. Rewards are sorted rarest first (preview.sort-by-rarity in guis.yml).

Every title, item, slot, sound and text line is in guis.yml. The file has sections preview, menu, results, history and admin. Open buttons use the crate's own key item (material: KEY) and buy buttons use a coin.

In the crates menu, a crate can set its icon, slot and visibility:

menu:
  icon: CHEST
  # -1 = placed automatically
  slot: -1
  hidden: false
  description:
    - "<gray>The starter vault. Blocks, money and a rare egg."