Repository navigation
Configuration
Lord_Lofi edited this page Apr 19, 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 |
{key} |
key-required, key-consumed |
{cost} |
vault-insufficient-funds, vault-charged |
{balance} |
vault-insufficient-funds |
{prompt} |
editor-input-prompt |
{error} |
editor-save-error |
key-required: "<prefix><red>This box requires a <white>{key}<red> to open."
key-consumed: "<prefix><gray>Your <white>{key}<gray> was consumed."vault-unavailable: "<prefix><red>Economy is not available on this server."
vault-insufficient-funds: "<prefix><red>You need <white>{cost}<red> to open this box. <dark_gray>(balance: {balance})"
vault-charged: "<prefix><gray>You were charged <white>{cost}<gray>."editor-input-prompt: "<prefix><aqua>Chat input required: <white>{prompt}"
editor-input-cancel: "<prefix><gray>Type <white>cancel<gray> to abort."
editor-box-id-taken: "<prefix><red>A box with ID '<white>{id}<red>' already exists."
editor-save-success: "<prefix><green>Box '<white>{box}<green>' saved and reloaded."
editor-save-error: "<prefix><red>Could not save: <white>{error}"
editor-deleted: "<prefix><yellow>Box '<white>{box}<yellow>' deleted."
editor-hold-item: "<prefix><red>Hold an item in your main hand first."
editor-invalid-number: "<prefix><red>That is not a valid number."
editor-shift-to-delete: "<prefix><red>Shift-click to confirm deletion."
editor-reward-no-item: "<prefix><red>Set the reward item before saving."Run /lofibox reload to reload both config files and all box definitions without restarting the server.