π¨βπ»Inventories
All information on inventories.
Informations
The plugin includes an inventories
folder that will contain all your inventories. Each inventory is represented by a separate file. You can create as many inventories as you want, as well as subfolders to organize them.
In the default configuration, you have the following:
Syntax
Name
The name of the inventory that will be displayed. Please note that, depending on your version, there may be a character limit. You can use colors and placeholders in the name.
If your inventory has multiple pages, you can display the current page and the last page using the following placeholders:
%page%
- Current page number%maxPage%
- Last page number
Size
Sets the inventory size. By default, the value will be 54. The size of the inventory must be a multiple of 9, ranging from 9 to 54. The valid values are:
9
18
27
36
45
54
Fill Item
Allows you to fill all the slots with the same item stack. Refer to the item information for details.
Update Interval
Allows you to define the refresh interval for the buttons in the inventory, in milliseconds. For the buttons to be updated, the update option must be enabled. For more information, see the details here.
Clear Inventory
Allows you to clear the player's inventory when opening and restore it upon closing. This feature enables you to display an image in the inventory without being obstructed by the player's items.
Matrix
The matrix configuration in a YAML file allows for intuitive organization of items within a Minecraft inventory by providing a visual representation of slot arrangements. In the given example, a 54-slot inventory named &8Test
uses a matrix of characters, where 'A' represents slots filled with diamonds, to create a bordered layout. This method enhances clarity and design efficiency, as each character in the matrix corresponds to an item defined under the items
section, allowing for easy customization of inventory layouts.
The use of a matrix simplifies the creation of complex inventory designs by visually mapping out item placements.
Items
List of Buttons: For detailed information, please refer here.
OpenWithItem
Opens the inventory through interaction with an item. You must define the item's details, the actions to be performed (full list here), and the type of verification required.
Open Requirement
More information here.
Translated Name
Allows you to translate the name of the playerβs inventory.
Patterns
After creating your patterns, you can add them to your inventory like this:
You must place the name of your file in the patterns
folder. You can add as many patterns as you want.
Example from zAuctionHouseV3:
The auction inventory will use three patterns: one for decoration, one to manage pagination, and one to display the main buttons (such as purchased items, expired items, categories, etc.). The only button you need to define separately is the one that lists items for sale.
Using patterns allows you to reduce the size of the configuration and reuse it across multiple inventories.
Last updated