Mojira Archive
MCPE-42373

Vindicators/Evokers attack Pillagers when hit by them

Updated description by [Mod] GoldenHelmet

Steps to reproduce

(These steps are automated in Illagers fight each other.mcworld.)

  1. Create an iron golem in a place where it can't move.
  2. Spawn a vindicator and an evoker near the iron golem, so that they target it.
  3. Spawn pillagers behind the vindicator and evoker, so that they target the iron golem but hit the vindicator and evoker when they shoot.

Expected result

Vindicator and evoker continue to target the iron golem, ignoring hits from pillagers.

Actual result

Vindicator and evoker target the pillagers when hit by them.

Note: Code analysis of missing text in vindicator.json and evocation_illager.json provided in this comment.


Original description
When a vindicator or an Evoker is hit with a pillager's arrow it will kill the pillager. However, it does not want to attack any other illagers when they get damaged by them