ModsFinder

Server API

by AuxAtlas

Server API is a Fabric library for server-side mods, offering a cancelable jump and sneak event for server players, plus a hotkey menu with teleport to spawn.

FabricServer-side onlyGNU Lesser General Public License v3.0 onlyOpen source1.18.2 – 1.21.1

What it does

Server API hooks into server-side player actions. It exposes cancelable events for jumping and sneaking on ServerPlayerEntity, and a block break event through PlayerEvents.BLOCK_BREAK. Other mods can listen to these events to build their own server features.

The mod also ships a hotkey menu bound to Shift+F. It is disabled by default and is turned on through the ServerAPI config file. When enabled, the menu lets a player teleport to spawn; admins must first set the spawn through a menu opened from the ADMIN button at the top right. Using the menu requires either operator status or the serverapi.admin permission.

The library needs Fabric and is released under the GNU Lesser General Public License v3.0 only, so the source is open. It is server-side only: players join without installing it, and only the server runs it. The latest Fabric file is 1.0.10+1.21.1 for 1.21.1, and files cover 1.18.2 – 1.21.1 across nine release versions.

Key features

  1. Cancelable jump event

    Mods can listen for jumps by ServerPlayerEntity and cancel them when needed.

  2. Cancelable sneak event

    A sneak event on ServerPlayerEntity can also be canceled, giving other mods control over crouching.

  3. Block break event

    PlayerEvents.BLOCK_BREAK lets server-side mods react to block breaking before it happens.

  4. Spawn teleport hotkey

    An optional Shift+F menu lets players teleport to the spawn set by admins, once the config option is enabled.

Compatibility

Latest build for each game version and loader.

1.21.x1 of 1 version with builds
1.21.11.0.10+1.21.1
1.20.x2 of 2 versions with builds
1.20.11.0.10+1.20.1
1.201.0.6b+1.20.1
1.19.x5 of 5 versions with builds
1.19.41.0.7+1.19.2
1.19.31.0.7+1.19.2
1.19.21.0.10+1.19.2
1.19.11.0.10+1.19.2
1.191.0.10+1.19.2
1.18.x1 of 1 version with builds
1.18.2mc1.18.2+v1.0.2
ReleaseBetaAlphaNot available

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

Use cases

Server mod developers

Developers can build server features on the jump, sneak and block break events without writing the hooks themselves.

Server administrators

Admins can set the spawn from the ADMIN button and grant the serverapi.admin permission to chosen players.

Who it’s for: Server owners who want a teleport-to-spawn hotkey, and developers who write server-side Fabric mods that need player action events. The mod does nothing for clients that lack it, because players join without installing anything.

Questions

Does a player need Server API to join a server that runs it?

No. Only the server needs it, and players join without installing anything.

How is the spawn teleport hotkey enabled?

It is disabled by default and turned on through the ServerAPI config file. Admins must then set the spawn from the menu opened by the ADMIN button at the top right.

Which Minecraft versions does Server API support?

Files cover 1.18.2 – 1.21.1 across nine release versions, with 1.0.10+1.21.1 as the latest Fabric file for 1.21.1.

In the catalog

Server API is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 32,366 mods support Minecraft 1.21.1.

More from AuxAtlas

All projects

Similar mods

What the author says

The hotkey menu currently just allows users to teleport to spawn. In the future it will allow MUCH more including configuration screens for other server-side mods, alternative type of TPA, trading, dueling, and many others. To use the current "teleport to spawn" feature, admins must first set spawn in the menu via…
AuxAtlas, on the Modrinth page

Official listing

Owner
AuxAtlas
Published
2022-10-24
Updated on Modrinth
2024-08-30
Facts verified
2026-10-15

Tags