-
Notifications
You must be signed in to change notification settings - Fork 0
GUI Reference
BeaconPlus allows you to completely redesign every menu in the plugin. You are not stuck with a hardcoded layout. You can move buttons, change their icons, add decorative glass, or even shrink the menu to a single row.
We use a "Draw it yourself" system. You literally draw the shape of the inventory using characters in the gui.yml file.
- Make it compact: Use 3 rows for a clean, simple look.
- Make it grand: Use 6 rows (Double Chest size) to fit tons of information.
- The Catch: You cannot create "Scrollable" menus or exceed 6 rows (54 slots), as that is a physical limit of the Minecraft client.
In gui.yml, you will see a Layout section. Each character represents one slot.
Menus:
Beacon:
Layout:
- " " # Row 1: Empty air (Space character)
- " GGGGGGG " # Row 2: 'G' (Glass Panes) bordering the middle
- " G B G " # Row 3: 'B' (The Beacon Effect button) in the center
- " GGGGGGG " # Row 4: Border
- " " # Row 5: AirIn this example, the menu is 5 rows tall, with a glass box floating in the middle.
Each character (like B, A, G) is linked to a specific function in the Items section.
-
BEffect Icon: Displays the current effect's status (Level, Duration). -
AToggle Switch: Toggles the effect ON or OFF. -
SSettings: Opens the "Beacon Settings" sub-menu. -
VAccess List: Opens the Whitelist/Blacklist manager. -
JBack Button: Returns to the previous screen.
These appear in the "Upgrade Effect" menu.
-
EXP Upgrade: Purchase using Vanilla XP Levels. -
DMoney Upgrade: Purchase using Server Economy (Vault). -
FItem Upgrade: Purchase using Items. -
OMode Selector: Switch between effect modes.
These appear in the Whitelist/Blacklist manager.
-
NAdd Player: Prompts to type a player name to add. -
YAdd Team: Prompts to add a Party/Team. -
WMode Toggle: Switches list between "Whitelist" and "Blacklist". -
ZThe Entry: Represents a person on the list.
For every button, you can change the Material, Name, and Lore. You can even make them look different based on the situation (Conditions).
You want the button to look like a Lime Dye when On, and Gray Dye when Off.
Items:
A: # The Key used in the layout
Type: LIME_DYE
Name: "&a&lENABLED"
Lore:
- "&7Click to disable"
# "The Catch": What if it's currently OFF?
# We use specific "States" to handle this.
States:
Unchecked: # State name for "OFF"
Type: GRAY_DYE
Name: "&c&lDISABLED"
Lore:
- "&7Click to enable"-
Unchecked: Used for Toggle buttons when they are OFF. -
Disabled: Used for Upgrade buttons when the player cannot afford the cost.-
Possibility: Use
BARRIERitem to clearly show they can't buy it yet.
-
Possibility: Use
-
Completed: Used for Upgrade buttons when the effect is already Max Level.
You can use these placeholders in the Name or Lore of any item to display dynamic info.
-
{player}: The name of the player looking at the menu. -
{beacon_power}: The amount of "Pyramid Power" this beacon has. -
{beacon_range}: The current radius (e.g., "50 blocks").
-
{effect_level}: The current level (e.g., "Speed I"). -
{next_level}: The level they are buying content (e.g., "Speed II"). -
{cost}: How much the upgrade costs. -
{balance}: The player's current money/items.
-
{target_name}: The name of the person on the whitelist card.
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