Repository navigation
LofiBox 1.0.0
LofiBox v1.0.0
Initial release.
Features
Core
- YAML-driven mystery boxes — one file per crate in
plugins/LofiBox/boxes/ - Weighted reward pools with per-player permission gating; ineligible rewards re-roll automatically
- CSGO-style decelerating spin animation (3-row GUI, 52-item strip)
- Paginated reward preview GUI with chance percentages (
/lofibox preview <box>) - Physical crate items tagged with PDC — right-click to consume and open
- Per-player open stats tracked in
plugins/LofiBox/stats/<uuid>.yml - Hot reload via
/lofibox reload— no server restart required
Action System
[message],[actionbar],[title],[sound],[command],[console]actions fire on win{player},{uuid},{reward},{box}placeholders available in all action strings- PlaceholderAPI placeholders parsed inside action strings when PAPI is installed
HeadDatabase Integration (optional)
- Specific heads by numeric ID via
head-database-id - Random heads from a built-in HDB category via
head-database-category(e.g.ANIMALS,MONSTERS) - Custom search-term pools defined in
head-categories.yml— filter HDB's full head list by name and tags - Multiple search terms per pool supported; results are deduplicated
- Pools built once at startup and cached; rebuilt on
/lofibox reload - Graceful fallback to
materialfield if HDB is unavailable or a category returns no results
Item Support
- Standard vanilla items with enchantments and custom model data
- HeadDatabase heads (specific or random)
- Base64 serialized items — preserves full PDC data for MMOItems, Oraxen, Nexo, ItemsAdder, MythicMobs, ExecutableItems
Integrations
- PlaceholderAPI —
%lofibox_total_opened%,%lofibox_opened_<boxId>% - LuckPerms compatible — uses standard Bukkit permission API
- MiniMessage formatting throughout — gradients, colors, hover text
Commands
| Command | Description |
|---|---|
/lofibox give <box> <player> [amount] |
Give a box item to a player |
/lofibox open <box> |
Open a box as admin (no item consumed) |
/lofibox preview <box> |
View all rewards and chances |
/lofibox list |
List all loaded boxes |
/lofibox stats [player] |
View open counts |
/lofibox reload |
Reload all configs and boxes |
Aliases: /mb, /crate, /lbox
Requirements
| Dependency | Required |
|---|---|
| Paper 1.21.x | ✅ Yes |
| PlaceholderAPI | ❌ Optional |
| HeadDatabase | ❌ Optional |
| LuckPerms | ❌ Optional |