Repository navigation
Configuration
Lord_Lofi edited this page Apr 18, 2026
·
3 revisions
LofiBox has two configuration files: config.yml for behaviour settings and messages.yml for all player-facing text.
# What to do when a player's inventory is full when receiving a reward.
# DROP - drop the item at the player's feet
full-inventory-action: DROP
# Whether to show actual weight numbers in the preview GUI.
# false = show only approximate tier labels (Common / Rare / Epic / Legendary)
preview-show-weights: true
# Sound played when a player starts opening a box (can be overridden per-box).
default-open-sound: "block.chest.open"
# Sound played when the spin stops and the winner is revealed.
default-win-sound: "entity.player.levelup"
# Firework burst on win.
win-firework: true| Key | Default | Description |
|---|---|---|
full-inventory-action |
DROP |
What happens when the player's inventory is full on reward |
preview-show-weights |
true |
Show exact weight numbers in the preview GUI |
default-open-sound |
block.chest.open |
Fallback open sound if not set per-box |
default-win-sound |
entity.player.levelup |
Fallback win sound if not set per-box |
win-firework |
true |
Spawn a firework at the player on win |
All messages use MiniMessage formatting. The <prefix> tag is replaced with the value of the prefix key.
prefix: "<gray>[<gradient:#6366f1:#a78bfa>LofiBox</gradient><gray>] "
reload: "<prefix><green>Configuration reloaded."
no-permission: "<prefix><red>You don't have permission to do that."
box-opened: "<prefix><aqua>Opening <white>{box}<aqua>..."
reward-won: "<newline><gradient:#6366f1:#a78bfa> ✦ Congratulations! ✦</gradient><newline> <gray>You won <white>{reward}<gray> from <white>{box}<gray>!<newline>"
give-success: "<prefix><green>Gave <white>{amount}x {box}<green> to <white>{player}<green>."
# ... (see full file for all keys)| Placeholder | Available in |
|---|---|
{box} |
box-opened, reward-won, give-success, give-received |
{reward} |
reward-won |
{player} |
give-success, stats-header |
{count} |
stats-line |
{amount} |
give-success, give-received |
{id} |
list-line |
Run /lofibox reload to reload both config files and all box definitions without restarting the server.