
PetarLib
A library mod used by PetarMc1's mods. It provides essential tools for chat handling, logging, networking, and task scheduling.
About this Mod
PetarLib
PetarLib is a utility library for minecraft mostly used by PetarMc1's mods. It provides essential tools for chat handling, logging, networking, and task scheduling.
Key Features
- Chat Module - Adds chat pattern matching.
- Log Module - Adds a simple logging system that helps debugging.
- Net Module - Handles network requests like talking to APIs
- Task Module - Provides task scheduling and management tools to handle async operations.
- Notification Module - Allows mods to display notifications in the action bar.
Why a Library When Code Can Be in the Mod Itself?
By centralizing essential utilities in a dedicated library, mods built with PetarLib are cleaner and easier to update/work on. This means cleaner code and not having the need to rewrite the same code multiple times
Are you a developer?
If you're a mod developer looking to integrate PetarLib into your project you can check the dev docs. There you can find detailed documentation, usage examples, and dependency setup instructions.
Available Versions
How to Install PetarLib on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (26.1.2).
Install Mod
Open the mod browser in the dashboard and search for "PetarLib". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
26.1.2, 26.1-snapshot-4, 1.21.11 (+3 more)
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
PetarLib server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1.2). You can switch loaders with one click in the panel.
Is PetarLib compatible with fabric?
PetarLib officially supports fabric for Minecraft 26.1.2, 26.1-snapshot-4, 1.21.11. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with PetarLib – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if PetarLib consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install PetarLib with just one click on your server.