Slaver

A slaver is a passive mob found randomly across the galaxy. It can trade, making natural items more available, less dangerous to obtain, and in some cases, renewable.

=Spawning= A slaver appears randomly through the galaxy with 2 leashed Twi'lek slaves.

At any time, there can be only one slaver naturally spawned in loaded chunks. If there are no slavers currently in any loaded chunks, the game tries to spawn a slaver after every following 24000 ticks, within a 48-block radius of a player.

=Behavior= A slaver has 6 random trades. New trades are not unlocked after trading with it.

After spawning, a slaver has a managed schedule for 40–60 minutes. After the time expires, the slaver despawns. A slaver despawns sooner if all trades have been locked. The slaver may later respawn with new trades.

Slavers uses a cloaking device during dusk and if hurt by projectiles. At dawn, they become visible again.

When attacked by a player, a slaver flees from the player. The Twi'lek slaves, however, attack the player by spitting if their master gets hit. The slaves stop attacking if the player is killed, if the slaves are leashed at the time their master is killed, or if the player gets far enough away from them.

Slavers can close and open doors.

=See also=
 * Merchant