Regearing
How bots restock their kit mid-session: from an ender chest, a shulker box, or with one command.
From an ender chest
A bot regears the way it's done on an SMP: it pearls away, sets its ender chest down beside it, takes what it's short of (loose, or out of a shulker box inside) and packs it all back. It waits for room first and gets everything back if you catch it halfway.
A shulker box in its bag works too, without an ender chest. It can also restock from a shulker box placed nearby, or mine yours out from under you.
Every step is played out by hand, so you can watch it: the chest or box comes up in its hand and is placed with a swing and its sound, opened with the lid moving, emptied one stack at a time, closed, and mined with its best pickaxe over the real break time (everyone near sees the crack). Then it picks the drop up. How fast it goes follows skill.
What it restocks
When a bot is given a kit it remembers what was in it. This is stored on the bot, so it survives restarts. A regear tops it back up to that: potions of every kind (drink, splash, lingering), spare armour, crystals, obsidian, blocks, food, arrows, even orbital rods, each charge counted apart.
On top of that it always keeps a minimum of 4 totems, 16 pearls, 8 golden apples, 4 healing potions, 2 of each buff potion, a spare weapon, a shield and a pickaxe (it needs one to mine its ender chest back up). Worn armour still gets swapped out right away. If a bot never got a kit, whatever it's carrying the first time it checks counts as its kit.
Commands
/pvpbot restock <bot|all|faction <name>> [instant] regear now (alias: regear)
/pvpbot view inventory|enderchest <bot> a bot's bag or ender chest, live and editable
instant skips the show and fills the bot up at once. In a team, bots take
turns to regear so the line isn't left empty.
| Setting | Default | Values | What it does |
|---|---|---|---|
enderchest-regear | true | true / false | Regears from its ender chest like an SMP player: pearl away, chest down beside it, takes what it is short of (loose, or out of a shulker in it), mines it all back up (needs an ender chest in the bag) |
shulker-regear | true | true / false | Regears from a shulker box it carries: puts it down, restocks, mines it back up (no ender chest needed) |
regear-distance | 20.0 | 8 – 64 | How far off the opponent must be (or out of sight) before it opens anything |
shulker-restock | false | true / false | Walks to a placed shulker box nearby and takes what it is short of |
shulker-steal | false | true / false | Mines an opponent's placed shulker box mid-resupply and takes the drop |