mojira.dev
MC-268099

Iron golems can attack villagers.

 If a villager taunts an iron golem with a damage command, the iron golem will attack the villager. This is the cause of MC-195326, but I wrote a separate report.

Steps to Reproduce:

  1. Get a villager and iron golem spawn egg

  2. Spawn them both next to each other

  3. Run to command

    /damage @e[type=minecraft:iron_golem,limit=1,sort=nearest] 0 minecraft:mob_attack by @e[type=minecraft:villager,limit=1,sort=nearest]

Observed Results:
The Iron Golem begins to attack the villagers.

Expected Results:
Just as a Creeper taunts an Iron Golem with a damage command and the Iron Golem doesn't react, the Iron Golem should not attack the villager.

Linked issues

Attachments

Comments 2

Duplicate of MC-213470,this was already linked in the report you mentioned...

Thank you for your report!
We're tracking this issue in MC-213470, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Alex_light

(Unassigned)

Unconfirmed

(Unassigned)

1.20.4, 24w04a

Retrieved