The bug
Wandering traders will be targeted by zombies in a 35 block radius. This is also the case if the wandering trader is invisible (by drinking an invisibility potion), which renders the invisibility effect pointless. (Or, rather, its only effect is hiding the wandering trader from the player)
To reproduce
This is how I reproduced this issue, to make sure that no external factors would influence my test:
Create a flatland world
Disable the gamerule
doMobSpawning
Spawn a wandering trader
Make sure that wandering trader doesn't move (for example with
NoAI
)Spawn a zombie (or husk) 35 blocks away from the trader
That zombie will start to target the trader
Spawn a zombie 36 blocks away from the trader
That zombie won't start to target the trader, unless he walks into that 35 block radius
Set time to midnight
Make sure that the wandering trader drinks its invisibility potion (
NoAI
needs to be set tofalse
for this!)Spawn the zombies like before when the trader was visible
Same result as above!
Video
Linked issues
Comments 4
Duplicate of MC-79320.
@unknown merged this ticket into MC-79320 after I created it.
Resolved as a duplicate in favour of the older one.
You could maybe add that it applies to all mobs that are invisible and targetted by zombies.