Inventory.yml Tutorial
In this file you can completely modify the inventories of the plugin, which are: main
, options
, whitelist
and ammunition
.
Inventories properties
Each inventory has 3 properties show below
Slots
Defines the amount of slots this inventory will have. You can only use 9, 18, 27, 36, 45 or 54.
Title
Defines the title of this inventory.
Item Slot
Position of an item in the inventory. For a much simpler way of placing items on inventories you can use some formats:
Format 1
This will set an item on the slot 0.
Format 2
This will set the same item on slots 0, 8 and 16.
Format 3
This will set the same item from slots 0 to 8 (0, 1, 2, 3, 4, 5, 6, 7, 8)
Combining formats
This will set the same item on slots 0 to 7, 9, and 17 to 26.
Item Properties
You can create your own items or use the ones in the config.yml file. The already created ones on that file will be used on specific cases. For example, the attack_animals_item
on config.yml file, will change depending on the Attack Animals option from the turret.
Item ID
The item name or material.
1.16 Item IDs: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html 1.8 Item IDs: https://github.com/Attano/Spigot-1.8/blob/master/org/bukkit/Material.java
If you want to use a player head with custom texture, you just need to set the base64 texture value.
Name and lore
Display name and lore for this item.
Type
When selecting a type, the item will be replaced with a custom plugin item from the config.yml file. You don't need to add any other property.
Open Inventory
This option is used to open another inventory when clicking on an item.
Custom Model Data
Adds a specific custom model data value to the item.
If you are on 1.21.4+, use this option instead. More info here: https://minecraft.wiki/w/Data_component_format/custom_model_data
Item Commands
Adds a list of commands to be executed from the console when clicking on the item. You can use the msg %player%
command to send a simple message to the player.
Ammunition and Whitelist inventories details
You must be careful with these two invetories in particular.
Whitelist Inventory
First, the whitelist inventory requires space to place the player heads of the whitelisted players. On the default inventory it looks like this:
This means, the whitelisted players will be placed from slot 0 to slot 35. If for some reason you want to do something more decorative, like placing the player heads just on the center of the inventory you can do it as well. Just use the different item slot formats.
Ammunition inventory
The ammunition inventory instead, is more limited. You can also modify the slots of the LAST ROW of the inventory. The previous slots will be fill with the ammunition items. I suggest you to leave this inventory by default, only changing the materials or translating the items.
Default file
Last updated