Cured Pork: A Datapack for Immunizing Piglins from Zombification
This is a "vanilla-plus" datapack which allows the player to "immunize" piglins from being zombified by giving them enchanted golden apples.
How It Works
Piglins
who travel to the Overworld of The End will normally zombify after
15 seconds unless they have the NBT tag IsImmuneToZombification
with
a value of true
.
This datapack runs a command every second that searches for any piglin (or piglin brute*) that is holding an enchanted golden apple and gives them that tag.
*if you can figure out how to get the brute to pick up the apple
Why Would I Want This?
¯\_(ツ)_/¯ That's your business.
Maybe you want to have a piglin bartering station in the overworld.
Maybe you're trying to cheese your way to collecting a piglin head.
Maybe you're trying to create a menagerie and are finding it difficult to keep your dolphins alive in the Nether.
Maybe you're doing some Star Trek roleplay and want a Tellarite on your bridge crew.
Compatibility
This datapack has been tested on versions:
- 1.20.5-pre2
- 1.20.5-pre1
- 1.20.4
- 24w07a
- 1.16.2
and should work on all versions in between.
Contributing
Find a bug? Have a suggestion or a question? Want to contribute a new feature or enhancement? Open an issue!
License
All code and assets in this project are licensed by me (@OpenBagTwo) under the GNU Affero General Public License and, broadly speaking, may be used, modified and re-distributed freely, on servers, in modpacks or in any other derivative works, so long as:
- You credit the authors of this project (@OpenBagTwo and any other contributors)
- You make the full source code of this project (including any modifications) available to everyone using the datapack (including players on servers where this pack is installed)
- Any redistributions of this project or distributions of any modified works retain this license.
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+