You can add different chests to the plugin by adding them to the config file. In this tutorial you'll see how it's done, what fields can be added and which chests are available.
First thing to do is to give your chest a unique name. This name will later be used to give the chests to players with the give command. The name must be unique to your chest, and two chests cannot share the same name. After choosing one, add it to your config under the chests section:
Second step is to choose the type of chest you want to create. There are plenty of different chests you can create, and each of them have a different action it can do:
The linked-chest mode used to link chests to other chests. All the linked chests will share the same inventory, and it can be opened by different chest blocks accross the world. Read more about it here.
The chest mode used to make the chest functional as a vanilla chest. It can later be expanded to do different tasks, such as selling its contents, craft them or have different pages for the chest. Read more about it here.
The storage-unit mode makes the chest to be able to hold infinite amount of an item inside it. It has only one slot available, and it can hold only one item at a time without a limit to it. Read more about it here.
Once you chose your chest, you can add it to the config under the
In order to properly have your chests registered, you must add the required sections for each chest (These can be found on each chest's page), alongside of a name and a lore to the chest's item. The
item.loresections are used for this purpose:
name: 'Example Name'
- 'Example Lore'
Each chest can have optional sections besides the required ones, which can change the behavior of your chests. Here is the list of sections you can use:
Set the amount of rows the chest will have.
Integer (Number between 1 and 6)
Give a custom title to the chest's inventory title.
Set a sell multiplier for the chest.
Double (Decimal Number)
When set, instead of dropping the item on ground, it will be collected straight to the player's inventory.
List of particles to around the chest on ground.