Minecraft wiki entry for Wandering_Trader, associated text: Wandering traders drink potions of invisibility if hurt by magic attacks or projectiles from hostile mobs, or when avoiding illagers, vexes, and zombies.‌[BE only]