PetarLib

PetarLib

A library mod used by PetarMc1's mods. It provides essential tools for chat handling, logging, networking, and task scheduling.

by
401 Downloads
fabriclibrary
Rent Server with this Mod

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

PetarLib v2.0.0release
MC 26.1.2fabric
April 19, 2026
PetarLib v1.4.0 for 1.21.11release
MC 1.21.11fabric
January 24, 2026
PetarLib v1.4.0 for 1.21.10release
MC 1.21.10fabric
January 24, 2026
PetarLib v1.4.0 for 1.21.9release
MC 1.21.9fabric
January 24, 2026
PetarLib v1.4.0 for 1.21.8release
MC 1.21.8fabric
January 24, 2026

How to Install PetarLib on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (26.1.2).

3

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

fabric

Minecraft Versions

26.1.2, 26.1-snapshot-4, 1.21.11 (+3 more)

Server-side

Unsupported

Recommended 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.

Rent Modded Server

Install PetarLib with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Unsupported

Supported Versions

26.1.226.1-snapshot-41.21.111.21.101.21.91.21.8