Skip to content

GUI Configuration

lucian929 edited this page Feb 2, 2022 · 15 revisions

main.yml

title: "<white>" # GUI Title
rows: 5 # Rows in the GUI 
items:
  1: # GUI Slot number
    material: LEATHER_HORSE_ARMOR # Also supports Oraxen items! Format: "oraxen:item_name"
    name: "<rainbow>Colorful Hat</rainbow>"
    lore: # Lore displayed when the player owns the item
      - ""
      - "<gray>Enabled: <#6D9DC5>%enabled%"
      - "<gray>Allowed: <#6D9DC5>%allowed%"
    locked-lore: # Lore displayed when the player does not have the correct permission.
      - "<red>You do not own this item!"
    amount: 1
    model-data: 2 # CustomModelData Number
    type: HAT
    dyeable: true # Enables dyeable item feature
    color: # Sets default color for item. Uses RGB format.
      red: 5
      green: 230
      blue: 100
    action: # See how the action system works on the wiki
      any:
        open-menu: dye-menu
    permission: "cosmetics.colorful_hat" # Can be anything you want.
    id: colorful_hat # Internal identifier. Can be anything you want.
  2:
    material: PAPER
    name: "<blue>Backpack"
    lore:
      - ""
      - "<gray>Enabled: <#6D9DC5>%enabled%"
      - "<gray>Allowed: <#6D9DC5>%allowed%"
    locked-lore:
      - "<red>You do not own this item!"
    amount: 1
    model-data: 4
    type: BACKPACK
    permission: ""
    id: backpack
  3:
    material: PAPER
    name: "<blue>Lantern Cosmetic"
    lore:
      - ""
      - "<gray>Enabled: <#6D9DC5>%enabled%"
      - "<gray>Allowed: <#6D9DC5>%allowed%"
    locked-lore:
      - "<red>You do not own this item!"
    amount: 1
    model-data: 5
    type: OFF_HAND
    permission: ""
    id: lantern_cosmetic
  4:
    material: PAPER
    name: "<blue>Baseball Hat"
    lore:
      - ""
      - "<gray>Enabled: <#6D9DC5>%enabled%"
      - "<gray>Allowed: <#6D9DC5>%allowed%"
    locked-lore:
      - "<red>You do not own this item!"
    amount: 1
    model-data: 6
    type: HAT
    permission: ""
    id: baseball_hat
  37:
    material: PAPER
    name: "<#40B7D6>Previous Page"
    amount: 1
    model-data: 1
    action:
      any:
        open-menu: menu-2
  40:
    material: PAPER
    name: "<rainbow>Customization Menu</rainbow>"
    amount: 1
    model-data: 3
    action:
      any:
        open-menu: dye-menu
  43:
    material: PAPER
    name: "<#40B7D6>Next Page"
    amount: 1
    model-data: 2
    action:
      any:
        open-menu: menu-2

Multiple Pages

By default, HMCCosmetics includes one cosmetic GUI, and one extra GUI (dye-menu.yml). However, you can create as many GUIs as you need.

To do this, just create a second GUI in the menus folder, and copy the contents from main.yml to that file.

You can create a button to open the next page with the open-menu: <menu_name> option.

  26:
    material: PAPER
    name: "<#F7DCFA>Next Page"
    amount: 1
    model-data: 1
    open-menu: menu-2
Clone this wiki locally