Skip to Content
MineDuels

Holograms

Floating leaderboard text in the world: create, list and delete, how they stay correct, and their wording.

A hologram is a floating text that shows the top players of a ranked kit. It follows the leaderboard on its own.

Commands

All need mineduels.admin.

CommandWhat it does
/md hologram create <name> <kit>Creates a hologram where you stand. The kit must be ranked
/md hologram listLists the holograms
/md hologram delete <name>Removes one
/md hologram create nodebuff-top nodebuff

Names are lower case. A name that is taken is refused.

How it works

  • A hologram is a text display entity. It is spawned when its chunk loads and removed on shutdown. It is never saved with the world, so a restart cannot leave a copy behind.
  • Positions and kits are saved in holograms.yml. The file is written when you create or delete one.
  • The text is rebuilt after every leaderboard refresh (leaderboard.refresh-seconds in matchmaking.yml, 60 by default). It reads the cached board, so it never queries the database.
  • All entity work runs on the region thread of the hologram's chunk, so it is safe on Folia.

The number of lines is the leaderboard size in matchmaking.yml (10 by default, up to 100).

Wording

In messages.yml:

hologram-title: "<gradient:#ff5f6d:#ffc371><bold>Top <kit></bold></gradient>"
hologram-line: "<gray>#<position></gray> <white><player></white> <dark_gray>-</dark_gray> <yellow><elo></yellow>"
hologram-empty: "<gray>No ranked games yet"
KeyPlaceholders
hologram-title<kit>
hologram-line<position>, <player>, <elo>
hologram-emptyShown while nobody has a ranked game in the kit

Examples

One hologram per kit at the spawn:

/md hologram create nodebuff nodebuff
/md hologram create sumo sumo
/md hologram create boxing boxing

A shorter board: set leaderboard.size: 5 in matchmaking.yml and restart.

Problems

ProblemCause and fix
A hologram is missing after a restartIts chunk was not loaded yet. It spawns when the chunk loads
holograms.yml is wrongDelete the entry with /md hologram delete, or edit the file and restart
The kit is not foundOnly ranked kits have a board. Check ranked: true in the kit file

Related: Stats and leaderboards, Ranked and ELO.

On this page