mojira.dev
MC-233465

Zombified piglins can infect villagers

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

I fail to see how this is an issue Zombified Piglins are zombies so it would make sense they could infect villagers

This should not be intentional as zombified piglins are normally passive to villagers.

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.

This is a long time issue, also happens even in 1.13.

The commands that you use to reproduce this bug are unreal to be used by a player.

Can confirm in 22w46a.

This can be more easily reproduced by summoning a villager and a zombie pigman, then using the following command to kill the villager via the pigman:

/damage <villager_uuid> 21 minecraft:mob_attack by <pigman_uuid>

Fannic64

(Unassigned)

Confirmed

Mob behaviour

1.17.1, 1.19.2, 22w46a, 1.21

Retrieved