description |
---|
All item related options & configurations |
items: "ItemName": material: TEXT slot: #
Note:
Each item will have a name, in this example our item is called ItemName
. This name should be unique, so there won't be two or more items with the same name.
material: TEXTSupported material values:
- Material name (
STONE
).- Player head (
head-extended_clip
).
- Placeholder head (
head-%player_name%
,basehead-%player_basehead_placeholder%
, etc.).- Argument placeholder head (
head-{target}
).- BaseHead (
basehead-<base64 (Value field in the head's give command)>
).- Minecraft Texture (
texture-<id>
)
- Theid
is what's afterhttps://textures.minecraft.net/textures/
- HeadDatabase (
hdb-<ID>
).- ItemsAdder material (
itemsadder-namespace:name
)- Oraxen material (
oraxen-oraxen_item_id
)- Placeholder material (
placeholder-%player_item_in_hand%
).- Item in main hand (
main_hand
).- Item in off hand (
off_hand
).- Items in armor equipment slots (
armor_helmet
,armor_chestplate
,armor_leggings
andarmor_boots
)- Water bottle material is:
water_bottle
- Air material is:
air
Sets the material of the item in the menu.
{% hint style="success" %} AIR is a valid material. The item will be an empty slot with click commands and click requirements working. {% endhint %}
{% hint style="success" %} Placeholders are supported for head, basehead, texture, hdb, itemsadder, oraxen and placeholder materials! {% endhint %}
{% hint style="warning" %}
For version 1.12.2 or older:
Check Data option to specify the data of the item (the number after the colon :
). e.g. Lime Wool would be
material: WOOL
data: 5
{% endhint %}
data: #Supported data values:
- Number (
1
).- Placeholder that returns a number (
placeholder-%player_item_in_hand_data%
).
Sets the durability of the item (depends on the Material option).
{% hint style="info" %}
For version 1.12.2 or older:
This option will specify the data value (the number after the colon :
) of the item or the item's durability (depends on the Material option).
{% endhint %}
amount: #
Sets the item's amount in the menu.
dynamic_amount: '%placeholder%'
Sets the item's amount in the menu using a placeholder.
model_data: #
Allows you to set a CustomModelData for your item. Example of usage:
model_data: 14
nbt_string: '<Key>:<StringValue>' nbt_strings: - '<Key>:<StringValue>' - '<Key>:<StringValue>' nbt_int: '<Key>:<IntegerValue>' nbt_ints: - '<Key>:<IntegerValue>' - '<Key>:<IntegerValue>'
Allows you to add custom NBT tags to your items like model data.
{% hint style="danger" %} Deprecated! Should use the new model_data option instead for CustomModelData. You can still use it for other tags tho. {% endhint %}
{% hint style="success" %} The nbt tags options support PlaceholderAPI placeholders now! {% endhint %}
banner_meta: - <dyecolor>;<patterntype> - <dyecolor>;<patterntype>
Allows you to create your custom banners and shields.
{% hint style="success" %} Now with support for SHIELDS! Make sure to also check the new base_color option. {% endhint %}
base_color: <dyecolor>
Allows you to specify base colors for shields and also for banners on 1.12.2 and lower versions.
item_flags: - <ItemFlag> - <ItemFlag>
Allows you to set item flags.
potion_effects: - <PotionEffectType>;<duration>;<amplifier> - <PotionEffectType>;<duration>;<amplifier>
Allows you to set effects (Used if the material is a potion, splash_potion and tipped arrows).
{% hint style="success" %} Potion Effects no longer require the RGB option to be set to work! {% endhint %}
entity_type: <entitytype>
This is mainly targeted for 1.12.2 and lower server versions and allows you to specify monster egg types and monster spawner types.
{% hint style="danger" %} Option was removed in versions 1.14.0 and newer of the plugin due to versions 1.13.1 and lower of Minecraft no longer being supported. {% endhint %}
rgb: #, #, #Example:
rgb: 38, 192, 210
Sets the RGB (Red, Green, Blue) color for leather armor, potions, splash potions, tipped arrows and firework stars
{% hint style="info" %} For RGB option to work on potions and tipped arrows you also need to give it at least one potion_effect. {% endhint %}
{% hint style="success" %}
You can find a list of default potion colors HERE
. You will have to use an online converter to convert the hex values to rgb.
{% endhint %}
display_name: "TEXT"
Sets the item's display name. You can use placeholders and color/format codes.
lore: - "TEXT" - "TEXT"
Sets the item's lore (the text shown under the item's name). You can use placeholders and color/format codes and the new line character (\n
) in this option.
slot: #Multiple slots:
slots: - # - # - # # OR slots: - #-# - #-#
Sets in which slot the item should be inside the menu.
{% hint style="info" %}
- Slots start at 0.
- Multiple items can be in the same slot, but you'll have to use view requirement and priority options to work properly. {% endhint %}
priority: #
Sets the item priority. It's used if you want different items in the same slot (by using the view requirement option).
The item that has the highest priority will be checked first if the player has the required view requirement. It will display the item if they have the requirements and if not, it will check the next item and so on.
{% hint style="info" %}
- The highest priority is 0.
- The lowest priority is 2147483647. {% endhint %}
view_requirement: 'EXPRESSION'
Sets the requirements the player should have to see the item. (Check priority option for setting up multiple items in the same slot).
Check the Requirements page for more info about this option's value and how to use it.
update: BOOLEAN # true or false
If set to true, it will update the placeholders in the item's display name and lore only.
Check the update interval GUI option to set the update speed.
enchantments: - enchantmentid;level - enchantmentid;level
Enchants the item with the specified enchantments. (Check the hide enchantments option to hide the enchantments)
{% hint style="warning" %} Some items cannot have the enchanting glow effect {% endhint %}
hide_enchantments: BOOLEAN # true or false
If set to true, it will hide the enchantments you set for the item using the enchantments option from the item's tooltip (lore).
Used to add the enchanting glow effect to the item without showing the enchantments text.
hide_attributes: BOOLEAN # true or false
If set to true, it will hide the vanilla attributes of an item/armor (e.g. 7 Attack Damage).
hide_effects: BOOLEAN # true or false
If set to true, it will hide the potion's effect text beneath the item name.
hide_unbreakable: BOOLEAN # true or false
If set to true, it will hide the unbreakable tag if the "unbreakable:" option is enabled.
unbreakable: BOOLEAN # true or false
If set to true, it will show the item to be at full durability.
# click_commands: or # left_click_commands: or # right_click_commands: or # middle_click_commands: or # shift_left_click_commands: or shift_right_click_commands: - "[ACTIONTYPE] ACTION" - "[ACTIONTYPE] ACTION"
Sets the actions/commands that should be executed once the player clicks the item. they get executed in order from top to bottom.
Check this for all action types and action tags.
{% hint style="danger" %} Middle clicking was removed by Mojang in 1.18 and newer! {% endhint %}
# click_requirement: or # left_click_requirement: or # right_click_requirement: or # middle_click_requirement: or # shift_left_click_requirement: or shift_right_click_requirement: requirements: 'EXPRESSION' deny_commands: - "[ACTIONTYPE] ACTION" - "[ACTIONTYPE] ACTION"
Sets the requirements the player should have to click the item (Check the Requirements page for more info about the EXPRESSION
value).
Deny commands (optional) are the actions that are going to be executed if the player doesn't have the required requirements. But if (s)he does, it will execute the actions specified in the click commands option.
{% hint style="info" %} You can have deny commands per requirement. Check this page for more information. {% endhint %}
Check this for all action types and action tags.