Wandering Trader

Wiki ยท Mobs ยท Animal

Wandering Trader

Runs on a list of goals, tried in priority order.

Where it spawns

Turns up near a player from time to time, with two trader llamas.

How it thinks

Each moment it runs the most important goals it can (lowest number first); a more important goal interrupts a less important one. Read from the game's code and put in our own words.

What it does

  1. 0Swims up to stay afloat in water and lava.
  2. 0Drinks a potion when it needs one.
  3. 1Stands still while a player trades with it.
  4. 1Runs away from a nearby zombie.
  5. 1Runs away from a nearby evoker.
  6. 1Runs away from a nearby vindicator.
  7. 1Runs away from a nearby vex.
  8. 1Runs away from a nearby pillager.
  9. 1Runs away from a nearby illusioner.
  10. 1Runs away from a nearby zoglin.
  11. 1Runs around fast after being hurt or set on fire.
  12. 1Looks at the player it is trading with.
  13. 2Walks towards a spot near where it arrived.
  14. 4Walks back to its home area.
  15. 8Wanders around at random, keeping out of water.
  16. 9Looks at nearby player as if talking to them.
  17. 10Looks at a nearby mob.

โ† All mobs