Skip to content

HeadDatabase Integration

Lord_Lofi edited this page Apr 18, 2026 · 4 revisions

HeadDatabase Integration

LofiBox has built-in support for HeadDatabase. You can use any HDB head as a box item or as a reward item.


Setup

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.


Using HDB Heads

Add head-database-id to any item: section. This works for both the box item itself and for individual rewards.

Box Item Example

name: "<gold>Treasure Crate"

item:
  head-database-id: "3337"
  name: "<gold>✦ Treasure Crate ✦"
  lore:
    - ""
    - "<gray>Right-click to open!"

Reward Item Example

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!"

Finding Head IDs

  1. Open the HeadDatabase GUI in-game with /hdb (or your configured command).
  2. Find the head you want.
  3. Hover over it — the ID is shown in the item lore.
  4. Use that number as head-database-id.

Fallback Behaviour

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.

Clone this wiki locally