Buttons
Buttons are the interactive elements within a menu that players can click to trigger various actions. Each button can be customized to display specific menus, run commands, send messages, and more.
Buttons component of a menu is a list of buttons, which has the following properties:
Button Display
Slot
Description: Defines the position of the button in the menu. Slot numbers start from 0 and go up to the size of the menu.
Type: Integer
Optional: false
Example:
Amount
Description: Specifies how many of the item should be displayed in the button slot.
Type: Integer
Optional: true
Example:
Material
Description: The Minecraft material for the button. This is the actual item that players will see in the slot.
Type: Material
Optional: false
Example:
Image
Description:
URL or Material for displaying custom icons for image (primarily used for Bedrock users).
Type: URL or Material
Optional: true
Example:
Path
Description:
Texture path for image, can override image
Type: URL or Material
Optional: true
Example:
Name
Description: The display name of the button item. Supports color codes and placeholders.
Type: String
Optional: false
Example:
Lore
Description: Descriptive text that appears when players hover over the button. Supports multiple lines, color codes, and placeholders.
Type: List of Strings
Optional: false
Example:
Bedrock Lore
Description: Specific lore for bedrock button
Type: String
Optional: true
Example:
Enchantments
Description: A list of enchantments applied to the button item, such as SHARPNESS
, UNBREAKING
, etc.
Type: List of Enchantments
Optional: true
Example:
Custom Model data
Description: The Minecraft custom model data for the item
Type: Integer
Optional: true
Example:
Button Conditions
Items
Description: Required items that are required to click the button, They will be taken to performs the actions
Type: List of Items
Optional: true
Example:
Price
Description: Defines the in-game cost (e.g., currency) required to click this button. Useful in shops or trade menus. requires Vault
Type: Float
Optional: true
Example:
Permission
Description: A permission string required to click this button
Type: String
Optional: true
Example:
Actions
Description: Defines the actions triggered when the button is clicked. Multiple actions can be linked to a single button.
Type: List of actions
Optional: false
Example:
Requirements
Description: Conditions that must be met for the button to be visible or clickable. These can include permissions or placeholders.
Checkout Requirements for the requirements
Type: Map of view and click
Both view and click take a List of Requirements
Optional: true
Example:
Checkout next page to create Requirements
Last updated