Menu Customization
This guide explains how to customize your ShopMaster shop menus with categories, navigation buttons, and custom items.
Table of Contents
Shop Configuration Basics
Category Setup
Navigation Buttons
Global Buttons
Page-Specific Buttons
Custom Items Integration
Shop Configuration Basics
Each shop requires a basic setup with the following properties:
Category Setup
Categories appear in the main menu and allow players to navigate to specific shops:
Button System
Buttons for navigation and control in shops can be configured in two ways:
Default Buttons
In the layouts.yml
file, default buttons are defined that will be used across all shops:
Category-Specific Customization
Each shop category can customize its own buttons by overriding the default buttons. To do this, simply add the buttons
section in the category's configuration file:
If the buttons
section is empty (buttons: []
) or doesn't exist, the default buttons from the layouts.yml
file will be used.
Button Properties
Each button can be configured with the following properties:
enabled
: Activates or deactivates the button (true/false)material
: The Minecraft item to be displayedslot
: Position in the inventory (0-53)amount
: Item stack sizemodel_data
: Custom model data for resource packsdisplay_name
: Display name (supports color codes)glowing
: Enchantment glow effect (true/false)item_flags
: Flags to hide attributeslore
: Item description
Items
Item | Material
Material name (
DIAMOND
).Minecraft Texture (
texture-<id>
) - Theid
is what's afterhttps://textures.minecraft.net/textures/
Supported material values:
Item | ItemFlags
There is an item_flags: section where you can add the necessary flags for your item.
Custom Items
In this section you will be able to create your customized items. Each item you add in this section must have a different name.
Section
For the custom items section, you will need to create a name identifier for the item, as shown in the following example: 'close'.
Slots
In this section, you can specify in which slots the articles will be created. Below are some examples of how to assign articles to different slots:
You can use these formats to customize item locations according to your needs.
Actions
Actions allow you to execute console commands, send messages, send titles, send messages in the bossbar and even use mini message
Prefix
Description
[message]
If the prefix is [message] and the player is not in parkour (or is a new player), a message is sent to the player.
[command]
If the prefix is [command] and the player is not in parkour, a server command is executed. You can use placeholder like %player_name% to get the player's name
[player]
If the prefix is [player] and the player is not in parkour, a chat action is performed for the player
[sound]
Send a sound to the player, add volume, pitch using ;
[broadcast]
Send a global message, to all connected players
[close]
Close the player's inventory
[openmenu]
You will be able to open an inventory menu using its section name in menus.yml
[title]
Uses the format Title;Subtitle;fadeint;stay;fadeout
[actionbar]
It will allow you to send a message in actionbar.
[minimessage]
It will allow you to send the minimessage format that will be sent to the player.
https://docs.advntr.dev/minimessage/format.html
[minibroadcast]
It will allow you to send the mini-message format to all connected players. https://docs.advntr.dev/minimessage/format.html
Sub Actions
Examples:
It is important to maintain the space between chance and action.
[chance=50]
Add chance to your action
<delay=20>
Add a delay to your actions.
Last updated