Skip to content
Andre_601 edited this page Nov 28, 2017 · 6 revisions

This page will explain you, how to create a basic menu with items.

Example

This example here shows a basic menu, with one item:

Title:
- '&2Title #1'
- '&aTitle #2'
Frame-Delay: 20
Menu-Item:
 <See options below>
Type: 'chest'
Rows: 4
Commands: 'example; ex'
Items:
  FirstItem:
    Slot: 1
    Frame-Delay: 20
    Frames:
      '1':
        <See Frame-options below>

Let's break this down to the different sections.

Title

Required? Type
Yes String

This section is for setting the title of the menu.
You can set only one text, or multiple ones:

# One title
Menu-Title: 'This is one title'

# multiple titles
# The menu will switch through the titles
Menu-Title:
- 'Title 1'
- 'Title 2'

Frame-Delay

Required? Type
Yes Integer

This section let's you set the delay (in ticks) in which the menu-title will switch trhough the titles.
This option is disabled, if only one title is available.

Menu-Item

Required? Type
No Section of Keys

That's the place, where you can set a Item, to open the menu.
You can set the following options:

Item

Required? Type
Yes String

Set the item here. The format is <Itemname>:[Data]:[Amount]
Data and Amount are optional.

Name

Required? Type
Yes String

Set the displayname of the Item.
Make sure, to put the string in ''

Lore

Required? Type
No Stringlist

A list of text, that should be displayed in the Itemlore.
The format is:

Lore:
- 'Line 1'
- 'Line 2'

Clone this wiki locally