All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Server API

Server API

by AuxAtlas • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Fabric Server API

A server api for Fabric aiming to simplify server-side mods significantly. With big goals of make server-sided fabric a much more stable and enjoyable experience.

Hotkey Menu

  • Currently bound to Shift+F
  • DISABLED by default
    • Enable via the config file for ServerAPI

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 the "ADMIN" button on the top-right of it. This will require either the player be an OP, or that they have the serverapi.admin permission.

More features for the Hotkey Menu system in the coming months(hopefully).

Events

  • PlayerEvents.JUMP
    • A cancelable jump event for all ServerPlayerEntity
  • PlayerEvents.SNEAK
    • A cancelable sneak event for all ServerPlayerEntity
  • PlayerEvents.BLOCK_BREAK
    • A cancelable event for when a player breaks a block

ServerUtils

A utility class featuring a array of static methods for you to use!

  • Block getBlockByTag(Identifier);
  • ItemStack getHeadFromRaw(String rawId);
  • void setStackModelData(ItemStack, int); // For resource packs
  • void setStackLore(ItemStack, List<MutableText>);
  • MutableText getText(String, Formatting...);

ServerAPI

The "main" API to access... or at least thats the goal for the future. Limited use for now!

  • ServerPlayerEntity getPlayerByUUID(UUID, MinecraftServer);
  • ServerAPI.Logger
    • Gives a string infused with color attributes for you to log colored text to the console. Abusable so may be disabled by default in future versions via a config option?
    • String Success(String); // green color
    • String Warning(String); // yellow color
    • String Error(String); // Red color
    • String Debug (String); // cyan color

Future Goals - Further Out

  • A "ServerPlayer" class that would abstract a lot of the more "complex" things about dealing with server-sided fabric mods that interact directly with the Player class.
  • A lot more events.
  • Easier configuration file management for YOUR server-side mods!
  • Easily read/write from offline players.
  • GUI configuration management for your server-side mods.

Notice: Bottles and all of its relations have been scrapped as a concept. Sorry for the hype!

How to Install Server API (Mod)

Server API by AuxAtlas is verified for Fabric across Minecraft versions 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1 (latest release: 1.0.10+1.21.1, file size: 948 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1) and platform (Fabric).
  2. Make sure you have the compatible loader or environment installed for Fabric.
  3. Move the downloaded Server API file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.19.x
Fabric
last yr. 1
1.19.x
Fabric
last yr. 1
1.19.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.19.x
Fabric
last yr. 1
1.18.2
Fabric
last yr. 1
1.19.2
Fabric
last yr. 1
1.19.2
Fabric
last yr. 1
1.19.2
Fabric
last yr. 1
  • Updated to 1.21.1
  • Removed dependencies for Polymer and STA
attempt at server-sided GUI Inputs #2
Removed dependencies and code for Polymer
Fixed bug with SNEAK event
removed include on permissions api
backport to 1.19.2
backpack to mc1.19.2
Fixed ServerAPI.CONFIG_PATH to use forward slashes instead of backslashes.
SWITCHED LICENSE!! Changed default config to not enable the hotkey-menu and default config's teleportation time.
FIXED massive issues with not including in build.gradle; Also added SoulShardItem, may not work on this item implementation further, but its planned to be a better alternative to /tpa AKA /tpaccept
Added menu system with a hotkey. Added config. Added PersistentData. Fixed a few misc issues.
Fixed 'fabric-permissions-api' dependency not being included in build.
Updated to 1.20.1
Direct port of library to Minecraft 1.18.2(same library version of v1.0.2)
Added PlayerEvents.BLOCK_BREAK event.
Server API Icon
Download Server API
Select game version
Select platform