Back to mods
Piglib project artwork

CurseForge · Minecraft mod

Piglib

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Piglib release should I use?

Updated 2 years ago
Latest stable file Piglib 1.2.0+fabric-mc1.20.4
Game version 1.20.4
Loader Fabric

Piglib 1.2.0+fabric-mc1.20.4 targets 1.20.4 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is Piglib required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Piglib 1.2.0+fabric-mc1.20.4 need?

Piglib 1.2.0+fabric-mc1.20.4. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Piglib without breaking your instance.

Built for Piglib 1.2.0+fabric-mc1.20.4. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use Piglib 1.2.0+fabric-mc1.20.4. It targets 1.20.4 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside Piglib 1.2.0+fabric-mc1.20.4. It opens that exact file at the source.

About this project

What does Piglib add?

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. This tag is nested in the vanilla minecraft:piglin_loved tag.

  • 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

This can be Jar-in-Jar'd to your Fabric mods! For instructions, click here.

Project description from CurseForge.

Pick your setup

Piglib by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

12 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Piglib versions and loaders

10 of 10 releases match

Looking for an older file? The official CurseForge project page is in Resources.