Compatibility
Minecraft: Java Edition
Platforms
Tags
Creators
Details
FOLIA ✅ PAPER ✅ PURPUR ✅ 1.19.4 - 26.3 ✅
Packet-based holograms for your own plugins, and since 2.0.0 also a plugin with /hologramlib commands and saved holograms.
FEATURES
- Types: text, block and item holograms, leaderboards (classic, paged, switchable, single display), podium, progress bars, paged holograms, hover menus, particle text and images, item labels
- Text: MiniMessage, player heads in text without a resource pack (1.21.9+), ItemsAdder emojis, per-player text with or without PlaceholderAPI
- Animations: typing, blink, moving gradient, shine, scramble, rainbow, reveal, cycle. Spin, floating, bounce, pulse, stretch, swing, shake, jelly, pop in/out or your own keyframes, interpolated on the client
- Effects: path animations, transitions (flip, turn, squash, pop, slide, flap, drop, spin), shatter effect
- Interactions: clickable holograms with a cancellable
HologramInteractEvent, hover menus - Visibility: per-player viewers, view permission, view conditions, view distance, entity attachment
- Standalone plugin:
/hologramlibcommand with tab completion, holograms saved inholograms.yml, click actions, import from DecentHolograms, FancyHolograms and HolographicDisplays - Packet-based: no real entities, only hologram packets are decoded, PlaceholderAPI only sends a packet when a viewer's text changed
Run /hologramlib demo on a test server to see every hologram type and animation around you.
DISCLAIMER
Works on Paper, Purpur and Folia 1.19.4 - 26.3 (Folia from 1.20.1). Spigot is not supported.Requires PacketEvents 2.14.0 or newer.
Holograms are display entities, a Java Edition feature. Bedrock players through Geyser don't see player heads in holograms.
Persistent holograms are new. Keep a backup of holograms.yml when you update.
SETUP
- Download the plugin .jar
- Download PacketEvents 2.14.0 or newer
- Put both .jar files into your server's plugins folder and restart
- Create holograms in game with
/hologramlib, or add HologramLib as a dependency to your plugin
COMMANDS
Permission hologramlib.admin, alias /hl.
| Command | What it does |
|---|---|
/hologramlib create <id> <text|item|block> [content] |
Creates a saved hologram where you stand |
/hologramlib content|scale|billboard|background|shadow|placeholders|permission <id> <value> |
Edits a hologram |
/hologramlib delete|info|tp|movehere <id> |
Manages a hologram |
/hologramlib copy <id> <new id> |
Copies a hologram |
/hologramlib list, /hologramlib near [radius] |
Lists all holograms or the ones close to you |
/hologramlib action <id> add <type:data>, /hologramlib action <id> clear |
Click actions: message, command, console, sound, teleport, connect, permission, e.g. command:spawn |
/hologramlib import <decentholograms|fancyholograms|holographicdisplays> |
Imports holograms from another plugin |
/hologramlib demo [clear] |
Spawns a showcase of every feature |
/hologramlib help |
Lists every command |
All messages can be changed in plugins/HologramLib/messages.yml.
PROJECT SETUP
Gradle (Kotlin)
repositories {
maven("https://jitpack.io")
}
dependencies {
compileOnly("com.github.maximjsx:HologramLib:2.0.2")
}
Gradle (Groovy)
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
compileOnly 'com.github.maximjsx:HologramLib:2.0.2'
}
Maven
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.maximjsx</groupId>
<artifactId>HologramLib</artifactId>
<version>2.0.2</version>
<scope>provided</scope>
</dependency>
Add this to your plugin.yml:
depend:
- HologramLib
Shading HologramLib is not recommended. Install it on the server instead.
Code examples
Getting the instance
private HologramManager hologramManager;
@Override
public void onEnable() {
HologramLib.getManager().ifPresentOrElse(
manager -> hologramManager = manager,
() -> getLogger().severe("HologramLib is not loaded"));
}
Creating a hologram
TextHologram hologram = new TextHologram("unique_id")
.setMiniMessageText("<aqua>Hello world!")
.setSeeThroughBlocks(false)
.setBillboard(Display.Billboard.VERTICAL)
.setShadow(true)
.setScale(1.5F, 1.5F, 1.5F)
.setTextOpacity((byte) 200)
.setBackgroundColor(Color.fromARGB(60, 255, 236, 222).asARGB())
.setAlignment(TextDisplay.TextAlignment.CENTER)
.setMaxLineWidth(200);
Spawning and removing
hologramManager.spawn(hologram, location);
hologramManager.remove(hologram);
Make it move and react
hologram.setTextProvider(player -> "<gold>Hey " + player.getName());
hologramManager.applyMotion(hologram, MotionAnimation.floating(0.2F, 40));
hologramManager.applyAnimation(hologram, TextAnimation.typing("<aqua>", "Welcome to the server"));
hologram.onInteract(player -> player.sendMessage("You clicked me"));
Your own text animation
TextAnimation animation = new TextAnimation()
.setDelay(20) // ticks before the first frame
.setSpeed(20) // ticks per frame
.addFrame("<red>First frame")
.addFrame("<green>Second frame")
.addFrame("Third frame<newline>Second line in third frame")
.addFrame("Last frame");
hologramManager.applyAnimation(hologram, animation);
Saved holograms
Kept in holograms.yml and spawned again on every start.
HologramLib.getPersistentHolograms().ifPresent(saved -> saved.put(
HologramData.create("spawn_sign", HologramData.Type.TEXT, location, "<gold>Welcome!")
.withActions(List.of(new ClickAction(ClickAction.Type.COMMAND, "spawn")))));
Leaderboard
LeaderboardHologram leaderboard = new LeaderboardHologram(LeaderboardHologram.LeaderboardOptions.builder()
.title("Top Players - Kills")
.suffix("kills")
.maxDisplayEntries(10)
.showEmptyPlaces(true)
.leaderboardType(LeaderboardHologram.LeaderboardType.TOP_PLAYER_HEAD)
.build(), "top_kills");
leaderboard.setPlayerScore(uuid, "MaximDe", 1000);
leaderboard.setPlayerScore(otherUuid, "dream", 950);
hologramManager.spawn(leaderboard, location);
Text leaderboard
A whole leaderboard in one text display, with aligned scores, toggles under it and animated rows.
TextLeaderboard board = new TextLeaderboard("kills")
.setTitle("<gold><bold>Top Kills")
.setEntries(List.of(new TextLeaderboard.Entry(uuid, "MaximDe", 120)))
.addToggle(TextLeaderboard.Toggle.of("period", "Daily", "Weekly", "Lifetime"))
.setTransition(Transition.FLIP)
.setCycle(200);
hologramManager.spawn(board, location);
Wiki
Every feature with code examples https://github.com/maximjsx/HologramLib/wiki
Using an AI assistant? Give it llms.txt, a compact reference of the whole API.
Example/Showcase Plugin
https://github.com/HologramLib/ExamplePlugin



