Back to mods
Piglib project artwork

Modrinth · 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 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. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

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

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
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 marks this as usable on both the client and server.

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

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

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 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

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

Project description from Modrinth.

Pick your setup

Piglib by Minecraft version and loader

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

8 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

8 of 8 releases match

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