Minecraft Data Packs / Mob

Cure and Immunise Zoglins

  • check_circle Advancements
  • check_circle Functions
  • check_circle Predicates
  • 564 views, 12 today
  • 35 downloads, 0 today
  • 5
  • 2
Felina_Lain's Avatar Felina_Lain
Level 22 : Expert Explorer
5
A new small datapack for rp or convenience purposes, you can now cure and immunise zoglins!
Want some hoglins for your overworld? Farm or just because you like the feral big pigs?

Here you go!

Throw them a potion of weakness and feed them a golden carrot, and wait for a bit! (you'll see particles and hear the curing sound when it works)
I made it a golden carrot because those guys don't do much, and I figured they weren't worth a golden apple

It should be multiplayer compatible, but I haven't tested it
I did optimise it though, so it only fire when needed.


Now the logic of it in brief:
- when weak zoglin is near player holding golden carrot summon interaction entity to be able to right click it
- if it's right clicked, take the carrot, and start the curing
- when the curing timer is done, summon a new hoglin to replace the zoglin (and some cleanup)

Ta-da!

(this could probably be modified to cure piglins as well, it would work nearly identical, but adding the transfer of inventory if the zombie piglin has items etc would need a few more lines, and I can't be bothered when I got a plugin for that already XD)
CompatibilityMinecraft 1.19
toMinecraft 1.20
Tags

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome