If you manage to somehow force a Zombified Piglin to kill a villager, it will actually infect him even though they normally do not attack them.
Use this:
/summon villager ~ ~ ~
{UUID:[I;0,0,0,1]}
/summon zombified_piglin ~ ~ ~
{UUID:[I;0,0,0,2]}
/execute at @e[nbt=
{UUID:[I;0,0,0,2]}
] run summon snowball ~ ~3 ~
{Motion:[0.0,-0.5],Owner:[I;0,0,0,1]}
This seems to likely happen due to zombified piglins sharing same NBT data as zombies.
Linked issues
Comments 10
Related to MC-199587.
Kai, this is the so maniest time you commented "WAI" without a source! Either stop saying it, or provide a Mojang source!
Sharing animations and NBT doesn't mean an unused behavior being there is WAI (I say unused as this never happens without the use of commands); Again, a Mojang source (as in developer statement, not code result, as that argument can be pulled for everything, even crashes) is needed.
I fail to see how this is an issue Zombified Piglins are zombies so it would make sense they could infect villagers