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.
| Command | What it does |
|---|---|
/md hologram create <name> <kit> | Creates a hologram where you stand. The kit must be ranked |
/md hologram list | Lists the holograms |
/md hologram delete <name> | Removes one |
/md hologram create nodebuff-top nodebuffNames 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-secondsinmatchmaking.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"| Key | Placeholders |
|---|---|
hologram-title | <kit> |
hologram-line | <position>, <player>, <elo> |
hologram-empty | Shown 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 boxingA shorter board: set leaderboard.size: 5 in matchmaking.yml and restart.
Problems
| Problem | Cause and fix |
|---|---|
| A hologram is missing after a restart | Its chunk was not loaded yet. It spawns when the chunk loads |
holograms.yml is wrong | Delete the entry with /md hologram delete, or edit the file and restart |
| The kit is not found | Only ranked kits have a board. Check ranked: true in the kit file |
Related: Stats and leaderboards, Ranked and ELO.