Creating a menu - Andre601/AdvancedCustomMenu GitHub Wiki
This page will explain you, how to create a basic menu with items.
Example
Title:
- '&2Title #1'
- '&aTitle #2'
Frame-Delay: 20
Type: 'chest'
Rows: 4
Commands: 'example; ex'
Auto-Close: 0
Menu-Item:
<Go to the page "Menu-Item">
Items:
<Go to the page "Items">
Summary
Title
| Required? | Type | Supports Placeholders? |
|---|---|---|
| No | String/Stringlist | Yes (All) |
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 | Supports Placeholders? |
|---|---|---|
| No | Integer | No |
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.
Type
| Required? | Type | Supports Placeholders? |
|---|---|---|
| No | String | No |
Sets the type of the menu.
The default is "Chest", if no type is specified.
Valid types:
- Chest See Rows for how to change size.
- Dispenser Create a dispenser-inventory (9 slots in a 3x3 field)
- Dropper Create a dropper-inventory (9 slots in a 3x3 field)
- Hopper Create a hopper-inventory (1 row with 5 slots)
Rows
| Required? | Type | Supports Placeholders? |
|---|---|---|
| No | Integer | No |
Can only be used, if "Type" is set to "Chest".
Set the amount of rows that should be displayed (1 row is 9 slots)
Important A value above 6 will create a bugged texture!
Commands
| Required? | Type | Supports Placeholders? |
|---|---|---|
| Yes | String | No |
Set one or more commands, to open the menu.
Use ; to seperate the commands (f.e. cmd1; cmd2)
Auto-Close
| Required? | Type | Supports Placeholders? |
|---|---|---|
| No | Integer | No |
Amount in ticks, after the menu should be closed automaticly.
The default value is 0 (disabled).
It does NOT reset, if a player clicks on a item.