-
Bug
-
Resolution: Unresolved
-
None
-
1.20.4, 24w10a, 24w11a
-
None
-
Confirmed
-
Data Packs
When a pillager lacks a crossbow, it becomes unable to attack entities. However, it continues to target entities it wants to attack, leading to unnecessary calculations that impact performance. To reproduce this issue, download the provided datapack and execute the command
/execute as @e at @s on target run function snapshots:raycast_particles/3
in a repeating command block. Then spawn a pillager and remove its crossbow using the command
/item replace entity @e[type=minecraft:pillager,limit=1,sort=nearest] weapon.mainhand with air
. In survival mode or by spawning villagers, the pillager will still target them or you, as indicated by the emitted particles. The datapack command draws a line of particles between an entity and its target to visualize this behavior. Relates to MC-139433 and MC-163960.
- relates to
-
MC-139433 Pillagers and Illusioners do not attack mobs they are normally aggressive to when holding no/the wrong weapon
- Resolved