Piglib

Piglib

A mod to help other modders and datapack creators mess with Piglins

by
1.6K Downloads
fabriclibraryutility
Rent Server with this Mod

About this Mod

Adds item tags for various Piglin related things that Mojang were too silly to add themselves! Useful for mods which add new items that should interact with Piglins, or for datapack makers.

Tags include:

  • piglib:piglin_bartering_items - Items in this tag, when picked up by a Piglin or right clicked with, will result in the Piglin bartering

  • piglib:piglin_safe_armor - Items in this tag, when worn in an armor slot, will prevent nearby Piglins from being angered

  • piglib:piglin_loved_nuggets - Items in this tag, when picked up by Piglins, will be picked up as a whole stack like gold nuggets rather than one at a time. Piglins will not actively seek out these items. Items in this tag should not also be in the vanilla minecraft:piglin_loved tag

Note that adding items to any of these tags doesn't automatically add them to minecraft:piglin_loved, so if you want Piglins to actively seek out the items when dropped on the ground, you will need to add to that as well.

This can be Jar-in-Jar'd to your Fabric mods! Use JitPack.

Available Versions

Piglib 1.2.0+fabric-mc1.20.4release
MC 1.20.4fabric
February 11, 2024
1.1.2 for Minecraft 1.20.1release
MC 1.20.1fabric
August 17, 2023
1.1.1release
MC 1.18.2fabric
March 10, 2022
1.1.0release
MC 1.18fabric
November 28, 2021
1.0.4release
MC 1.17.1fabric
October 5, 2021

How to Install Piglib 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 (1.20.4).

3

Install Mod

Open the mod browser in the dashboard and search for "Piglib". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.20.4, 1.20.1, 1.18.2 (+5 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Piglib 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 (1.20.4). You can switch loaders with one click in the panel.

Is Piglib compatible with fabric?

Piglib officially supports fabric for Minecraft 1.20.4, 1.20.1, 1.18.2. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Piglib – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Piglib 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 Piglib 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
GNU Lesser General Public License v3.0 only
Server-side
Required

Supported Versions

1.20.41.20.11.18.21.181.17.11.16.520w49a1.16.4