mojira.dev
MC-268658

Default mobs in illager_friends Entity Type Tag list won't attack each other when removed from list

Problem:
Vindicators, Evokers, Illusioners and Pillagers won't attack each other when removed from the illager_friends.json Entity Type Tag list.
On the other hand; if you add a different mob to the list (for example, a zombie), the other illager mobs won't attack the zombie (which is the expected behaviour).

How to reproduce:
Create a datapack with the illager_friends.json Entity Type Tag list and the illager.json Entity Type Tag list. Since the illager_friends file by default just references the illager list we can edit either file. Add the "replace": true line and remove the above mentioned mobs from both or either list.
edit: I've attached a file with a minimal setup datapack, with both lists emptied out.
note1: even when adding and emptying the raiders.json Entity Type Tag list it still has the same result.

Summon 2 of the mobs, both with a unique tag for easy referencing. Then, use the /damage command to make 1 of the mobs damage the other, and watch how the damaged mob will not attack the other.

summon pillager ~-1 ~ ~ {Tags:["attacker"]}

summon vindicator ~-1 ~ ~ {HandItems:[{id:"iron_axe",Count:1b},{}],Tags:["victim"]}

damage @e[tag=victim,limit=1] 1 minecraft:mob_attack by @e[tag=attacker,limit=1]

note2: make sure to summon mobs with their respective weapons, otherwise they won't attack at all (Pillager=crossbow, Vindicator=axe, Illusioner=bow, Evoker=none).

Video to showcase problem:
https://youtu.be/j4c4UUdkUlo
note3: the video shows an incorrect editing of the datapack, the v3 version in the attachement is correct however and gives the same result as in the video.
note4: I realised that using the /damage command is way easier/convenient than using a snowball so I changed the description to accommodate that, the video shows the snowball method, both give the same result.

Attachments

Comments 6

Please attach a minimal setup datapack to be able to reproduce this issue.

@turbo I've done so now.

You didn't remove them from the tag because you forgot "replace":true

@tryashtar Sorry about that, I wasn't aware that was necessary. I looked into it and I'm pretty sure the new datapack version I uploaded (v2) is now correct. Unfortunately it gives the same result, so it does seem that there is actually a bug. (If the datapack is still not correct, could you please explain how it's supposed to be)

⚠️ Please do not add Affected Versions to resolved reports.

Have a look at the Resolution and the comments to see why this ticket has been resolved. If you think this ticket has been resolved erroneously you can contact the Mojira staff on Discord or Reddit.

-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit

Added a v3 datapack file to account for the new folder names structure that exists since 24w21b.

heldheld

(Unassigned)

Confirmed

Platform

Low

Data Packs, Mob behaviour

24w07a, 24w09a, 1.20.5, 1.21.1, 24w37a, 24w39a, 24w44a, 1.21.3, 1.21.4, 25w03a

Retrieved