mojira.dev
MCPE-42373

Vindicators/Evokers attack Pillagers when hit by them

Updated description by @unknown

Steps to reproduce

(These steps are automated in

[media]

.)

  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

Linked issues

Attachments

Comments 63

Same with evoker. Evokers kill pillager that acidentally hit it

Skellies and witches have always done this, attack each other. Maybe it is a normal thing

Also if evoker was accidentally injured by pillager. It would fight back and pillager won't care about that . Pillager and Ravager won't fight each other. The Vindicator who named “Johnny” won't attack pillager and ravager

Witches aren't technically an illager because they can be killed by vindicators or evokers (if a witch accidentally throws a potion at the evoker.)

I saw a vindicator in patrol kill his patrol captain. So weird

53 more comments

Affects 1.21 and preview

smokeycheese13

(Unassigned)

373099

Confirmed

Multiple

.json-error, evoker, vindicator

1.18.32, 1.18.0.22 Beta, 1.17.10, 1.16.220, 1.16.200.53 Beta, ..., 1.20.0, 1.21.20.23 Preview, 1.20.62 Hotfix, 1.21.2 Hotfix, 1.21.31 Hotfix

1.21.50.20 Preview, 1.21.50

Retrieved