MinionCore logoMinionCore

Seller

How the seller minion sells the items in a linked chest or its own storage and pays its owner.

The seller sells items for its owner. Link it to a chest next to a farm, or fill its own storage, and on every action it sells everything in there that has a price. It can pay the owner through Vault straight away or hold the earnings for the owner to collect from its menu.

How it works

Place it

Right click a block with the seller item, the same as any other minion. See Placing and picking up.

Open its menu and left click the Linked container button. The menu closes, and the next block you right click is linked. Left click anything to stop, or wait for seller.link-timeout-seconds in config.yml to run out. Right click the button to unlink it again.

A container can be linked when:

  • it is one of the blocks in link-blocks, a chest, trapped chest or barrel in the shipped file. A double chest counts as one container
  • it is within link-range blocks of the seller, sideways, up and down
  • a protection plugin lets you open it, so nobody can link a chest on someone else's island or claim

Linking needs pair access on the seller, which trusted players do not get by default. See Trust and access.

It sells on every action

Each action sells every item with a price in its own storage and in the linked container, pays or stores the money, and adds to its totals. Items with no price stay where they are. Minion items are never sold.

Without a linked container, the seller only sells from its own storage. Players with storage access can put items in by clicking an empty storage slot with an item on the cursor, or by shift clicking it while the storage is open. Only items that have a price are taken, anything else is refused with seller.no-price.

When a linked container is broken or replaced by a block that cannot be linked, the seller unlinks itself on its next action and tells the owner with seller.link-lost. A linked container in an unloaded chunk is skipped until the chunk loads.

The seller's filter decides what may be sold. With mode: ACCEPT and a list, only the listed items are sold. With mode: IGNORE, the listed items are never sold. An empty list sells everything that has a price. See Filters.

Levels and multipliers

The money from each action is the sell price of the items times the multiplier of the seller's level.

LevelMultiplierdelaystoragefuel-efficiencyCost of the next level
11.01590money: 15000
21.2515185money: 30000
31.5152710Max level
minions/seller.yml
settings:
  multipliers:
    1: 1.0
    2: 1.25
    3: 1.5
  round-to-whole-number: false
  payment-mode: DIRECT
  max-stored-earnings: 1000000
  link-range: 8
  link-blocks:
    - CHEST
    - TRAPPED_CHEST
    - BARREL
KeyDefaultWhat it does
multipliers1.0, 1.25, 1.5What a sale is multiplied by at each level. A level that is not listed uses the closest lower one
round-to-whole-numberfalseWhether the money from each action is rounded to a whole number. Off, it is rounded to two decimals
payment-modeDIRECTDIRECT pays the owner after each sale. STORED holds the money in this seller until its owner collects it from the Sales button
max-stored-earnings1000000The most money a STORED seller may hold. 0 means no limit. A full seller leaves every remaining item untouched
link-range8How far from the seller a linked container may be, in blocks
link-blockschest, trapped chest, barrelThe blocks a seller can be linked to. A name that is not a block on your version is skipped with a warning

The level 3 item glows, set by item.glow-from-level: 3. The shipped seller uses fuel like the working minions, so a feeder next to it keeps it going.

Where prices come from

The seller and the sell everything button in storage menus use the same prices, set by prices.provider in config.yml. See Configuration for the keys.

providerPrices from
AUTOEconomyShopGUI if it runs, else ShopGUIPlus, else the Essentials worth list, else sell.prices
ESGUIEconomyShopGUI or EconomyShopGUI Premium
SHOPGUIPLUSShopGUIPlus
ESSENTIALSThe worth.yml of EssentialsX
CONFIGsell.prices in config.yml only
  • EconomyShopGUI is asked for the item's own sell price, item meta included, for the seller's owner. Only prices paid in the Vault economy count. Its sell limits are updated after each sale.
  • ShopGUIPlus is asked for the owner's price while the owner is online and the plain price while they are not. Items in a shop that pays in another economy have no price.
  • With prices.fallback-to-config: true, an item the shop plugin has no price for is sold at its sell.prices price.
  • With prices.config-first: true, a price in sell.prices is used before the shop plugin's price.

None of these plugins are needed to find prices. DIRECT payments and collecting STORED earnings need Vault with an economy plugin. MinionCore only talks to a price plugin when it is installed and running, and if its API fails the console says so once and sell.prices is used instead.

Sale messages

The owner is told about sales once per seller.notify-interval seconds, with the items and money of every seller they own added up. Set seller.notify to ACTION_BAR to show it above the hotbar, or NONE to send nothing. An owner who is offline when the message is due gets nothing, the money is still paid.

Hologram and menu

The seller's hologram and its Sales button in the minion menu can show these values:

PlaceholderShows
%seller_sold%Every item it has sold
%seller_earned%Every bit of money it has earned, in the economy's format
%seller_balance%Stored earnings waiting for the owner to collect
%seller_multiplier%The multiplier of its level
%seller_container%Where its linked container is, or seller.own-storage from the language file

The totals and stored balance are kept with the minion, so they survive pick up. %seller_sold% also works in the item lore. Across all of a player's placed sellers, %minioncore_seller_sold%, %minioncore_seller_earned% and %minioncore_seller_balance% add them up. See Placeholders.

On this page