| activators | [Object](Data types#object) | {-No-} | [Actions](Actions) to open a menu |
| rules | [Object](Data types#object)/[Object list](Data types#list) | {-No-} | [Rules](Rules) to open a menu. If one of those is **false** then menu won't open |
...
...
@@ -94,6 +96,36 @@ To create a menu whether in a separate file or in a single file you need to conf
| closeActions | [Object](Data types#object) | {-No-} | [Actions](Actions), that perform **after** the menu closes |
| updateInterval | Integer | {-No-} | Sets the menu update interval in ticks |
## <a name="types">Menu types</a>
Menu type - this is a type of inventory in which the buttons will be placed. By default, if you do not specify the type, the menu will looks like a chest. But you can change it, for example, to a hopper, or a brewing stand. The ability to set some type of inventory depends on the version of your server.
For the latest server version, a list of all inventory types can be found [here](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/inventory/InventoryType.html). For earlier versions, you will have to search list of inventory types for yourself. I recommend ask Google like "InventoryType spigot <serverversion>".
To change the menu type, just specify the `type` parameter and the type of inventory available for you from the Spigot documentation.
```hocon
title:"&lCake factory"
size:1
type:DROPPER
activators{
command:"menu"
}
items:[
{
slot:0
material:CAKE
name:"Test item"
},
]
```
In this example, we used the DROPPER inventory type, and look what happened.
> ⚠️ **Important**: Please note that not all types of inventory can be used. Some will behave strangely, such as not displaying the title, and some just won't work. This is a feature of the minecraft client, which we cannot influence. Also, if you are using any type other than a CHEST, we advise you to use the slot numbers, not the x,y positions.
A bit more detailed about the `updateInterval` setting. If you want to create a menu that will automatically update including items, placeholders and any other dynamic data, you can specify the interval for updating the menu.