Setup

This page explains how to set up a custom menu using a configuration file. The menu system allows you to display custom graphical menus with clickable items.

πŸ“ Basic Structure

title

  • Description: Sets the title that appears at the top of the menu.

  • Example:

    title: '&eExample Menu'

The item-map defines the visual layout of your menu. Each line represents a row in the menu grid. You can use any character (letter, number, or symbol) to represent a specific item.

  • Each character corresponds to an item in the items section.

  • Use - for empty or decorative slots.

Example:

item-map:
  - '-ggggggg-'
  - '2-WWWWW-1'
  - '-gggCggg-'

In this layout:

  • g is a gray glass pane (usually used as a filler).

  • W could represent a wood item (defined in the pagination).

  • 1 and 2 are pagination buttons.

  • C is a close menu button.


πŸ”„ Pagination Support

The pagination section allows your menu to support multiple pages of items.

category

  • Used to link the menu to a specific group of items.

  • The name must match a pagination category defined elsewhere.

  • Example:

next and previous

Configure buttons to switch between pages.

Example:

  • item-slot-id: Refers to the character in item-map used for the button (in this case, 1).

  • empty: What to show when there's no next/previous page. You can delete a section if you don't want to use it, it's optional.


🧱 Items Section (items)

Each item character from the item-map must have a definition here. How to set up the item itself can be found here

Example:


βœ… Final Notes

  • Every character used in item-map must be defined under items or in the pagination.

  • This system supports dynamic items (like pagination) and static buttons (like closing).

  • Use color codes (e.g., &a, &e, &c) to customize the text appearance.

Last updated