Repository navigation
Creating a menu
Andre_601 edited this page Nov 28, 2017
·
6 revisions
This page will explain you, how to create a basic menu with items.
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.
| 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'| 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.
| 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:
| Required? | Type |
|---|---|
| Yes | String |
| Required? | Type |
|---|---|
| Yes | String |
| Required? | Type |
|---|---|
| No | Stringlist |
A list of text, that should be displayed in the Itemlore.
The format is:
Lore:
- 'Line 1'
- 'Line 2'