Pillagers are not pathfinding out of cactuses and other damaging blocks if they are still able to attack their target
If a pillager with a crossbow is touching a cactus but is still able to shoot the player they won't move to save themselves. This isn't a problem with skeletons and strays.
I wasn't able to upload my screenshots I got the message Jira was unable to load because there was a missing token but just to let you know the list includes fire, magma blocks, cactus, campfires, suffocation, and lava
Created Issue:
Pillagers are not pathfinding out of cactuses and other damaging blocks if they are still able to attack their target.
If a pillager with a crossbow is touching a cactus but is still able to shoot the player they won't move to save themselves. This isn't a problem with skeletons and strays.
I wasn't able to upload my screenshots I got the message Jira was unable to load because there was a missing token but just to let you know the list includes fire, magma blocks, cactus, campfires, suffocation, and lava
Environment
macOS. 1.16.4
macOS. 1.16.4
Pillagers are not pathfinding out of cactuses and other damaging blocks if they are still able to attack their target.
In 23w33a
In 1.20.2
In 1.20.2





Can confirm for 20w51a (tested with villagers).
In 1.18.2 and 22w15a
To reproduce this with cactuses you need to knock them into the cactuses either by yourself, or by getting them to shoot themselves. They don't pathfind into them, but once they're in the cactus they don't move as long as they can shoot you.
In 23w05a
I have just experienced this in 23w14a.
In 23w33a
In 1.20.2 and 23w41a
In 1.21.1 and 24w34a