Skip to main content

Creating menus

The main menu is stored in main.yml.

Each YAML file in the sub folder defines a submenu.

menu-title: "&6&lServer Menu"
menu-opensound: "UI_BUTTON_CLICK"
menu-background-item: "GRAY_STAINED_GLASS_PANE"
menu-size: 54
menu-items: []
SettingDescription
menu-titleText shown at the top of the menu
menu-opensoundSound played when the menu opens
menu-background-itemMaterial used to fill empty positions
menu-sizeOne of 9, 18, 27, 36, 45, or 54
menu-itemsItems shown in the menu

Add an item

menu-items:
- location: "5,3"
material: "EMERALD"
name: "&aShop"
lore:
- "&7Click to open the shop"
command: "sub_shop"
sound: "UI_BUTTON_CLICK"
close-menu: true
custom-model-data: 1001
SettingDescription
locationPosition as column,row. The top-left position is 1,1
slotZero-based slot number used instead of location
materialMinecraft material name
nameDisplay name
loreDescription shown below the name
commandLegacy click behavior
actionEasyMenu 6 click behavior
soundSound played after a click
close-menuWhether the menu closes after a click
custom-model-dataCustomModelData used by a resource pack

If both location and slot are present, EasyMenu uses slot and writes a warning to the console.

Add colors

Titles, item names, lore, and messages support legacy color codes beginning with &.

name: "&aGreen text"
lore:
- "&7Gray description"
- "&eYellow description"

Common colors include &a for green, &b for aqua, &c for red, &e for yellow, &f for white, and &7 for gray.

Create a submenu

Create plugins/EasyMenu/sub/shop.yml.

The menu ID is the filename without .yml, so this menu's ID is shop.

menu-title: "&aShop"
menu-background-item: "LIME_STAINED_GLASS_PANE"
menu-size: 27

menu-items:
- location: "5,2"
material: "BARRIER"
name: "&cBack"
command: "main_mainopen"
close-menu: true

Open it from another menu with this legacy setting.

command: "sub_shop"

Legacy command values

ValueBehavior
/spawnRun /spawn as the player
sub_shopOpen the menu with ID shop
main_mainopenReturn to the main menu

The click actions page explains the EasyMenu 6 format.