Items
This page is valid for all plugins using the template developed by maxlego08 and using the loader system for itemstacks.
Last updated
Was this helpful?
This page is valid for all plugins using the template developed by maxlego08 and using the loader system for itemstacks.
Last updated
Was this helpful?
Here is an example of an item in a yml file:
You have to add HEAD
in the item name to be able to display the head of the player who opened the GUI.
Example:
If you are below version 1.13 you have to do
material
data
The item data works only for versions lower than 1.13, the default value is 0.
amount
The number of items (from 1 to 64), the default value is 1.
durability
Allows you to change the durability of items, works only for armor and other items that use durability, the default value is 0.
name
Allows you to change the name of the item, by default the name is null.
glow
Allows to add an enchantment to the item and to add the HIDE_ENCHANTS flag
lore
Allows to change a lore of the item, by default the lore is null.
enchants
flags
modelID
Allows you to put a custom model data on an item
You can put the item ID for versions lower than 1.13 and you can put the material name for higher versions. List of materials:
Allows you to add enchantments, you have to put the name of the enchantment then the level of the enchantment, like this: ENCHANT,ENCHANT_LEVEL
List of enchantments available:
This option is available for servers greater than or equal to the 1.8. List of flags:
To save and load an item you will have to use the class