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.
What it teaches
Section titled “What it teaches”- The
openMenuaction - 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
How it works
Section titled “How it works”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.
Customizing
Section titled “Customizing”To add a new tile:
- Pick a free slot (10-16 in this layout work well).
- Copy any tile block.
- Change
material:,name:,lore:, and theopenMenu: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.
Try it
Section titled “Try it”After installing the example pack:
- Drop the bundle into
plugins/AbstractMenus/menus/example/. /am reload.- Type
/ame_hubin-game.