Repository navigation
HeadDatabase Integration
Lord_Lofi edited this page Apr 18, 2026
·
4 revisions
LofiBox has built-in support for HeadDatabase. You can use any HDB head as a box item or as a reward item.
No configuration is required. If HeadDatabase is installed, LofiBox detects it at startup and waits for the DatabaseLoadEvent before enabling the hook. Heads requested before the database loads will fall back to the configured material.
Add head-database-id to any item: section. This works for both the box item itself and for individual rewards.
name: "<gold>Treasure Crate"
item:
head-database-id: "3337"
name: "<gold>✦ Treasure Crate ✦"
lore:
- ""
- "<gray>Right-click to open!"rewards:
skull_reward:
weight: 10
display-name: "<yellow>Decorative Head"
item:
head-database-id: "9876"
name: "<yellow>Trophy Head"
lore:
- "<gray>A rare decorative head"
actions:
- "[message] <yellow>You received a rare head!"- Open the HeadDatabase GUI in-game with
/hdb(or your configured command). - Find the head you want.
- Hover over it — the ID is shown in the item lore.
- Use that number as
head-database-id.
If HeadDatabase is not installed, or the database hasn't loaded yet, or the ID is invalid, LofiBox falls back to the material field (defaulting to CHEST if that's also absent). This means boxes load safely even on servers without HeadDatabase.