Manage menu
To manage a menu, go into the file named "menus.yml"
Note that menu has id, you have to have the same id
<title> - Menu title
<size> - Menu size
<close> - Menu closeable
<items> - Menu items
Note that item has id, <close> is to close the menu when click
<slots> - Item slots
<material> - Item slots
<amount> - Item amount
<owner> - Item owner when it is a head
<name> - Item name
<lore> - Item lore
<enchantments> - Item enchantments
<itemFlags> - Item flags
<refresh> - Item refresh (true or false)
<action> - Item interact actions (CLOSE_MENU, CONSOLE_COMMAND, PERFORM_COMMAND)
<value> - Item interact actions (if it is CONSOLECOMMAND, console will execute all list of the commands, if it is PERFORM_COMAND, player will execute all list of the commands, if it is CLOSE_MENU, no need to specify value)
test: slot: 5 material: GRASS action: CONSOLE_COMMAND # Make console execute cmd value:
"broadcast %player% is such a beautiful player"
test2:
slot: 6
material: GRASS
action: CLOSE_MENU # Make player close inventory
test3: slot: 7 material: GRASS action: PERFORM_COMMAND # Make players execute cmd value:
"job shop"
Last updated
Was this helpful?