Mojira Archive
MC-185474

Crossbow wielding piglins riding on an entity do not properly back away from their target

The bug

Crossbow wielding piglins that are riding an entity does not back away properly from the player, similar to MC-172266.

How to reproduce

  1. In the Nether (or overworld if IsImmuneToZombification tag is used)
     /summon minecraft:pig ~ ~ ~ {Passengers:[{id:piglin,IsImmuneToZombification:1b,HandItems:[{id:crossbow,Count:1b,Unbreakable:1}]}]} 
  2. Go to survival
    The piglin controls the unsaddled pig by backing away from the closest player. Notice that it is based on the pig's initial rotation and never changes direction of where it should walk backwards.