-
Notifications
You must be signed in to change notification settings - Fork 0
GUI Reference
The BeaconPlus GUI system is designed for maximum flexibility. You can redesign every menu, change every item, and control the visual flow of information. This document provides a deep, proactive guide for server owners to build the perfect interface.
BeaconPlus uses a character-based grid to define inventory layouts.
-
Rows: Each line in the
Layoutlist ingui.ymlrepresents one row of the inventory (9 slots). - Columns: Each character in the line corresponds to one slot (1-9).
-
Mapping: The plugin scans the
Itemssection for aLayout Keythat matches the character used in the grid.
- Standard Minecraft inventories have rows of 9.
- If you provide 3 lines of layout, the inventory will be 27 slots (chest size).
- If you provide 6 lines, it will be 54 slots (double chest).
Use "Filler" items (like glass panes) to create clean layouts. By using characters like G and mapping them to a simple glass pane, you can "bridge" the gaps between functional buttons.
YAML Example:
Menus:
Beacon:
Layout:
- GGGGGGGGG
- G B B G # Two effects separated by space
- GGGGGGGGGTransitions add flavor but can impact the player experience.
-
SLIDE: Items move from one side to the other. -
DISSOLVE: Items are replaced in a "pixelated" pattern. -
EXPAND: Items grow from the center. -
RANDOM: Picks one of the above.
-
Client Lag: Players with very old computers or slow internet might experience "flickering" during complex transitions (
DISSOLVE). -
Server Processing: Transitions are handled by the plugin's internal GUI manager. While highly optimized, opening a 54-slot menu with a
RANDOManimation every single second (by many players) adds a small overhead. -
Recommended: Keep transitions
Enabled: truefor a premium feel, but useAnimation: SLIDEorEXPANDfor the best balance of looks and performance.
These keys in gui.yml -> Items are "Magic". They are hardcoded to specific functions.
| Key | Menu | Core Function |
|---|---|---|
B |
Beacon | The Effect Item. Displays the current level and status of a registered effect. |
A |
Upgrade | Activate/Toggle. The main button to turn an effect level ON or OFF. |
E |
Upgrade | Level Upgrade. Standard button to purchase the next tier using Vanilla Levels. |
D |
Upgrade | Vault Upgrade. Purchase button for Money. |
F |
Upgrade | Item Upgrade. Purchase button for specialized items (e.g. Emeralds). |
O |
Upgrade | Mode Selection. Opens the menu to choose between modes in a tier. |
M |
Modes | Mode Entry. Individual buttons for each selectable mode. |
S |
Beacon | Settings. Shortcut to the Beacon Settings sub-menu. |
L |
Beacon | Language. Shortcut to choose a different UI language. |
V |
Beacon | Access List. Opens the Whitelist/Blacklist manager. |
Z |
Access | List Entry. Displays a player or team on the list for removal. |
W |
Access | Mode Toggle. Switches between Whitelist and Blacklist. |
N / Y
|
Access | Add Player / Add Team. Triggers the input prompts for additions. |
J |
All | Back. Returns to the parent menu. |
I / P
|
Pageable | Navigation. Next Page / Previous Page buttons. |
Many functional items change their look based on the beacon's state.
-
Activated/Deactivated: ForBandAkeys. -
Enabled/Disabled: For purchase buttons (based on if the player has enough currency). -
Level Too Low: Shown if a player tries to activate a tier they haven't bought yet. -
Player/Team/Empty: For the access list entries.
Proactive Advice: Always ensure your Deactivated or Disabled states are visually distinct (e.g., using GRAY_DYE instead of LIME_DYE) so players understand why a click might not be working.
Placeholders can be used in Title, Name, or Lore.
-
{player}: Name of the person looking at the GUI. -
{language.name}: Name of the currently selected language.
-
{beacon_title}: The custom name of the beacon. -
{beacon_power}: Total power generated by the pyramid. -
{beacon_free_power}: Power remaining after subtracting active costs. -
{beacon_used_power}: Total power consumed by active effects. -
{beacon_range}: The effective radius in blocks. -
{power_source_list}: A formatted list of blocks and their power contributions.
-
{effect_name}: Display name of the effect being viewed. -
{effect_description}: General effect description. -
{effect_level}: The highest level the player has reached. -
{effect_selected_level}: The level currently toggled active. -
{effect_max_tier}: Maximum possible level for this effect. -
{level_description}: The specific description of the level tier. -
{level_power_consumption}: How much power this level costs to run. -
{upgrade_cost_list}: Formatted breakdown of requirements for the next level. -
{not_affected_reason_list}: If a player isn't receiving the effect, this lists why (e.g. "No Permission", "Not Whitelisted").
-
{access_list_mode}: "Whitelist" or "Blacklist". -
{access_entry_name}: Name of the entry being displayed. -
{access_entry_type}: "Player" or "Team". -
{access_entry_provider}: The source (e.g. WorldGuard, Factions).
Beacon.yml
All Beacon Effects
- 1. Potion Effect
- 2. Immortality Field
- 3. Potion Duration Boost
- 4. Flight
- 5. Magnet
- 6. Spawner Boost
- 7. Crops Boost
- 8. Keep Chunk Loaded
- 9. Apply Mending
- 10. Command Executor
- 11. Glow
- 12. Attribute Modifier
- 13. Cooldown Reduction
- 14. EXP Boost
- 15. EXP Gain
- 16. Extra Power
- 17. Extra Range
- 18. Fire Control
- 19. Furnace Boost
- 20. Permission
- 21. Prevent Mob Spawning
- 22. Saturation
- 23. Stupid AI