ActionLib
by kituin
ActionLib, a library by kituin, lets other mods register their own custom click and hover actions for text components in Minecraft.
What it does
ActionLib is a developer library. It registers new HoverEvent.Action types, so a mod can attach its own hover behavior to text, and it parses HoverEvent JSON correctly when text is sent through tellraw commands. Once an action is registered, text that uses it works in the same way as the built-in hover actions.
The library is aimed at mod developers rather than players, who see only the results in chat, books and tooltips. Every player and the server need a copy of the mod. Files are published for Fabric, Forge, NeoForge and Quilt across 19 release versions, 1.16.5 – 1.21, and the code is released under the MIT License, so it is open source.
Key features
Custom hover actions
Developers can register new HoverEvent.Action types and use them in text components shown to players.
Tellraw HoverEvent parsing
HoverEvent JSON sent through the tellraw command is parsed correctly, including the custom actions.
Hover in written books
Registered hover events can be used in written books, so text in a book can show extra information on hover.
Registration after startup
Actions can be registered after the game has started, so mods can add them at any point during loading.
Gallery
Compatibility
Latest build for each game version and loader.
1.21.x1 of 1 version with builds
1.20.x7 of 7 versions with builds
1.19.x5 of 5 versions with builds
1.18.x3 of 3 versions with builds
1.17.x2 of 2 versions with builds
1.16.x1 of 1 version with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Mod developers
Developers who need hover tooltips with behavior beyond the vanilla actions can register their own through the library.
Server command output
Server owners using tellraw with custom hover data get correct parsing when the library is installed.
Who it’s for: Mod developers building text-based features, and server owners who run tellraw commands with hover data. Players only need it when another mod they install requires it.
Questions
Does ActionLib need to be installed on both sides?
Which loaders does ActionLib support?
Can players use ActionLib without a mod that needs it?
In the catalog
ActionLib is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 15,770 mods support Minecraft 1.21.
More from kituin
Similar mods
What the author says
This is a developer library for registering HoverEvent.Action After registering, - Correctly parsing HoverEvent json with /tellraw - Use HoverEvent in book
Official listing
- Modrinth page
- modrinth.com/mod/actionlib
- Owner
- kituin
- Published
- 2024-02-03
- Updated on Modrinth
- 2024-06-18
- Facts verified
- 2026-10-15
