-
Notifications
You must be signed in to change notification settings - Fork 49
GUI Configuration
lucian929 edited this page Feb 2, 2022
·
15 revisions
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
The action system allows you to define different events for different click types. The current options are LEFT
, MIDDLE
, RIGHT
, and ANY
.
open-menu: <MENU> # Open the specified menu
sound: # Play a sound
name: "minecraft:block.chain.break"
volume: 1.0
pitch: 1.0
category: "BLOCKS"
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"
THIS WIKI IS DEPRECATED! PLEASE VISIT https://docs.hibiscusmc.com/