Our goal: Dethrone DeluxeMenu
material: POTION
durability: 16454
[CODE=yaml]
placeholders:
- placeholder: <your placeholder>
value: <your value>
action: <your action>
- placeholder: <your placeholder>
value: <your value>
action: <your action>
[/CODE]
Be careful, you must put an s to placeholder, otherwise it will not work.
A requirement consists of a permission list to check (placeholder, permission, regex and item), an action list on success and an action list on deny.
You have 12 actions available:
Example for view_requirement:
[CODE=yaml]
view_requirement:
deny:
- type: chat
messages:
- "msg Maxlego08 test"
success:
- type: sound
sound: ENTITY_PLAYER_LEVELUP
requirements:
- type: permission
permission: "admin.use"
- type: permission
permission: "use.pro.config"
- type: placeholder
placeholder: "%player_gamemode%"
value: "CREATIVE"
action: equals_string
- type: placeholder
placeholder: "%player_is_flying%"
value: "yes"
action: equals_string
[/CODE]
Example for open_requirement:
[CODE=yaml]
open_requirement:
requirements:
- type: regex
input: "%player_item_in_hand%"
regex: "(NETHERITE_|DIAMOND_|IRON_|GOLDEN_|STONE_|WOODEN_|LEATHER_|BOW|CROSSBOW|FISHING_ROD|SHEARS|SHIELD|TRIDENT|TURTLE_HELMET|ELYTRA|FLINT_AND_STEEL)"
deny:
- type: message
messages:
- "&cYou doesn't have an item in your hand."
[/CODE]
Example for click_requirement:
[CODE=yaml]
click_requirement:
left_click:
clicks:
- LEFT
- SHIFT_LEFT
requirements:
- type: placeholder
placeholder: "%player_gamemode%"
value: "CREATIVE"
action: equals_string
deny:
- type: inventory
inventory: "example"
plugin: "zMenu"
success:
- type: message
messages:
- "well <red>done <green>you did it"
[/CODE]
More information on the plugin documentation: https://docs.zmenu.dev/
- Inventory can load with error in button
- Fix commands register and unregister. The commands are now saved in the plugin that will load the command.
- Fix Firework meta for firework rocket
- Improve documentation: #15
- Add /zm list command. View the list of available inventories.
- Add /zm create <file name> <inventory size> <inventory name> command
- Add action, closeInventory (more information here)
- Add new default inventory, basic_inventory. An inventory with lots of explanation for beginners.
- Fix ComponentMeta with old color tag
- Disable double click on inventory click, this will trigger button actions 3 times.