Piglib
What does this mod do?
This mod adds special item tags related to Piglins that Mojang developers for some reason didn't include in the base game. It will be especially useful for creators of other mods who want to add new items with Piglin interaction functionality, as well as for datapack developers.
Available tags
piglib:piglin_bartering_items - items with this tag cause Piglins to start bartering when picked up or used with right-click on a Piglin
piglib:piglin_safe_armor - if you wear armor with this tag, surrounding Piglins will not attack the player
piglib:piglin_loved_nuggets - Piglins pick up items with this tag in whole stacks, like gold nuggets, rather than one at a time. However, they will not actively seek out these items. Important: items with this tag should NOT simultaneously be in the standard minecraft:piglin_loved tag
Important note
Adding items to these tags does not mean their automatic inclusion in minecraft:piglin_loved. If you want Piglins to actively seek out items dropped on the ground, you need to additionally add them to the standard tag.
The mod supports Jar-in-Jar integration for Fabric mods via JitPack.