Skip to content

Main Hub

A hub menu is just a list of buttons that each open another menu. Useful as a server’s main /menu command or as a way to organize a large collection of sub-features. This example links to the other menus in the pack so you can use it as a launcher while exploring.

  • The openMenu action - the only thing the buttons do
  • A simple 3-row layout with borders, header item, and tile row
  • A reusable pattern for any “select a category” UI

Every tile is the same shape: an item with material:, name:, lore:, and a click { openMenu: "ame_<name>" }. There are no rules, no actions other than navigation, no money checks. The hub’s job is just to dispatch.

The header item at slot 4 is purely decorative - same as in Cake Shop. No click handler.

To add a new tile:

  1. Pick a free slot (10-16 in this layout work well).
  2. Copy any tile block.
  3. Change material:, name:, lore:, and the openMenu: target.

The hub has no dependency on which menus actually exist. If a tile points at a non-existent menu, clicking it just shows a “menu not found” warning - useful for staging future menus before they’re built.

After installing the example pack:

  1. Drop the bundle into plugins/AbstractMenus/menus/example/.
  2. /am reload.
  3. Type /ame_hub in-game.