Skip to content

GUI Configuration

lucian929 edited this page Feb 2, 2022 · 15 revisions

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
    action:
      any:
        open-menu: dye-menu

Action System

The action system allows you to define different events for different click types. The current options are LEFT, MIDDLE, RIGHT, and ANY.

Current Actions

        open-menu: <MENU> # Open the specified menu
        sound: # Play a sound
            name: "minecraft:block.chain.break"
            volume: 1.0
            pitch: 1.0
            category: "BLOCKS"

Example

    action:
      any:
        open-menu: dye-menu
      left:
        sound: # Play a sound
            name: "minecraft:block.chain.break"
            volume: 1.0
            pitch: 1.0
            category: "BLOCKS"
      right:
            send-message: "<red>Test message"
Clone this wiki locally