ServerLibraries
⚪ Last updated 2024⚠️ Install Order · 2 steps
Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.
🖼️ Gallery (1 images)
🔍 Analysis
- 👍 0.1% endorsement rate
- 🏆 #768 of 888 fabric mods in this game by downloads
📋 About This Mod
# ServerLibraries !(https://img.shields.io/modrinth/dt/kjqxZ07F?style=for-the-badge&logo=modrinth&color=00AF5C) !(https://img.shields.io/badge/Source_code-Available-src?style=for-the-badge&color=00AF5C&logo=github&label=Source%20code&link=https://github.com/VitacraftOrg/ServerLibraries) !(https://wakatime.com/badge/github/Relism/ServerLibraries.svg?style=for-the-badge&label=Modrinth%20Projects&link=https%3A%2F%2Fmodrinth.com%2Fuser%2FRelism) !(https://github.com/VitacraftOrg/ServerLibraries/blob/master/images/banner1.png?raw=true) **ServerLibraries** is a library for Minecraft server-side Fabric mod development, aiming to simplify the development experience and make it feel like making a Bukkit-based plugin. ## Features - Simplified event handling with hundreds of mapped events. - Easy sync/async scheduling. ## Example Usage Here's an example of how to use **ServerLibraries** to handle events: ```java // Listener class that handles server events public class ExampleListener implements Listener { @EventHandler public void onPlayerChatEvent(@NotNull PlayerChatEvent event) { event.setCancelled(true); ServerPlayerEntity player = event.getPlayer(); String message = event.getMessage(); // Format the message to display the player's name followed by the message String formattedMessage = player.getName().getString() + " > " + message; // Broadcast the formatted message to all players and log it in the console msg.broadcast(formattedMessage); msg.log(formattedMessage); } @EventHandler public void onPlayerMoveEvent(@NotNull PlayerMoveEvent event) { // Get the player and their position ServerPlayerEntity player = event.getPlayer(); BlockPos pos = player.getBlockPos(); // Format and send the coordinates as an action bar message String message = "X: " + pos.getX() + " Y: " + pos.getY() + " Z: " + pos.getZ(); msg.sendActionBar(player, message); } } // Main Fabric mod class public class ExampleMod implements ModInitializer { @Override public void onInitialize() { EventsRegistry.registerListener(new ExampleListener()); } } ``` ## Installation To include ServerLibraries in your project, add the following to your `build.gradle` file. ## Maven Repository ```groovy repositories { exclusiveContent { forRepository { maven { name = "Modrinth" url = "https://api.modrinth.com/maven" } } filter { includeGroup "maven.modrinth" } } } ``` ## Dependency Add the following dependency. Replace `<version>` with the version you want to use. You can find available versions (https://modrinth.com/mod/serverlibraries/versions) or use the version below for the latest stable release. !(https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.modrinth.com%2Fv2%2Fproject%2FkjqxZ07F&query=%24..versions%5B-1%3A%5D&style=flat-square&logo=gradle&label=latest%3Astable&color=00AF5C&link=https%3A%2F%2Fmodrinth.com%2Fmod%2Fserverlibraries) ```groovy dependencies { modImplementation "maven.modrinth:kjqxZ07F:<version>" } ``` ## Documentation Docs and Javadocs can be found on (https://relism.github.io/ServerLibraries).
# ServerLibraries
!(https://img.shields.io/modrinth/dt/kjqxZ07F?style=for-the-badge&logo=modrinth&color=00AF5C) !(https://img.shields.io/badge/Source_code-Available-src?style=for-the-badge&color=00AF5C&logo=github&label=Source%20code&link=https://github.com/VitacraftOrg/ServerLibraries) !(https://wakatime.com/badge/github/Relism/ServerLibraries.svg?style=for-the-badge&label=Modrinth%20Projects&link=https%3A%2F%2Fmodrinth.com%2Fuser%2FRelism)
!(https://github.com/VitacraftOrg/ServerLibraries/blob/master/images/banner1.png?raw=true)
ServerLibraries is a library for Minecraft server-side Fabric mod development, aiming to simplify the development experience and make it feel like making a Bukkit-based plugin.
## Features - Simplified event handling with hundreds of mapped events. - Easy sync/async scheduling.
## Example Usage
Here's an example of how to use ServerLibraries to handle events:
```java // Listener class that handles server events public class ExampleListener implements Listener {
@EventHandler public void onPlayerChatEvent(@NotNull PlayerChatEvent event) { event.setCancelled(true); ServerPlayerEntity player = event.getPlayer(); String message = event.getMessage(); // Format the message to display the player's name followed by the message String formattedMessage = player.getName().getString() + " > " + message; // Broadcast the formatted message to all players and log it in the console msg.broadcast(formattedMessage); msg.log(formattedMessage); }
@EventHandler public void onPlayerMoveEvent(@NotNull PlayerMoveEvent event) { // Get the player and their position ServerPlayerEntity player = event.getPlayer(); BlockPos pos = player.getBlockPos(); // Format and send the coordinates as an action bar message String message = "X: " + pos.getX() + " Y: " + pos.getY() + " Z: " + pos.getZ(); msg.sendActionBar(player, message); } }
// Main Fabric mod class public class ExampleMod implements ModInitializer { @Override public void onInitialize() { EventsRegistry.registerListener(new ExampleListener()); } } ```
## Installation
To include ServerLibraries in your project, add the following to your `build.gradle` file.
## Maven Repository ```groovy repositories { exclusiveContent { forRepository { maven { name = "Modrinth" url = "https://api.modrinth.com/maven" } } filter { includeGroup "maven.modrinth" } } } ```
## Dependency
Add the following dependency. Replace `
!(https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.modrinth.com%2Fv2%2Fproject%2FkjqxZ07F&query=%24..versions%5B-1%3A%5D&style=flat-square&logo=gradle&label=latest%3Astable&color=00AF5C&link=https%3A%2F%2Fmodrinth.com%2Fmod%2Fserverlibraries)
```groovy
dependencies {
modImplementation "maven.modrinth:kjqxZ07F:
## Documentation Docs and Javadocs can be found on (https://relism.github.io/ServerLibraries).
📊 Mod Details
- Game
- Minecraft Mods
- Author
- Relism
- Version
- 1.4
- Downloads
- 768
- Endorsements
- 1
- Category
- fabric
- Created
- 6/5/2024
- Updated
- 8/26/2024
- Game Versions
- 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5
- Tags
- library, optimization
🔧 How to Install Minecraft Mods Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Mods →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Mods versions does ServerLibraries support?
The author lists 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6. Other versions may work but are untested by the author.
What is the latest version of ServerLibraries?
Version 1.4, published 2024-08-26 with 768 downloads recorded at the source.
Keep browsing — more Minecraft Mods mods await
