Collector pairing
How minions are paired with a chunk collector, how many a collector can hold, and when their items move across.
A chunk collector in PAIRED or BOTH mode only takes items from the minions paired with it. Players choose those minions themselves, so they always know which collector takes what, and a minion next to a collector can be kept apart from it. For the collector itself, its modes, ground pickup and storage, see Chunk collector.
Connections
A collector can only be paired with a set number of minions, called its connections.
| Where | Key | Shipped value | What it does |
|---|---|---|---|
| Each level | connections | 1 to 4, one more per level | How many minions the collector can be paired with at that level. A collector level without the key uses its level number |
| Type file | max-connections | 6 | The most connections a collector of this type can ever have, upgrades included |
upgrades.yml | connections | amount: 1, max-per-minion: 2 | The Connections upgrade, which adds one connection each time |
The Connections button (slot 34) in the collector's menu shows the current and next value, and takes a Connections upgrade dropped on it. With upgrades.require-max-level: true in config.yml, the collector has to reach its highest level first. See Levels and upgrades.
Pairing a minion
There are two ways to start.
From the collector's menu
Open the collector and click Pair a minion (slot 19). The menu closes. Right click the minion you want to pair.
Or with the command
Type /minion pair, right click the collector, then right click the minion. Typing /minion pair again stops pairing. The command needs minioncore.pair, which every player has by default.
Confirm
A confirm menu opens, showing the minion with its owner, level, position, whether it is in range, and the connections used. Click Pair it to save the pair, or Cancel.
While pairing is running, right clicking a minion only selects it. No menu opens, no fuel or upgrade is used, and nothing is picked up.
Pairing stops by itself when:
- The whole pairing is not finished within
collectors.pair-timeout-secondsinconfig.yml,60by default. With the command, choosing the collector does not restart the timer, so both clicks share that time. - The player leaves the server.
- The collector is no longer placed when the minion is clicked.
Who can pair
The pair action is checked on the collector. The owner always has it. Trusted players have it when pair: true in the collector's trusted section, which ships as false. Members through an access provider have it when pair is listed for their provider. See Trust and access.
When pairing is refused
The checks run when the minion is clicked, and again when Pair it is clicked, in this order. A refused click shows a message and pairing keeps waiting, so the player can click another minion.
| Check | Language key |
|---|---|
| The collector chosen with the command is not a chunk collector | collector.not-a-collector |
| The minion is a chunk collector or a chunk loader | collector.not-a-worker |
| The collector or the minion is still loading, or being picked up | general.minion-busy |
The player does not have the pair action on the collector | access.not-allowed or access.not-yours |
| The player does not own the minion | collector.not-your-minion |
| The minion and the collector belong to different players | collector.other-owner |
| The minion is already paired with this collector | collector.already-here |
| The minion is already paired with another placed collector | collector.already-paired |
| The collector uses all its connections | collector.full |
Players with minioncore.admin.bypass skip the two ownership checks. Everyone else can only pair their own minions with their own collectors, so a trusted player with pair can open pairing on a friend's collector but cannot finish it with the friend's minions. They can still unpair, below.
A minion pairs with one collector at a time. If its collector has been picked up, pairing the minion with another collector replaces the old pair.
Paired minions
The Paired minions button (slot 20) opens a list of every placed minion paired with the collector. Anyone with open access can look at it.
- Each entry shows the minion's own item, level, position, status, and In range as Yes or No.
- Left click an entry to unpair that minion. This needs the
pairaction. - The Connections item (slot
47) shows how many connections are used. - The list has pages when there are more minions than fit, and a back button to the collector's menu.
The menu is laid out under paired in gui.yml, and the confirm menu under pair-confirm. See Menus.
How items reach the collector
A collector in PAIRED or BOTH mode gets items from its paired minions in two ways.
When a paired minion works
The items a minion makes go straight to its collector when all of these are true:
- The minion is paired with the collector and stands in range.
- The collector's mode takes items from paired minions.
- The collector is not paused, broken or in an unloaded chunk, and has fuel if its type uses fuel.
- The collector's storage has room.
Then, for each item:
- The minion's own filter runs first, the same as always. See Filters.
- The collector's filter decides what it takes. It has its own
filtersection in its type file and its own Filter button in the menu. - Whatever the collector refuses, or has no room for, goes into the minion's own storage.
- The minion only stops with Storage full when it has no working collector to send to and its own storage is full.
On every collector action
Each time the collector acts, it also pulls the items already stored in its paired, in range minions into its own storage, as far as its filter and free space allow. Minions that had stopped with Storage full start again once items are taken from them.
A collector only uses fuel on an action that moved or picked up at least one item.
Minions that are not paired, or are paired but out of range, keep their items in their own storage. When a collector becomes usable again, for example its chunk loads, it is unpaused, or it is switched to a mode that takes paired items, its full paired minions are woken straight away.
With output.overflow: VOID in config.yml, nothing ever stops for a full storage: items that fit nowhere are deleted instead.
Picking up and removing
| What happens | The pairs |
|---|---|
| A paired minion is picked up, or removed by an admin | Its pair is removed |
| A collector is picked up | Its pairs are kept and work again once it is placed |
| A collector is removed by an admin | All its pairs are removed |
While a collector is picked up, its minions keep their items. Each of them can be paired with another collector in the meantime, which replaces the old pair.