Skip to content
aBooDyy edited this page Aug 29, 2018 · 15 revisions

As a reminder, Here is what your syntax should look like with items. Be aware this varies depending on the amount of items and options:

   items:
    'ItemName':
      material: TEXT
      slot: #

Note: Be aware that the 'ItemName': can be anything you want, and does not effect the configuration at all. It is for you to have identifiers. It could be a simple number (like in the default config) or it could be a random string of text.
If you want to use a number as name, make sure, to have it in '' (Example: '1':).
Each item-name NEEDS to be unique! You can't have two items with the same name.

Navigation


Material

material: TEXT

This option tells what material should be used for the item (The list of valid materials is available at the top of this page). This corresponds directly with the "data" tag (If you have something like potions or wool that have data). It can also interact with the "banner-meta" tag if you use a banner material. You can also use a player head by doing "head;username". The default config shows how you can use a player placeholder to create a dynamic item (head;%player_name%).

Data

data: #

This corresponds with the material tag. It simply defines the data for any block or item. Wool is the most common example. You will need to find the data number using a page like this. However, Doing a simple google search, you should easily find data values for anything you need.

Amount

amount: #

This tag shows the number that will display beside an item (Like with a stack). This is useful for doing things like a lobby selector.

Slot

slot: #

To put the same item in multiple slots use this:

slots:
- #
- #

This tag tells which slot(s) of the inventory the item should be in. Items can be put in the same slot, but you will need to use the priority and view_requirement tags to make them work properly. Remember that an inventory can have up to 54 slots, but the first position (from the top left) starts at 0. So, The 9th slot is actually slot 8. This is how minecraft has things setup, and we can not change it. Here is an image to help explain it:
CHEST

Priority

priority: #

This tag tells which item should have priority when in the same slot as another item (Corresponds with the slot and view_requirement tag). The larger the number...the lower the priority. So, an item with a priority of 5 will not show if another item has a priority of 2, and both would be covered up by an item with a priority of 1.

View Requirement

view_requirement: 'EXPRESSION'

This tag corresponds with the priority and slot tag. This feature give you able to view the item if player have for example a specific permission, amount of money, etc. See this page for more information about it.

Update

update: BOOLEAN # true or false

If this is set to true it will update any placeholders in the item display name and lore. The frequency of updates is determined by the GUI Option "update_interval". This is especially useful with statistics and cooldowns. Here is an example image showing how the update works in placeholders:
UPDATE

Banner Meta

banner_meta:
- <dyecolor>;<patterntype>
- <dyecolor>;<patterntype>

This tag will only be used if the material tag is set as a banner. It allows you to create your own patterns using the dye colors and pattern types. You can stack them to create unique designs. It is very important that you use a semi-colon (;) and not a regular colon as the divider in these lines.

Enchantments

enchantments:
- enchantmentid;level
- enchantmentid;level

This tag is used to define enchantments on the item. Be aware that some items/blocks can not be enchanted, and others can only use certain enchantments. If you wish to hide the text and just have the effect you can use the hide_enchantments: tag.

Hide Enchantments

hide_enchantments: BOOLEAN # true or false

This tag corresponds with the enchantments tag. If set to true it will hide the enchantment list on an item. This is useful for if you want an item to have the enchanted effect, but not the annoying text that is added.

Hide Attributes

hide_attributes: BOOLEAN # true or false

This tag will hide any vanilla attributes of an item. All tools (Swords, Picks, Axes, ETC.) show things like "+5 Attack" on them. This tag (when set to true) will hide those things.

Hide Effects

hide_effects: BOOLEAN # true or false

Very similar to the hide_attributes tag, Except that it works with things like potions which have an effect listed beneath the name. Useful when you need a potion (rather than just a bottle of water), but none of the added text.

Display Name

display_name: 'TEXT'

This tag will be the display name for the item. You can use placeholders and color/format codes.

Lore

lore:
- 'TEXT'
- 'TEXT'

This tag defines what will be shown in the lore area of the item. You can use placeholders and color/format codes in this area. You can add as many lines as minecraft allows.

Left/Right click Commands

left_click_commands: # or right_click_commands:
- '[player] COMMAND'
- '[console] COMMAND'
- '[commandevent] COMMAND'
- '[message] TEXT'
- '[openguimenu] MenuName'
- '[connect] ServerName'
- '[json] {"text":"message"}'
- '[refresh]'
- '[broadcastsound] SOUND'
- '[sound] SOUND'
- '[takemoney] #'
- '[close]'

These tags are fairly self explanatory. Left_click_commands controls what happens if a player left clicks an item, and right_click_commands controls what happens if they right click the item. You can have as many lines as you want. Commands execute in order from top to bottom. There are several available types of commands. Here they are listed below (Be aware that all tags should have a space before the text or commands):

Normal tags

Tag Description
[player] Executes a command as a player
[console] Executes a command as the console
[commandevent] Executes a special command event like the ones used by MyCommand Aliases or DeluxeCommands
[message] Sends a message to the player. You can use placeholders and color/format codes here
[openguimenu] Opens another GUI. Just add the correct menu title
[connect] Connects the player to a bungee server. Just add the correct server name
[close] Closes the currently open GUI
[json] Send a json message to the menu viewer
[refresh] Refresh items in the current menu view
[broadcastsound] Broadcast a sound to the server
[sound] Play a sound for a the specific player
[takemoney] Take amount of money from player (vault required)

Special tags

Those tags are used TOGETHER with a normal tag, to change the behaviour of the command, like f.e. delay the execution. (eg. [message] 1 second later<delay=20>)

Tag Description
<delay=<time>> Sets a delay (in ticks) after which the command event will be executed.
<chance=<chance>> set a chance to run the command.

Left/Right click Requirement

left_click_requirement: # or right_click_requirement: 
  requirements: 'EXPRESSION'
  deny_commands:
  - '[player] COMMAND'
  - '[console] COMMAND'
  - '[commandevent] COMMAND'
  - '[message] TEXT'
  - '[openguimenu] MenuName'
  - '[connect] ServerName'
  - '[json] {"text":"message"}'
  - '[refresh]'
  - '[broadcastsound] SOUND'
  - '[sound] SOUND'
  - '[takemoney] #'
  - '[close]'

Checks a requirement using a java/placeholder expression/comparison using the same format as the view_requirement tag. Except in this case the player can see the item, but it checks if he can left or right click it.
Deny commands are completely optional, but if you use them they work exactly the same as the normal left_click_commands tag and right_click_commands tag. If the requirement is met they will execute the commands defined under the left/right_click_commands. If the requirement is not met it will instead execute the deny commands (or no commands if you did not define any).

Clone this wiki locally