MinionCore logoMinionCore

Configuration

A walk through config.yml, with every section and key, what it changes and its default value.

Nearly everything about how minions behave on your server is set in a plain text file, so you can tune the plugin without touching any code. This page covers config.yml, the main file. The other files each have their own page, linked below.

FileWhat it controlsPage
config.ymlStorage, placement, limits, offline working, collectors, upgrade rules, fuel use, breakdowns, holograms, selling and sell prices, sellers, the command, sounds and particlesThis page
minions/*.ymlOne file per minion typeMinion type files
fuel.yml and upgrades.ymlFuel items, currencies and upgrade itemsFuel and upgrades
gui.ymlEvery menu and its textMenus
lang/*.ymlChat messagesMessages and language
shop.ymlThe shopShop and claims
filters.ymlFilter groupsFilters

Applying your changes

Save the file, then run /minion reload. The reload reads every config and language file again and applies minion types, fuel, upgrades, currencies, the shop, filters and the language straight away.

A few things are only read when the server starts, so they need a full restart:

  • command.name, command.aliases, command.labels and command.admin-labels
  • everything under storage

The reload tells you when one of these changed. If the command name no longer matches the running one you get general.reload-command-name, and if the aliases, labels or storage settings changed since startup you get general.reload-restart-settings.

Version keys and updates

Every file the plugin ships has a version key on its first line. Leave it alone, the plugin uses it to update your file.

FileVersion keyVersion in 1.8.0
config.ymlconfig-version10
fuel.ymlfuel-version2
upgrades.ymlupgrades-version3
shop.ymlshop-version2
gui.ymlgui-version13
filters.ymlfilters-version1
minions/*.ymlminion-version9 for farmer.yml, 7 for feeder.yml and seller.yml, 8 for the others
lang/*.ymllang-version10

When a new build adds keys to a file, the version inside the jar goes up. On the next start or reload, the plugin sees that your copy is older and merges the new keys in with their default values. Your own values stay as they are, and keys you added yourself are kept.

A new language you add in lang/ has no copy inside the jar, so nothing is merged into it. A type file you make yourself in minions/ is updated from the shipped file with the same behaviour, keeping its own levels, item and look. See Minion type files.

One value is also moved for you. When a shipped type file updates to minion-version: 2, an old settings.replant-sapling is turned into the new settings.replant: true becomes ALWAYS and false becomes OFF. A lumberjack file you made yourself is read the same way while it has no replant key. See Lumberjack.

A few shipped texts are also swapped for you, only while your file still holds the old shipped text:

  • gui-version: 5 sets the upgrade materials in gui.yml to UPGRADE, see Menus, and replaces the old lore of the trust menu's add button.
  • gui-version: 8 moves the menu buttons to the 1.3.0 layout. A button is only moved while it still sits on its old shipped slot. If you had moved any button in the minion menu, that menu keeps your arrangement: its layout is set to an empty list and every button stays where it is. The view menu is handled the same way. See Menus.
  • gui-version: 9 hides the Level button of the minion menu, since levels are bought in the upgrades menu from 1.4.0. It is taken out of layout and set to slot: -1 only while it still sits on its shipped slot 29, and a minion menu with an empty layout keeps it. upgrades.slots moves one row down while it still holds the old shipped list, and the old lore of the Upgrades button is replaced. See Menus.
  • gui-version: 13 adds the Hologram button to the minion menu's layout, right after area-preview, in the row that holds it. A layout without area-preview is left alone, so give the button a place yourself there.
  • lang-version: 5 replaces the old placement.limit-reached and placement.type-limit-reached in the three shipped languages.
  • lang-version: 6 replaces the old admin.ground-tags reason, "carries scoreboard tags, likely from another plugin", with the new one that names the protected tag, in the three shipped languages.
  • lang-version: 7 replaces the old collector.not-a-worker text in the three shipped languages.

Language

KeyDefaultWhat it does
languageen_USThe file in the lang folder to use, written without .yml. See Messages and language

Storage

Where placed minions, stored items, trusted players and waiting items are saved. Changes here need a restart. The Storage page covers switching databases.

KeyDefaultWhat it does
storage.typeSQLITESQLITE for a file in the plugin folder, or MYSQL
storage.filedatabase.dbThe database file name. Only used with SQLITE
storage.table-prefixminioncore_Put in front of every table name, so several plugins can share one database
storage.mysql.hostlocalhostAddress of the MySQL server
storage.mysql.port3306Port the MySQL server listens on
storage.mysql.databaseminioncoreThe database to write to
storage.mysql.usernamerootThe user to connect as
storage.mysql.password""The password for that user
storage.mysql.sslfalseWhether the connection uses SSL
storage.mysql.pool-size10How many connections are kept open
storage.mysql.connection-timeout10000How long to wait for a free connection, in milliseconds

Disabled worlds

KeyDefaultWhat it does
disabled-worldsworld_the_endA list of world names where minions cannot be placed. Names match without caring about capital letters

Placement

KeyDefaultWhat it does
placement.minimum-distance2The fewest blocks allowed between two placed minions. 0 switches the check off
placement.check-protectiontrueAsks your protection plugins whether the player could build there before placing. See Placing and picking up

Limits

KeyDefaultWhat it does
limits.default3How many minions a player may place in total when no minioncore.limit.<number> permission matches them
limits.modeSUMHow several limit permissions combine. SUM adds every true one together, HIGHEST keeps only the largest
limits.count-chunk-loadersfalseWhether chunk loaders count towards that total
limits.count-chunk-collectorsfalseWhether chunk collectors count towards that total

Each type also has its own limit, max-per-player in its type file, separate from the total. Both limits can be set with permissions, and limits.mode applies to both. See Limits by rank.

Offline working

KeyDefaultWhat it does
offline-workingtrueWhether minions keep working while their owner is offline
offline-max-hours12How many hours a minion keeps working after its owner leaves. 0 means no limit

When the time runs out the minion shows the "Owner offline" status and starts again when the owner joins. More on the Offline working page.

Access

Lets another plugin, such as an island or guild plugin, give its members rights on each other's minions.

KeyDefaultWhat it does
access.providers{}A list of actions per access provider id

MinionCore ships no access providers of its own. A provider is added by another plugin through the developer API, and that plugin tells you the id it registers. The actions you can list are open, take-storage, fuel, upgrade, filter, pickup, pair, repair, saplings and block-filter.

access:
  providers:
    myislands:
      - open
      - take-storage
      - fuel

Trusted players are set per minion in the menu, and what they may do is set in each type file. See Trust and access.

Chat input

Some buttons ask the player to type a name in chat, such as Type a name in the trust picker.

KeyDefaultWhat it does
input.cancel-wordcancelThe word a player types to stop the prompt
input.timeout-seconds30How long the prompt waits for an answer, in seconds

What the player types as an answer is never shown in chat, chat plugins included.

Pickup

KeyDefaultWhat it does
pickup.shift-right-clicktrueWhether sneaking and right clicking a minion picks it up. The pick up button in the menu works either way
pickup.keep-fuel-on-pickuptrueWhether stored fuel stays on the minion item when it is picked up
pickup.storageMOVE_TO_INVENTORYMOVE_TO_INVENTORY hands the stored items over with the minion, and refuses the pickup if they do not all fit. BLOCK refuses the pickup until the storage is empty

Output

KeyDefaultWhat it does
output.overflowSTOPWhat happens when drops do not fit. STOP pauses the minion with the "Storage full" status until space is made. VOID throws the extra drops away and keeps working
output.filter-rejectVOIDWhat happens to drops the filter rejects. VOID deletes them, DROP drops them on the ground at the minion
output.collect-experiencefalseWhether experience from actions is stored on the minion. When on, an experience button appears in the minion menu

Collectors

KeyDefaultWhat it does
collectors.pair-timeout-seconds60How long pairing waits for the player to right click a collector or a minion, in seconds

Pairing starts from /minion pair or the Pair button in a chunk collector's menu. See Collector pairing.

Ground items

KeyDefaultWhat it does
ground-items.protected-plugins[]Plugins, by name, whose data on a dropped item makes ground collectors and lumberjacks leave that item on the ground. Data from plugins not listed is ignored
ground-items.protected-tags[]Scoreboard tags that make ground collectors and lumberjacks leave a dropped item on the ground. Matched exactly, capitals included. Tags not listed are ignored

Some plugins, ItemsAdder among them, tag every item a player drops, so before 1.0.0-3 those items were never collected. Before 1.0.0-5 any scoreboard tag kept an item on the ground in the same way. See Chunk collector.

Upgrades

KeyDefaultWhat it does
upgrades.require-max-leveltrueWhether upgrade items other than level upgrades can only be applied once a minion is at the highest level of its type. Set it to false to allow them at any level
upgrades.max-looting3The highest looting level a hunter can reach from upgrades, however many are applied

See Levels and upgrades.

Fuel

KeyDefaultWhat it does
fuel.upgrade-increase10How much more fuel an action uses for each applied upgrade, in percent. Level upgrades never count, and an entry in upgrades.yml can set its own value with fuel-increase

A minion with two upgrades at the default uses 20 percent more fuel per action, before fuel efficiency takes its share off. %fuel_use% on the fuel button shows the result. See Fuel.

Breakdowns

KeyDefaultWhat it does
breakdowns.enabledtrueWhether minions can break down after an action
breakdowns.base-chance0.0The chance that one action breaks a minion, in percent, before upgrades are counted
breakdowns.chance-per-upgrade0.02The chance added for each applied upgrade, in percent. Level and reliability upgrades do not count
breakdowns.repair-costmoney: 2500What a repair costs, using the currency ids from upgrades.yml
breakdowns.repair-cost-per-upgrademoney: 500What a repair costs on top for each applied upgrade. Level and reliability upgrades do not count
breakdowns.repair-itemsiron, switched offItems a repair takes from the player's inventory on top of repair-cost. A type file can set its own under breakdowns.repair-items
breakdowns:
  enabled: true
  base-chance: 0.0
  chance-per-upgrade: 0.02
  repair-cost:
    money: 2500
  repair-cost-per-upgrade:
    money: 500
  repair-items:
    iron:
      enabled: false
      material: IRON_INGOT
      custom-model-data: 0
      name: ""
      itemsadder: ""
      mythicmobs: ""
      amount: 4
      amount-per-upgrade: 0
      display: ""

Each entry under repair-items is one item:

KeyShipped valueWhat it does
enabledfalseWhether this item is asked for
materialIRON_INGOTThe material the player has to carry
custom-model-data0Only count items with this custom model data. 0 ignores it
name""Only count items with this name. Empty ignores it
itemsadder""Only count this ItemsAdder item. Empty ignores it
mythicmobs""Only count this MythicMobs item. Empty ignores it
amount4How many are taken for one repair
amount-per-upgrade0How many more are taken for each applied upgrade. Level and reliability upgrades do not count
display""How the item is shown in repair prices, with %amount%. Empty uses the item's own name

A saved-item key can be added to an entry instead, and then only items exactly like it count.

Each type file has a breakdowns section, except chunkloader.yml, where repair-cost, repair-cost-per-upgrade and repair-items are DEFAULT to use these values or a section of their own to replace them.

With the shipped values a minion without upgrades never breaks down. See Breakdowns and repairs for how the chance and the price are worked out.

Animation

KeyDefaultWhat it does
animation.enabledtrueWhether minions turn, step and swing when they work. Each type can switch its own off with appearance.animation
animation.view-distance48How close in blocks a player must be before a minion animates. Sounds and particles play either way

The style and timing of each type's animation are in its type file. See Work animation.

Holograms

KeyDefaultWhat it does
holograms.enabledtrueWhether minions show a hologram at all. Each type can also switch its own off
holograms.view-distance32Roughly how far away the hologram can be seen, in blocks
holograms.y-offset1.8How far above the minion the hologram sits, in blocks, for types whose hologram.offset-y is DEFAULT
holograms.keep-state-on-pickuptrueWhether a minion with a hidden hologram keeps it hidden after being picked up and placed again, see Hiding holograms

The hologram lines, their height and spacing, and lines for each status are set per type. See Holograms and effects.

Appearance

KeyDefaultWhat it does
appearance.use-owner-skin-when-no-modeltrueWhether minions with the VANILLA look wear their owner's skin instead of the type's head. Each type file can set its own value. See Minion types

ModelEngine

KeyDefaultWhat it does
modelengine.refresh-on-reloadtrueWhether placed ModelEngine minions get their model put back after meg reload, so changed animations show straight away. See After changing a model

Area preview

The work area preview a player can switch on from the minion menu. A type file's area-preview section can change any of these for that type.

KeyDefaultWhat it does
area-preview.enabledtrueWhether the Work Area button shows at all
area-preview.particleDUSTThe particle the outline is drawn with. DUST takes the colours below. Any other particle must need no extra data
area-preview.colour"85,255,255"The colour of the current area, as red,green,blue
area-preview.next-colour"255,170,0"The colour of the next level's area
area-preview.show-next-leveltrueWhether the next level's area is drawn too when it is bigger
area-preview.size1.0The size of each DUST particle
area-preview.density2Particles per block along each edge, from 1 to 8. Very large areas use fewer so the client is not flooded
area-preview.refresh-ticks10Ticks between redraws. 20 ticks are one second
area-preview.duration30Seconds before the preview hides by itself. 0 keeps it until it is switched off
area-preview.hide-on-closefalseWhether closing the minion menu hides it
area-preview.max-viewers5How many players can watch one minion's preview at once
area-preview.max-distance48How far a player can walk away before it hides
area-preview.highlight-targetsfalseWhether the blocks the minion will work on are marked inside the area
area-preview.highlight-particleHAPPY_VILLAGERThe particle the target blocks are marked with
area-preview.highlight-limit64The most target blocks marked on each redraw

Placeholders

KeyDefaultWhat it does
placeholders.server-refresh-seconds30How often the server wide placeholders count every minion again, in seconds

See Placeholders for the full list.

Performance

KeyDefaultWhat it does
performance.actions-per-tick40The most actions all minions together may run in one server tick
performance.rescan-interval300How often a minion rebuilds its list of target blocks as a safety net, in seconds. Anything under 10 is treated as 10
performance.no-target-retry10How long a minion with nothing to do waits before trying again, in seconds
performance.save-interval60How often changed minions are written to the database, in seconds

Lower actions-per-tick if a very busy server feels the load. Minions then queue up and run a little later, nothing is lost.

Sell

Adds a sell everything button to minion storage menus.

KeyDefaultWhat it does
sell.enabledfalseWhether the sell button appears. It also needs Vault with an economy plugin
sell.pricessee belowThe price paid for one item of each material, used when prices.provider is CONFIG, when no shop plugin is running, or when a shop plugin has no price for an item
sell:
  enabled: true
  prices:
    COBBLESTONE: 0.5
    IRON_ORE: 5.0
    GOLD_ORE: 8.0
    DIAMOND: 50.0
    WHEAT: 1.0

Prices in sell.prices go by material name only. Items with no price are left in the storage when the rest is sold. The button takes its prices from the provider set under prices, the same one seller minions use, so with a shop plugin installed it pays that plugin's sell prices.

Sell prices

Where sell prices come from, for seller minions and the sell everything button.

prices:
  provider: AUTO
  fallback-to-config: true
  config-first: false
KeyDefaultWhat it does
prices.providerAUTOEither AUTO, ESGUI, SHOPGUIPLUS, ESSENTIALS or CONFIG. AUTO takes EconomyShopGUI, then ShopGUIPlus, then the Essentials worth list, and sell.prices when none of them runs
prices.fallback-to-configtrueWhether an item the shop plugin has no price for is sold at its price in sell.prices
prices.config-firstfalseWhether a price listed in sell.prices is used before the shop plugin's price for that item

A provider named here that is not running falls back to sell.prices, with a warning in the console. On start the console says where prices come from. How each shop plugin is read is explained on Seller.

Seller

Settings shared by every seller minion. The settings for one seller type, such as its multipliers and link range, are in its type file.

seller:
  notify: CHAT
  notify-interval: 60
  link-timeout-seconds: 60
KeyDefaultWhat it does
seller.notifyCHATHow a seller's owner hears about sales. Either CHAT, ACTION_BAR or NONE
seller.notify-interval60How many seconds of sales are added up into one message. 0 sends a message for every sale
seller.link-timeout-seconds60How long linking waits for a container to be right clicked, in seconds

Command

KeyDefaultWhat it does
command.nameminionThe main command
command.aliasesminions, minioncoreOther names for the same command
command.labelssee belowThe word players type for each subcommand
command.admin-labelssee belowThe word typed after admin for each admin subcommand: help, list, remove, setlevel and debug
command:
  name: minion
  aliases:
    - minions
    - minioncore
  labels:
    help: help
    list: list
    shop: shop
    remove: remove
    pair: pair
    give: give
    fuel: fuel
    upgrade: upgrade
    reload: reload
    admin: admin
    sounds: sounds
    holograms: holograms
  holograms:
    hide: hide
    show: show
    all: all
    type: type
    this: this
    view: view
    "on": "on"
    "off": "off"
  admin-labels:
    help: help
    list: list
    remove: remove
    setlevel: setlevel
    debug: debug

Change only the value on the right of each label, the key on the left must stay. command.holograms holds the words typed after /minion holograms, renamed the same way. Player labels and admin labels are separate, so renaming labels.list leaves /minion admin list alone. /minion admin help follows admin-labels.help. Files from 1.0.0-1 may still have labels.setlevel and labels.debug. Nothing reads them any more and they can be deleted.

The command name, aliases, labels and admin labels are only read when the server starts. A change to any of them needs a full restart, /minion reload cannot apply it. If the command map cannot be reached for some reason, the plugin logs one line and /minion keeps working.

The help pages follow renamed labels by themselves. Each help line is built from the label in use plus the arguments under help.arguments or admin-help.arguments in the language file, so only the arguments are text you write. The full list of commands is on the Commands page.

Sounds

Played for events that happen to any minion. Use a sound key such as block.stone.place or ui.button.click, the same names the /playsound command uses. Leave a value empty for no sound. Custom sounds from a resource pack work too, such as mypack:minion.place. A value that is not a valid sound key, such as one with capital letters or spaces, is skipped with one warning in the console.

KeyDefaultPlayed when
sounds.categoryNEUTRALThe sound category every minion sound uses, which decides the volume slider that controls it. NEUTRAL is Friendly Creatures, other choices include BLOCKS, AMBIENT and MASTER
sounds.placeblock.stone.placeA minion is placed
sounds.pickupblock.stone.breakA minion is picked up
sounds.upgradeentity.player.levelupAn upgrade is applied or a level is bought
sounds.fuelblock.fire.ambientFuel is added
sounds.storage-fullblock.note_block.bassA minion fills its storage
sounds.out-of-fuelblock.fire.extinguishA minion runs out of fuel
sounds.breakdownentity.item.breakA minion breaks down. Played where it stands
sounds.repairblock.anvil.useA minion is repaired. Played to the player who repaired it

Particles

Shown at the minion for the same events. Use a particle name such as CLOUD or FLAME. Leave a value empty for no particle. A name the server does not know, or a particle that needs extra data such as a colour, is skipped with one warning.

KeyDefaultShown when
particles.placeCLOUDA minion is placed
particles.pickupCLOUDA minion is picked up
particles.upgradeHAPPY_VILLAGERAn upgrade is applied or a level is bought
particles.fuelFLAMEFuel is added
particles.storage-fullSMOKEA minion fills its storage
particles.out-of-fuelLARGE_SMOKEA minion runs out of fuel
particles.breakdownSMOKEA minion breaks down
particles.repairHAPPY_VILLAGERA minion is repaired

Each type file can replace these sounds for its own minions, and add sounds per action, per status and an ambient sound, see Per type sounds. Players can mute minion sounds for themselves with /minion sounds.

On this page