
Modrinth · Minecraft mod
Piglib
A mod to help other modders and datapack creators mess with Piglins
Quick answer
Which Piglib release should I use?
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.
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.
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.
- 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.
- 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.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 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.
1.20.4
1 loader build1.20.1
1 loader build1.18.2
1 loader build1.18
1 loader build1.17.1
1 loader build1.16.5
1 loader build1.16.4
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Piglib versions and loaders
1.2.0+fabric-mc1.20.4
piglib-1.2.0+fabric-mc1.20.4.jar
11 Feb 2024
1.1.2+fabric-mc1.20.1
piglib-1.1.2+fabric-mc1.20.1.jar
17 Aug 2023
1.1.1
piglib-1.1.1+fabric-mc1.18.2.jar
10 Mar 2022
1.1.0
piglib-1.1.0+fabric-mc1.18.jar
28 Nov 2021
1.0.4
piglib-1.0.4+fabric-mc1.17.jar
5 Oct 2021
1.0.3-1.16
piglib-1.0.3+1.16.5.jar
15 Feb 2021
1.0.2-1.17
piglib-1.0.2+1.17-snapshot.jar
13 Dec 2020
1.0.2-1.16
piglib-1.0.2+1.16.jar
13 Dec 2020
Looking for an older file? The official Modrinth project page is in Resources.