ModsFinder

Tophat

by JustJabka

Tophat is a Fabric library that exposes server-side utilities through datapacks, covering GUI menus, player data access and related helpers.

FabricServer-side onlyMIT LicenseOpen source26.2

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

  1. Player data access

    The vanilla data command can read and modify player data through Tophat, letting datapacks change stored values.

  2. Opening menus for players

    A datapack function can open a menu for a player, with the container name and placement chosen in the call.

  3. Closing menus for players

    A menu can be closed for a player, and the call can be limited to a specified menu type.

  4. Utilities for datapacks

    Beyond menus and player data, the mod gathers helpers for GUI and motion work that datapacks can use without custom code.

Compatibility

Latest build for each game version and loader.

26.21.0.0
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 1

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required

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?

No. The mod is server-side only, so players can join a server running it without installing anything.

What does Tophat require?

Fabric API is required, and the mod is published for Fabric only, so it cannot run on Forge or NeoForge.

Which game version does Tophat support?

Files are published for 26.2 only, with 1.0.0 as the latest file, first published on 2026-07-05.

Where can the full list of functions be found?

The project wiki describes the full functionality, and the source code and issue tracker are public.

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

All projects

Similar mods

Official listing

Owner
JustJabka
Published
2026-07-05
Updated on Modrinth
2026-07-05
Facts verified
2026-10-15

Tags