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.

=Drops= Upon death, a slaver drops:
 * A blue milk bucket (8.5% chance) if killed while holding.
 * A cloaking device (8.5% chance) if killed while holding.

A slaver also drops fibercord whips when killed or when separated too far from its trader slaves. The fibercord whips break and appear at the position of the slaves. The slaves also drop their fibercord whips when killed, and if a slaver and one of its slaves are riding the same vehicle, the fibercord whip breaks.

Slavers do not reward any experience points.

=Trading= The trading system is a gameplay mechanic that allows players to buy items with galactic credits. A player can click on a slaver to view the items offered for sale.

After a player purchases the same item several times, the slaver locks the trade, but unlike merchants, never unlocks the trade.

Unlike merchants, wandering traders only sell items, they don't buy items nor modify their offers or prices based on changing demand.

=Advancements=
 * What a Deal!
 * Description: Successfully trade with a merchant
 * Actual requirement: Take an item from a merchant or slaver's trading output slot, and put it in your inventory.

=See also=
 * Merchant