### Example Configuration for Sequence Paginated Mask Source: https://bettergui-mc.github.io/Docs/index.print A complete YAML example demonstrating the setup of a 'sequence-paginated' mask with multiple buttons. It also includes the configuration for 'previous' and 'next' navigation buttons that interact with the mask's signal. ```YAML # The paginated mask demo-slot: mask: sequence-paginated slot: 1-7 cycle: false signal: demo-page-signal # This is the signal name used by actions to change the page. child: button1: id: red_stained_glass_pane name: "&c&lButton 1" button2: id: green_stained_glass_pane name: "&a&lButton 2" button3: id: blue_stained_glass_pane name: "&9&lButton 3" button4: id: yellow_stained_glass_pane name: "&e&lButton 4" button5: id: purple_stained_glass_pane name: "&5&lButton 5" button6: id: orange_stained_glass_pane name: "&6&lButton 6" button7: id: pink_stained_glass_pane name: "&d&lButton 7" button8: id: black_stained_glass_pane name: "&0&lButton 8" button9: id: white_stained_glass_pane name: "&f&lButton 9" button10: id: gray_stained_glass_pane name: "&7&lButton 10" button11: id: light_gray_glass_pane name: "&8&lButton 11" # The button to go to the previous page previous-button: slot: 0 id: arrow name: "&c&lPrevious" command: "previous-page: demo-page-signal" # The action to change the page # The button to go to the next page next-button: slot: 8 id: arrow name: "&a&lNext" command: "next-page: demo-page-signal" # The action to change the page ``` -------------------------------- ### BetterGUI Key-Value List Mask Full Configuration Example Source: https://bettergui-mc.github.io/Docs/index.print A complete YAML configuration example demonstrating a 'key-value-list' mask setup, including the mask definition, dynamic item list, and associated navigation buttons (previous/next page). ```YAML # The paginated mask demo-slot: mask: key-value-list slot: 1-7 cycle: false signal: demo-page-signal # This is the signal name used by actions to change the page. value: - material: red_stained_glass_pane name: Button 1 - material: green_stained_glass_pane name: Button 2 - material: blue_stained_glass_pane name: Button 3 - material: yellow_stained_glass_pane name: Button 4 - material: purple_stained_glass_pane name: Button 5 - material: orange_stained_glass_pane name: Button 6 - material: pink_stained_glass_pane name: Button 7 - material: black_stained_glass_pane name: Button 8 - material: white_stained_glass_pane name: Button 9 - material: gray_stained_glass_pane name: Button 10 - material: light_gray_stained_glass_pane name: Button 11 button: id: "{key_material}" name: "&c&l{key_name}" # The button to go to the previous page previous-button: slot: 0 id: arrow name: "&c&lPrevious" command: "previous-page: demo-page-signal" # The action to change the page # The button to go to the next page next-button: slot: 8 id: arrow name: "&a&lNext" command: "next-page: demo-page-signal" # The action to change the page ``` -------------------------------- ### Example Configuration for Key-Value List Paginated Mask Source: https://bettergui-mc.github.io/Docs/premium/masked-gui/index.print A complete YAML example demonstrating the setup of a 'key-value-list' paginated mask. It includes the mask definition, a list of items, and associated navigation buttons for 'previous' and 'next' pages. ```YAML # The paginated mask demo-slot: mask: key-value-list slot: 1-7 cycle: false signal: demo-page-signal # This is the signal name used by actions to change the page. value: - material: red_stained_glass_pane name: Button 1 - material: green_stained_glass_pane name: Button 2 - material: blue_stained_glass_pane name: Button 3 - material: yellow_stained_glass_pane name: Button 4 - material: purple_stained_glass_pane name: Button 5 - material: orange_stained_glass_pane name: Button 6 - material: pink_stained_glass_pane name: Button 7 - material: black_stained_glass_pane name: Button 8 - material: white_stained_glass_pane name: Button 9 - material: gray_stained_glass_pane name: Button 10 - material: light_gray_stained_glass_pane name: Button 11 button: id: "{key_material}" name: "&c&l{key_name}" # The button to go to the previous page previous-button: slot: 0 id: arrow name: "&c&lPrevious" command: "previous-page: demo-page-signal" # The action to change the page # The button to go to the next page next-button: slot: 8 id: arrow name: "&a&lNext" command: "next-page: demo-page-signal" # The action to change the page ``` -------------------------------- ### Example Action Configuration Source: https://bettergui-mc.github.io/Docs/index.print Illustrates how to define a sequence of actions for a button. This example shows a 'tell' message, followed by a delay, and then another 'tell' message, demonstrating sequential execution of commands. ```YAML hello: COMMAND: # Here are the actions - "tell: &eHello There" - "delay: 60" - "tell: &eHello Again" NAME: '&u&lHello Button' ID: stone POSITION-X: 1 POSITION-Y: 1 ``` -------------------------------- ### Sequence Paginated Mask Example Configuration Source: https://bettergui-mc.github.io/Docs/premium/masked-gui/mask/index.print A comprehensive YAML example demonstrating the setup of a 'sequence-paginated' mask with multiple child buttons and associated navigation buttons. It illustrates how to define the mask, its signal, and link 'previous-page' and 'next-page' commands. ```YAML # The paginated mask demo-slot: mask: sequence-paginated slot: 1-7 cycle: false signal: demo-page-signal # This is the signal name used by actions to change the page. child: button1: id: red_stained_glass_pane name: "&c&lButton 1" button2: id: green_stained_glass_pane name: "&a&lButton 2" button3: id: blue_stained_glass_pane name: "&9&lButton 3" button4: id: yellow_stained_glass_pane name: "&e&lButton 4" button5: id: purple_stained_glass_pane name: "&5&lButton 5" button6: id: orange_stained_glass_pane name: "&6&lButton 6" button7: id: pink_stained_glass_pane name: "&d&lButton 7" button8: id: black_stained_glass_pane name: "&0&lButton 8" button9: id: white_stained_glass_pane name: "&f&lButton 9" button10: id: gray_stained_glass_pane name: "&7&lButton 10" button11: id: light_gray_stained_glass_pane name: "&8&lButton 11" # The button to go to the previous page previous-button: slot: 0 id: arrow name: "&c&lPrevious" command: "previous-page: demo-page-signal" # The action to change the page # The button to go to the next page next-button: slot: 8 id: arrow name: "&a&lNext" command: "next-page: demo-page-signal" # The action to change the page ``` -------------------------------- ### Example: Item Name Configuration Source: https://bettergui-mc.github.io/Docs/index.print An example showing how to set the display name of a GUI item, including color codes. ```YAML stone-button: slot: 1 id: stone name: "&cThis is a stone button" ``` -------------------------------- ### Installing an Addon for BetterGUI Source: https://bettergui-mc.github.io/Docs/index.print This snippet describes the manual installation process for BetterGUI addons. It involves downloading the addon JAR file, placing it in the 'addon' folder, and restarting the server for the addon to be loaded and activated. ```English 1. [Download the addon](https://bettergui-mc.github.io/Docs/addon.html) 2. Go to the `plugins/BetterGUI/addon` folder 3. Copy/Cut the downloaded jar file and paste it to the folder 4. Start/Restart the server 5. Done ``` -------------------------------- ### Configure Value List GUI Mask Example Source: https://bettergui-mc.github.io/Docs/premium/masked-gui/mask/index.print A practical YAML example demonstrating the configuration of a 'value-list' mask. It shows how to paginate through a list of stained glass pane types, displaying each as a button, and includes setup for previous and next page navigation. ```YAML # The paginated mask demo-slot: mask: value-list slot: 1-7 cycle: false signal: demo-page-signal # This is the signal name used by actions to change the page. value: - red_stained_glass_pane - green_stained_glass_pane - blue_stained_glass_pane - yellow_stained_glass_pane - purple_stained_glass_pane - orange_stained_glass_pane - pink_stained_glass_pane - black_stained_glass_pane - white_stained_glass_pane - gray_stained_glass_pane - light_gray_stained_glass_pane button: id: "{current_value}" name: "&c&lButton" # The button to go to the previous page previous-button: slot: 0 id: arrow name: "&c&lPrevious" command: "previous-page: demo-page-signal" # The action to change the page # The button to go to the next page next-button: slot: 8 id: arrow name: "&a&lNext" command: "next-page: demo-page-signal" # The action to change the page ``` -------------------------------- ### BetterGUI Air Button Configuration Example Source: https://bettergui-mc.github.io/Docs/button/air/index.print Illustrates a practical example of configuring an 'air' type button in BetterGUI. This example demonstrates defining multiple sequential actions, including 'tell' commands and a 'delay', and setting the menu to close upon button click. ```YAML air-button: type: air command: - "tell: &aOh..." - "delay: 30" - "tell: &aUhhhh... Hello" close-on-click: true ``` -------------------------------- ### BetterGUI Value List Mask Usage Example Source: https://bettergui-mc.github.io/Docs/premium/masked-gui/mask/value-list/index.print A practical YAML example demonstrating how to configure a Value List Mask and integrate navigation buttons. This setup creates a paginated display of colored glass panes, with dedicated buttons to move to the previous and next pages. ```YAML # The paginated mask demo-slot: mask: value-list slot: 1-7 cycle: false signal: demo-page-signal # This is the signal name used by actions to change the page. value: - red_stained_glass_pane - green_stained_glass_pane - blue_stained_glass_pane - yellow_stained_glass_pane - purple_stained_glass_pane - orange_stained_glass_pane - pink_stained_glass_pane - black_stained_glass_pane - white_stained_glass_pane - gray_stained_glass_pane - light_gray_stained_glass_pane button: id: "{current_value}" name: "&c&lButton" # The button to go to the previous page previous-button: slot: 0 id: arrow name: "&c&lPrevious" command: "previous-page: demo-page-signal" # The action to change the page # The button to go to the next page next-button: slot: 8 id: arrow name: "&a&lNext" command: "next-page: demo-page-signal" # The action to change the page ``` -------------------------------- ### Simple Button Configuration Example Source: https://bettergui-mc.github.io/Docs/button/index.print An example configuration for a simple button, demonstrating how to set its ID, name, lore, and a single 'tell' action upon click, along with closing the menu. ```YAML simple-button: id: cobblestone name: "&bThis is a simple button" lore: - "" - "&fThis is a lore" action: "tell: &eYou clicked" close-on-click: true ``` -------------------------------- ### Example Anvil GUI Menu Configuration Source: https://bettergui-mc.github.io/Docs/addon/index.print Provides a practical example of configuring an Anvil GUI menu. This setup defines a menu titled 'Test Anvil' with a prompt 'What is your name?', clears input on completion, prevents closing, and executes specific commands upon completion (telling the input) or closing. ```YAML menu-settings: menu-type: anvil command: testanvil title: "&cTest Anvil" text: "What is your name?" clear-input-on-complete: true complete-action: - "tell: &aHello, {anvil_input}" prevent-close: true close-action: - "tell: &cYou closed the menu" button: id: paper ``` -------------------------------- ### BetterGUI Simple Form Configuration Example Source: https://bettergui-mc.github.io/Docs/premium/better-forms/simple/index.print An example configuration demonstrating how to set up a 'simple-form' with a custom title, a command to open it, and two interactive buttons ('profile' and 'bettergui') with text, image URLs, and associated commands. ```YAML menu-settings: menu-type: simple-form command: simpleform title: "&4&lInfo Form" profile: text: "&cHSGamer" url: "https://raw.githubusercontent.com/HSGamer/hsgamer.github.io/main/static/android-chrome-256x256.png" command: "tell: &eLink: &fhttps://hsgamer.me/" bettergui: text: "&cBetterGUI" url: "https://raw.githubusercontent.com/BetterGUI-MC/.github/main/images/logo.png" command: "tell: &eLink: &fhttps://bettergui-mc.github.io/Docs/" ``` -------------------------------- ### BetterGUI ItemBridge Hook Configuration Examples Source: https://bettergui-mc.github.io/Docs/addon/index.print Provides configuration examples for integrating custom items from various plugins like ItemBridge, ItemsAdder, Oraxen, and Nexo into BetterGUI using the ItemBridge Hook. Each example demonstrates the specific `` and `` format for the respective plugin. ```YAML test-itembridge: slot: 0 itembridge: "minecraft:stone" name: "&bItemBridge" test-itemsadder: slot: 0 ia: "iasurvival:ruby_block" name: "&bItemsAdder" test-oraxen: slot: 0 oraxen: "onyx_axe" name: "&bOraxen" test-nexo: slot: 0 nexo: "my_item" name: "&bNexo" ``` -------------------------------- ### BetterGUI Simple Button Configuration Example Source: https://bettergui-mc.github.io/Docs/button/simple/index.print Provides a concrete YAML example demonstrating how to configure a 'simple' button named 'simple-button' in BetterGUI. This example sets its ID, display name, lore, a 'tell' action command, and enables the 'close-on-click' functionality. ```YAML simple-button: id: cobblestone name: "&bThis is a simple button" lore: - "" - "&fThis is a lore" action: "tell: &eYou clicked" close-on-click: true ``` -------------------------------- ### Example Configuration for Button Paginated Mask and Navigation Source: https://bettergui-mc.github.io/Docs/premium/masked-gui/index.print This YAML configuration demonstrates a complete setup for a `button-paginated` mask named `demo-slot`, displaying multiple buttons across pages. It also includes an example of a `previous-button` that uses the `previous-page` action with a specified signal to control the pagination. ```YAML # The paginated mask demo-slot: mask: button-paginated slot: 1-7 cycle: false signal: demo-page-signal # This is the signal name used by actions to change the page. child: button1: id: red_stained_glass_pane name: "&c&lButton 1" button2: id: green_stained_glass_pane name: "&a&lButton 2" button3: id: blue_stained_glass_pane name: "&9&lButton 3" button4: id: yellow_stained_glass_pane name: "&e&lButton 4" button5: id: purple_stained_glass_pane name: "&5&lButton 5" button6: id: orange_stained_glass_pane name: "&6&lButton 6" button7: id: pink_stained_glass_pane name: "&d&lButton 7" button8: id: black_stained_glass_pane name: "&0&lButton 8" button9: id: white_stained_glass_pane name: "&f&lButton 9" button10: id: gray_stained_glass_pane name: "&7&lButton 10" button11: id: light_gray_stained_glass_pane name: "&8&lButton 11" # The button to go to the previous page previous-button: slot: 0 id: arrow name: "&c&lPrevious" command: "previous-page: demo-page-signal" # The action to change the page ``` -------------------------------- ### Example Action: Give Tokens Source: https://bettergui-mc.github.io/Docs/index.print A configuration example demonstrating how to use the 'give-token' action within a GUI button. Clicking this button will grant 10 tokens to the player. ```YAML give-token: slot: 1 id: emerald name: "&cGive tokens" command: "give-token: 10" ``` -------------------------------- ### Configure Item Giving Actions Source: https://bettergui-mc.github.io/Docs/addon/item-gotcha Demonstrates how to set up actions in the configuration to give players specific items or materials. It shows examples for giving single items, advanced items, and multiple items/materials using the `give:` command within a BetterGUI button setup. ```YAML give-stone: slot: 1 id: stone name: "&cGive me stone" command: "give: stone" give-advanced-stone: slot: 2 id: stone name: "&cGive me advanced stone" command: "give: advanced_stone" give-kits: slot: 3 id: diamond sword name: "&cGive kits" command: - "give: DIAMOND_SWORD" - "give: STONE, 10" ``` -------------------------------- ### BetterForms Modal Form Configuration Example Source: https://bettergui-mc.github.io/Docs/premium/better-forms/index.print A practical YAML example demonstrating the configuration of a Modal Form. This example sets a title, content, command to open, and defines actions for opening, closing, and for Java players. It also includes two buttons ('yes' and 'no') with specific text, actions, and a click requirement based on player level for the 'yes' button. ```YAML menu-settings: menu-type: modal-form command: modalform title: "Modal Form" content: "&eAre you beautiful, &f{player} &e?" open-action: "tell: &eYou opened the form" close-action: "tell: &cYou closed the form" java-action: "tell: &cYou can't open this form because you're not a Bedrock player" yes: text: "&b&lYes" click-requirement: check-level: level: value: 10 take: false success-action: "tell: &eThanks for paticipating the form" fail-action: "tell: &eImprove yourself..." no: text: "&bNo" action: "tell: &aIt's fine, you're beautiful as always" ``` -------------------------------- ### BetterGUI Simple Menu Configuration Example Source: https://bettergui-mc.github.io/Docs/menu/simple An example configuration for a BetterGUI simple menu, demonstrating how to set the menu name, rows, command, auto-refresh, open/close actions, and define a default animated icon with multiple frames. ```YAML menu-settings: name: '&c&lExample Menu' rows: 6 command: menu auto-refresh: 5 open-action: - "tell: &eYou opened the example menu" close-action: - "tell: &cYou closed the example menu" default-icon: type: animated child: frame1: id: - RED_STAINED_GLASS_PANE - STAINED_GLASS_PANE:14 frame2: id: - GREEN_STAINED_GLASS_PANE - STAINED_GLASS_PANE:13 frame3: id: - BLUE_STAINED_GLASS_PANE - STAINED_GLASS_PANE:11 ``` -------------------------------- ### Key-Value List Mask Full Example Source: https://bettergui-mc.github.io/Docs/premium/masked-gui/mask/key-value-list/index.print A complete example demonstrating the configuration of a Key-Value List Mask, including its values, button template, and associated navigation buttons for previous and next pages. ```YAML # The paginated mask demo-slot: mask: key-value-list slot: 1-7 cycle: false signal: demo-page-signal # This is the signal name used by actions to change the page. value: - material: red_stained_glass_pane name: Button 1 - material: green_stained_glass_pane name: Button 2 - material: blue_stained_glass_pane name: Button 3 - material: yellow_stained_glass_pane name: Button 4 - material: purple_stained_glass_pane name: Button 5 - material: orange_stained_glass_pane name: Button 6 - material: pink_stained_glass_pane name: Button 7 - material: black_stained_glass_pane name: Button 8 - material: white_stained_glass_pane name: Button 9 - material: gray_stained_glass_pane name: Button 10 - material: light_gray_stained_glass_pane name: Button 11 button: id: "{key_material}" name: "&c&l{key_name}" # The button to go to the previous page previous-button: slot: 0 id: arrow name: "&c&lPrevious" command: "previous-page: demo-page-signal" # The action to change the page # The button to go to the next page next-button: slot: 8 id: arrow name: "&a&lNext" command: "next-page: demo-page-signal" # The action to change the page ``` -------------------------------- ### Example: Playing Sound Action with XCross Source: https://bettergui-mc.github.io/Docs/addon/x-cross/index.print Provides examples of using the `xsound` action to play a sound, both with just the sound name and with specified volume and pitch. ```YAML xsound: BLOCK_NOTE_BLOCK_PLING ``` ```YAML xsound: BLOCK_NOTE_BLOCK_PLING 1 2 ``` -------------------------------- ### Null Button Configuration Example Source: https://bettergui-mc.github.io/Docs/button/index.print An example configuration for a null button, demonstrating a sequence of commands with a delay. This button type does not have a visual representation but executes commands upon interaction. ```YAML null-button: type: null command: - "tell: &aOh..." - "delay: 30" - "tell: &aUhhhh... Hello" close-on-click: true ``` -------------------------------- ### Basic Pattern Mask Example Source: https://bettergui-mc.github.io/Docs/premium/masked-gui/index.print A simple example demonstrating a 'pattern' mask that creates a rectangular border using a single type of button. This illustrates the fundamental usage of the pattern and child mapping. ```YAML demo-slot: mask: pattern pattern: - "xxxxxxxxx" - "x x" - "x x" - "x x" - "x x" - "xxxxxxxxx" child: x: id: emerald name: "&a&lEmerald" ``` -------------------------------- ### Multi-Slot Mask Example with Single Button Source: https://bettergui-mc.github.io/Docs/premium/masked-gui/mask/multi-slot/index.print Illustrates a basic multi-slot mask configuration displaying a single emerald button within a specified slot range (1-1-9-6). This example shows the minimal setup for a multi-slot mask. ```YAML demo-slot: mask: multislot slot: 1-1-9-6 child: emerald-button: id: emerald name: "&a&lEmerald" ``` -------------------------------- ### BetterGUI Plugin Installation Steps Source: https://bettergui-mc.github.io/Docs/index.print This snippet outlines the manual steps required to install the BetterGUI plugin on a Spigot server. It involves downloading the plugin, placing it in the 'plugins' folder, and restarting the server to generate configuration files. ```English 1. Download the plugin 2. Copy/Cut the plugin and paste it to your `plugins` folder 3. Start the server to let it load 4. Stop the server 5. Make some configs and menus 6. Start the server and voila ``` -------------------------------- ### BetterGUI Action Configuration Example Source: https://bettergui-mc.github.io/Docs/action/overview/index.print This YAML configuration defines a 'hello' action within BetterGUI. It demonstrates a sequence of commands, including a message display and a delay, associated with a button named 'Hello Button' with a specific ID and position. The 'COMMAND' section lists the actions to be executed sequentially. ```YAML hello: COMMAND: # Here are the actions - "tell: &eHello There" - "delay: 60" - "tell: &eHello Again" NAME: '&u&lHello Button' ID: stone POSITION-X: 1 POSITION-Y: 1 ``` -------------------------------- ### Example Play Sound Action Usage Source: https://bettergui-mc.github.io/Docs/index.print Illustrates practical usage of the `xsound` action in YAML, showing how to play a sound with default parameters and with custom volume and pitch values. ```YAML xsound: BLOCK_NOTE_BLOCK_PLING xsound: BLOCK_NOTE_BLOCK_PLING 1 2 ``` -------------------------------- ### Configure a BetterGUI Simple Form Example Source: https://bettergui-mc.github.io/Docs/index.print Provides a practical example of configuring a BetterGUI simple form, showcasing how to define the form's title and multiple buttons, each with custom text, an image URL, and a command to execute upon clicking. ```YAML menu-settings: menu-type: simple-form command: simpleform title: "&4&lInfo Form" profile: text: "&cHSGamer" url: "https://raw.githubusercontent.com/HSGamer/hsgamer.github.io/main/static/android-chrome-256x256.png" command: "tell: &eLink: &fhttps://hsgamer.me/" bettergui: text: "&cBetterGUI" url: "https://raw.githubusercontent.com/BetterGUI-MC/.github/main/images/logo.png" command: "tell: &eLink: &fhttps://bettergui-mc.github.io/Docs/" ``` -------------------------------- ### Example Configuration for Paginated Key-Value List Mask Source: https://bettergui-mc.github.io/Docs/premium/index.print Provides a comprehensive YAML example demonstrating the setup of a paginated mask using the `key-value-list` type. It includes the mask definition, a list of dynamic values, and separate buttons for navigating to the previous and next pages. ```YAML # The paginated mask demo-slot: mask: key-value-list slot: 1-7 cycle: false signal: demo-page-signal # This is the signal name used by actions to change the page. value: - material: red_stained_glass_pane name: Button 1 - material: green_stained_glass_pane name: Button 2 - material: blue_stained_glass_pane name: Button 3 - material: yellow_stained_glass_pane name: Button 4 - material: purple_stained_glass_pane name: Button 5 - material: orange_stained_glass_pane name: Button 6 - material: pink_stained_glass_pane name: Button 7 - material: black_stained_glass_pane name: Button 8 - material: white_stained_glass_pane name: Button 9 - material: gray_stained_glass_pane name: Button 10 - material: light_gray_stained_glass_pane name: Button 11 button: id: "{key_material}" name: "&c&l{key_name}" # The button to go to the previous page previous-button: slot: 0 id: arrow name: "&c&lPrevious" command: "previous-page: demo-page-signal" # The action to change the page # The button to go to the next page next-button: slot: 8 id: arrow name: "&a&lNext" command: "next-page: demo-page-signal" # The action to change the page ``` -------------------------------- ### BetterGUI Simple Menu Configuration Example Source: https://bettergui-mc.github.io/Docs/index.print Provides a concrete example of a 'simple' menu configuration, demonstrating how to set up a menu with a custom title, 6 rows, a 'menu' command, and a 5-tick auto-refresh. It includes 'tell' actions for opening and closing, defines an animated default icon, and two specific buttons: a 'spawn-cmd' button and a 'durability-armor' button with custom damage. ```YAML menu-settings: name: '&c&lExample Menu' rows: 6 command: menu auto-refresh: 5 open-action: - "tell: &eYou opened the example menu" close-action: - "tell: &cYou closed the example menu" default-icon: type: animated child: frame1: id: - RED_STAINED_GLASS_PANE - STAINED_GLASS_PANE:14 frame2: id: - GREEN_STAINED_GLASS_PANE - STAINED_GLASS_PANE:13 frame3: id: - BLUE_STAINED_GLASS_PANE - STAINED_GLASS_PANE:11 # Buttons spawn-cmd: COMMAND: 'spawn' NAME: '&u/spawn' LORE: - 'It just executes /spawn' - 'as the player who clicked.' ID: ender_pearl POSITION-X: 1 POSITION-Y: 2 durability-armor: NAME: '&aDamaged armor' LORE: - 'This armor is damaged.' ID: diamond helmet DAMAGE: 100 POSITION-X: 2 POSITION-Y: 2 ``` -------------------------------- ### Example Configuration for Sequence Paginated Mask Source: https://bettergui-mc.github.io/Docs/premium/masked-gui/mask/sequence-paginated/index.print A comprehensive YAML example demonstrating how to configure a 'sequence-paginated' mask with multiple child buttons and integrate navigation buttons ('previous-button', 'next-button') using the defined actions and signals. This setup allows users to browse through a series of buttons as if they were pages. ```YAML # The paginated mask demo-slot: mask: sequence-paginated slot: 1-7 cycle: false signal: demo-page-signal # This is the signal name used by actions to change the page. child: button1: id: red_stained_glass_pane name: "&c&lButton 1" button2: id: green_stained_glass_pane name: "&a&lButton 2" button3: id: blue_stained_glass_pane name: "&9&lButton 3" button4: id: yellow_stained_glass_pane name: "&e&lButton 4" button5: id: purple_stained_glass_pane name: "&5&lButton 5" button6: id: orange_stained_glass_pane name: "&6&lButton 6" button7: id: pink_stained_glass_pane name: "&d&lButton 7" button8: id: black_stained_glass_pane name: "&0&lButton 8" button9: id: white_stained_glass_pane name: "&f&lButton 9" button10: id: gray_stained_glass_pane name: "&7&lButton 10" button11: id: light_gray_stained_glass_pane name: "&8&lButton 11" # The button to go to the previous page previous-button: slot: 0 id: arrow name: "&c&lPrevious" command: "previous-page: demo-page-signal" # The action to change the page # The button to go to the next page next-button: slot: 8 id: arrow name: "&a&lNext" command: "next-page: demo-page-signal" # The action to change the page ``` -------------------------------- ### Trade Mart Example Configuration Source: https://bettergui-mc.github.io/Docs/index.print A practical example demonstrating the configuration of a Trade Mart menu with multiple defined trades. It shows how to set up item requirements, results, and custom item properties like name and lore. ```YAML menu-settings: menu-type: trade title: "&c&lTest Trade" command: trade trade1: item: id: diamond item2: id: redstone result: id: piston trade2: item: id: diamond_block amount: 64 result: id: paper name: "&b&lRich Cerificate" trade3: item: id: paper name: "&b&lRich Cerificate" item2: id: emerald amount: 64 result: id: paper name: "&a&lVillage Cerificate" lore: - "" - "&7Signed by {player}" ``` -------------------------------- ### Example Configuration for Key-Value List Paginated Mask Source: https://bettergui-mc.github.io/Docs/premium/masked-gui/mask/index.print A complete YAML example demonstrating the setup of a 'key-value-list' paginated mask named 'demo-slot'. It includes the mask definition with a list of materials and names, and separate button configurations for 'previous-button' and 'next-button' that use the pagination action commands to control the 'demo-page-signal'. ```YAML # The paginated mask demo-slot: mask: key-value-list slot: 1-7 cycle: false signal: demo-page-signal # This is the signal name used by actions to change the page. value: - material: red_stained_glass_pane name: Button 1 - material: green_stained_glass_pane name: Button 2 - material: blue_stained_glass_pane name: Button 3 - material: yellow_stained_glass_pane name: Button 4 - material: purple_stained_glass_pane name: Button 5 - material: orange_stained_glass_pane name: Button 6 - material: pink_stained_glass_pane name: Button 7 - material: black_stained_glass_pane name: Button 8 - material: white_stained_glass_pane name: Button 9 - material: gray_stained_glass_pane name: Button 10 - material: light_gray_stained_glass_pane name: Button 11 button: id: "{key_material}" name: "&c&l{key_name}" # The button to go to the previous page previous-button: slot: 0 id: arrow name: "&c&lPrevious" command: "previous-page: demo-page-signal" # The action to change the page # The button to go to the next page next-button: slot: 8 id: arrow name: "&a&lNext" command: "next-page: demo-page-signal" # The action to change the page ``` -------------------------------- ### Example Configuration for BetterGUI Argument Processors Source: https://bettergui-mc.github.io/Docs/index.print Provides a practical YAML example demonstrating how to define and configure multiple argument processors (`hello`, `message`) within the `argument-processor` section of a BetterGUI menu's `menu-settings`. It illustrates how these processors can be referenced as variables in button lore. ```YAML menu-settings: command: testargs argument-processor: hello: length: 2 suggest: - Hello you - Welcome back action: "tell: &cHello is required" message: take-remaining: true suggest: - HSGamer - Minecraft World action: "tell: &cMessage is required" button: slot: 0 id: stone name: "&bTest Arguments" lore: - "{arg_hello}, {arg_message}" ``` -------------------------------- ### Example Configuration for Filtered Button Paginated Mask Source: https://bettergui-mc.github.io/Docs/premium/masked-gui/mask/filtered-button-paginated/index.print Provides a complete YAML example demonstrating the setup of a filtered button paginated mask. It includes the main mask configuration with multiple buttons, each having a 'filter-requirement' based on player level, and also shows the configuration for navigation buttons to move between pages. ```YAML # The paginated mask demo-slot: mask: filtered-button-paginated slot: 1-7 cycle: false signal: demo-page-signal # This is the signal name used by actions to change the page. child: button1: id: red_stained_glass_pane name: "&c&lButton 1" filter-requirement: test-level: level: value: 1 take: false button2: id: green_stained_glass_pane name: "&a&lButton 2" filter-requirement: test-level: level: value: 2 take: false button3: id: blue_stained_glass_pane name: "&9&lButton 3" filter-requirement: test-level: level: value: 4 take: false button4: id: yellow_stained_glass_pane name: "&e&lButton 4" filter-requirement: test-level: level: value: 5 take: false button5: id: purple_stained_glass_pane name: "&5&lButton 5" filter-requirement: test-level: level: value: 6 take: false button6: id: orange_stained_glass_pane name: "&6&lButton 6" filter-requirement: test-level: level: value: 10 take: false button7: id: pink_stained_glass_pane name: "&d&lButton 7" filter-requirement: test-level: level: value: 11 take: false button8: id: black_stained_glass_pane name: "&0&lButton 8" filter-requirement: test-level: level: value: 11 take: false button9: id: white_stained_glass_pane name: "&f&lButton 9" filter-requirement: test-level: level: value: 11 take: false button10: id: gray_stained_glass_pane name: "&7&lButton 10" filter-requirement: test-level: level: value: 12 take: false button11: id: light_gray_stained_glass_pane name: "&8&lButton 11" filter-requirement: test-level: level: value: 12 take: false # The button to go to the previous page previous-button: slot: 0 id: arrow name: "&c&lPrevious" command: "previous-page: demo-page-signal" # The action to change the page # The button to go to the next page next-button: slot: 8 id: arrow name: "&a&lNext" command: "next-page: demo-page-signal" # The action to change the page ``` -------------------------------- ### Multi-Slot Mask Example with Three Buttons Source: https://bettergui-mc.github.io/Docs/premium/masked-gui/mask/multi-slot/index.print Shows a multi-slot mask setup with three buttons (emerald, diamond, and redstone), further illustrating how the mask loops through and displays each configured button sequentially in the specified slots. ```YAML demo-slot: mask: multislot slot: 1-1-9-6 child: emerald-button: id: emerald name: "&a&lEmerald" diamond-button: id: diamond name: "&b&lDiamond" redstone-button: id: redstone name: "&c&lRedstone" ```