Piglib
by Shnupbups
Piglib is a Fabric library that gives other modders and datapack creators a set of item tags for Piglin-related behaviour.
What it does
Piglib adds item tags that cover Piglin bartering items, armor that keeps nearby Piglins from becoming angered, and other Piglin-related lists that Mojang did not define. Mod authors and datapack makers can use these tags to make new items that Piglins react to. Adding an item to a tag does not by itself make Piglins want it, so the item must also be added to the Piglin interest lists. Piglib runs on client and server, so both sides need it, and it is published for Fabric across 7 release versions, 1.16.4 – 1.20.4, under the GNU Lesser General Public License v3.0 only.
Key features
Piglin bartering tag
An item tag lists the items Piglins accept when bartered with, so other mods can add their own entries.
Piglin-safe armor tag
An item tag marks worn armor that prevents nearby Piglins from becoming angered.
Piglin-related item tags
Further tags group Piglin-related items that Mojang did not add to the game itself.
Compatibility
Latest build for each game version and loader.
This mod also publishes snapshot builds. Snapshots are not shown in the matrix.
Questions
Does Piglib need Fabric API?
Does a new item react to Piglins once it is in a Piglib tag?
In the catalog
Piglib is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 13,907 mods support Minecraft 1.20.4.
More from Shnupbups
Similar mods
What the author says
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. Note that adding items to any of these tags doesn't automatically add them to minecraft:piglin_loved, so if you want Piglins to…
Official listing
- Modrinth page
- modrinth.com/mod/piglib
- Owner
- Shnupbups
- Published
- 2020-12-13
- Updated on Modrinth
- 2024-02-11
- Facts verified
- 2026-10-15
