Tophat
by JustJabka
Tophat is a Fabric library that exposes server-side utilities through datapacks, covering GUI menus, player data access and related helpers.
What it does
Tophat adds a set of utilities that datapacks can call. Its main area is player data access: the vanilla data command can read and modify a player's stored data, so pack authors do not need custom Java code for that. Menu handling is covered as well, with commands that open a menu for a player and close the one they have open.
Closing a menu can be limited to a specified menu type, and opening a menu can name a container and choose whether it opens on top of other menus, with that option off by default. The mod is server-side only, so players join without installing it, and it requires Fabric API. Files are published for Fabric alone, for the 26.2 game version, with 1.0.0 as the latest file from 2026-07-05. The full set of functions is described on the project wiki, and the source code is released under the MIT License, which makes the mod open source.
Key features
Player data access
The vanilla data command can read and modify player data through Tophat, letting datapacks change stored values.
Opening menus for players
A datapack function can open a menu for a player, with the container name and placement chosen in the call.
Closing menus for players
A menu can be closed for a player, and the call can be limited to a specified menu type.
Utilities for datapacks
Beyond menus and player data, the mod gathers helpers for GUI and motion work that datapacks can use without custom code.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Use cases
Datapack interfaces
Pack authors can open custom menus for players from a function, then close them when the interaction ends.
Player data edits on a server
Server owners running command-driven content can read or change player data with the vanilla data command.
Who it’s for: Datapack authors and server owners who want menu and player data helpers without writing a Java mod of their own. Players need nothing installed, since the mod runs only on the server.
Questions
Does Tophat need to be installed on the client?
What does Tophat require?
Which game version does Tophat support?
Where can the full list of functions be found?
In the catalog
Tophat is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 13,894 mods support Minecraft 26.2.
More from JustJabka
Similar mods
Official listing
- Modrinth page
- modrinth.com/mod/top-hat
- Owner
- JustJabka
- Published
- 2026-07-05
- Updated on Modrinth
- 2026-07-05
- Facts verified
- 2026-10-15
