-
Bug
-
Resolution: Unresolved
-
None
-
24w07a, 24w09a, 1.20.5, 1.21.1, 24w37a, 24w39a, 24w44a, 1.21.3, 1.21.4
-
None
-
Confirmed
-
Data Packs, Mob behaviour
-
Low
-
Platform
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.
Summon 2 of the mobs, 1 with a specific UUID. Then, summon a snowball with the owner being the mob with the specified UUID, above the head of the mob without the specified UUID, and watch how the mob will not attack the other.
summon pillager ~-1 ~ ~ {UUID:[I;1,1,1,1]}
summon vindicator ~-1 ~ ~ {HandItems:[{id:"iron_axe",Count:1b},{}]}
execute at @e[type=vindicator] run summon snowball ~ ~2.6 ~ {Owner:[I;1,1,1,1]}
note: 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
note: the video shows an incorrect editing of the datapack, the v3 version in the attachement is correct however but gives the same result as in the video