ModsFinder

Piglib

by Shnupbups

Piglib is a Fabric library that gives other modders and datapack creators a set of item tags for Piglin-related behaviour.

FabricClient and serverGNU Lesser General Public License v3.0 onlyOpen source1.16.4 – 1.20.4

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

  1. Piglin bartering tag

    An item tag lists the items Piglins accept when bartered with, so other mods can add their own entries.

  2. Piglin-safe armor tag

    An item tag marks worn armor that prevents nearby Piglins from becoming angered.

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

1.20.41.2.0+fabric-mc1.20.4
1.20.11.1.2+fabric-mc1.20.1
1.18.21.1.1
1.181.1.0
1.17.11.0.4
1.16.51.0.3-1.16
1.16.41.0.2-1.16
ReleaseBetaAlphaNot available

This mod also publishes snapshot builds. Snapshots are not shown in the matrix.

Questions

Does Piglib need Fabric API?

No required dependency is listed for Fabric.

Does a new item react to Piglins once it is in a Piglib tag?

Not on its own. Adding an item to a tag does not make Piglins want it, so the item must also be added to the Piglin interest lists.

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

All projects

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…
Shnupbups, on the Modrinth page

Official listing

Owner
Shnupbups
Published
2020-12-13
Updated on Modrinth
2024-02-11
Facts verified
2026-10-15

Tags