GUIs

Item Stack Parser

Most of icons has in-build function. You can see all functional icon names in default config.yml file. Also you can define new icons as dysfunctional. MasterDuels parses item stacks from configuration sections.

  ICON_NAME:
    material: XMATERIAL_NAME
    display-name: 'DISPLAY_NAME'
    amount: AMOUNT
    slot: SLOT
    lore:
      - 'LINE 1'

Example item stack section:

  team-size:
    material: PLAYER_HEAD
    display-name: '&9Team Size'
    amount: 1
    slot: 10
Maximized Configuration

Almost all features of ItemStack Serializer used below.

example-configurable-gui:
  title: 'Custom Title'
  row: 5
  icons:
    test-icon:
      material: DIAMOND_BOOTS
      display-name: '&aGem'
      slot: 1-9
     #slot: 1,2,3,4,5,6,7,8,9
      enchantments:
        - 'DEPTH_STRIDER:1'
      item-flags:
        - 'HIDE_ENCHANTS'
      durability: 30
      glow: true
      unbreakable: true #only for 1.11 and above
      custom-model-data: 10 #only for 1.14 and above

Item Stack Sections

MasterDuels uses obliviate-invs library. If you want to go deep, you can visit obliviate-invs wiki.

ICON_NAME String Backend name of icon. This name is unique id in gui wide.

XMATERIAL_NAME String Material/type of icon. MasterDuels using independent API to match material (XMaterial). Click to see all valid material names.

DISPLAY_NAME Colorable String Display name of icon.

AMOUNT Integer Display amount of icon.

SLOT Integers Slot number which shows this icon. You can enter multi-integer in dysfunctional icon sections.

slot: 10 puts on 10. slot slot: 0-10 puts on slots between 0 and 10 (includes 0 and 10) slot: 0,10 puts on 0. slot and 10. slot

LORE Colorable String List Display description of item.

Last updated