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.
| File | What it controls | Page |
|---|---|---|
config.yml | Storage, placement, limits, offline working, collectors, upgrade rules, fuel use, breakdowns, holograms, selling and sell prices, sellers, the command, sounds and particles | This page |
minions/*.yml | One file per minion type | Minion type files |
fuel.yml and upgrades.yml | Fuel items, currencies and upgrade items | Fuel and upgrades |
gui.yml | Every menu and its text | Menus |
lang/*.yml | Chat messages | Messages and language |
shop.yml | The shop | Shop and claims |
filters.yml | Filter groups | Filters |
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.labelsandcommand.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.
| File | Version key | Version in 1.8.0 |
|---|---|---|
config.yml | config-version | 10 |
fuel.yml | fuel-version | 2 |
upgrades.yml | upgrades-version | 3 |
shop.yml | shop-version | 2 |
gui.yml | gui-version | 13 |
filters.yml | filters-version | 1 |
minions/*.yml | minion-version | 9 for farmer.yml, 7 for feeder.yml and seller.yml, 8 for the others |
lang/*.yml | lang-version | 10 |
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: 5sets the upgrade materials ingui.ymltoUPGRADE, see Menus, and replaces the old lore of the trust menu's add button.gui-version: 8moves 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: itslayoutis set to an empty list and every button stays where it is. The view menu is handled the same way. See Menus.gui-version: 9hides the Level button of the minion menu, since levels are bought in the upgrades menu from 1.4.0. It is taken out oflayoutand set toslot: -1only while it still sits on its shipped slot29, and a minion menu with an emptylayoutkeeps it.upgrades.slotsmoves 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: 13adds the Hologram button to the minion menu'slayout, right afterarea-preview, in the row that holds it. A layout withoutarea-previewis left alone, so give the button a place yourself there.lang-version: 5replaces the oldplacement.limit-reachedandplacement.type-limit-reachedin the three shipped languages.lang-version: 6replaces the oldadmin.ground-tagsreason, "carries scoreboard tags, likely from another plugin", with the new one that names the protected tag, in the three shipped languages.lang-version: 7replaces the oldcollector.not-a-workertext in the three shipped languages.
Language
| Key | Default | What it does |
|---|---|---|
language | en_US | The 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.
| Key | Default | What it does |
|---|---|---|
storage.type | SQLITE | SQLITE for a file in the plugin folder, or MYSQL |
storage.file | database.db | The database file name. Only used with SQLITE |
storage.table-prefix | minioncore_ | Put in front of every table name, so several plugins can share one database |
storage.mysql.host | localhost | Address of the MySQL server |
storage.mysql.port | 3306 | Port the MySQL server listens on |
storage.mysql.database | minioncore | The database to write to |
storage.mysql.username | root | The user to connect as |
storage.mysql.password | "" | The password for that user |
storage.mysql.ssl | false | Whether the connection uses SSL |
storage.mysql.pool-size | 10 | How many connections are kept open |
storage.mysql.connection-timeout | 10000 | How long to wait for a free connection, in milliseconds |
Disabled worlds
| Key | Default | What it does |
|---|---|---|
disabled-worlds | world_the_end | A list of world names where minions cannot be placed. Names match without caring about capital letters |
Placement
| Key | Default | What it does |
|---|---|---|
placement.minimum-distance | 2 | The fewest blocks allowed between two placed minions. 0 switches the check off |
placement.check-protection | true | Asks your protection plugins whether the player could build there before placing. See Placing and picking up |
Limits
| Key | Default | What it does |
|---|---|---|
limits.default | 3 | How many minions a player may place in total when no minioncore.limit.<number> permission matches them |
limits.mode | SUM | How several limit permissions combine. SUM adds every true one together, HIGHEST keeps only the largest |
limits.count-chunk-loaders | false | Whether chunk loaders count towards that total |
limits.count-chunk-collectors | false | Whether 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
| Key | Default | What it does |
|---|---|---|
offline-working | true | Whether minions keep working while their owner is offline |
offline-max-hours | 12 | How 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.
| Key | Default | What 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
- fuelTrusted 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.
| Key | Default | What it does |
|---|---|---|
input.cancel-word | cancel | The word a player types to stop the prompt |
input.timeout-seconds | 30 | How 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
| Key | Default | What it does |
|---|---|---|
pickup.shift-right-click | true | Whether sneaking and right clicking a minion picks it up. The pick up button in the menu works either way |
pickup.keep-fuel-on-pickup | true | Whether stored fuel stays on the minion item when it is picked up |
pickup.storage | MOVE_TO_INVENTORY | MOVE_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
| Key | Default | What it does |
|---|---|---|
output.overflow | STOP | What 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-reject | VOID | What happens to drops the filter rejects. VOID deletes them, DROP drops them on the ground at the minion |
output.collect-experience | false | Whether experience from actions is stored on the minion. When on, an experience button appears in the minion menu |
Collectors
| Key | Default | What it does |
|---|---|---|
collectors.pair-timeout-seconds | 60 | How 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
| Key | Default | What 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
| Key | Default | What it does |
|---|---|---|
upgrades.require-max-level | true | Whether 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-looting | 3 | The highest looting level a hunter can reach from upgrades, however many are applied |
See Levels and upgrades.
Fuel
| Key | Default | What it does |
|---|---|---|
fuel.upgrade-increase | 10 | How 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
| Key | Default | What it does |
|---|---|---|
breakdowns.enabled | true | Whether minions can break down after an action |
breakdowns.base-chance | 0.0 | The chance that one action breaks a minion, in percent, before upgrades are counted |
breakdowns.chance-per-upgrade | 0.02 | The chance added for each applied upgrade, in percent. Level and reliability upgrades do not count |
breakdowns.repair-cost | money: 2500 | What a repair costs, using the currency ids from upgrades.yml |
breakdowns.repair-cost-per-upgrade | money: 500 | What a repair costs on top for each applied upgrade. Level and reliability upgrades do not count |
breakdowns.repair-items | iron, switched off | Items 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:
| Key | Shipped value | What it does |
|---|---|---|
enabled | false | Whether this item is asked for |
material | IRON_INGOT | The material the player has to carry |
custom-model-data | 0 | Only 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 |
amount | 4 | How many are taken for one repair |
amount-per-upgrade | 0 | How 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
| Key | Default | What it does |
|---|---|---|
animation.enabled | true | Whether minions turn, step and swing when they work. Each type can switch its own off with appearance.animation |
animation.view-distance | 48 | How 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
| Key | Default | What it does |
|---|---|---|
holograms.enabled | true | Whether minions show a hologram at all. Each type can also switch its own off |
holograms.view-distance | 32 | Roughly how far away the hologram can be seen, in blocks |
holograms.y-offset | 1.8 | How far above the minion the hologram sits, in blocks, for types whose hologram.offset-y is DEFAULT |
holograms.keep-state-on-pickup | true | Whether 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
| Key | Default | What it does |
|---|---|---|
appearance.use-owner-skin-when-no-model | true | Whether 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
| Key | Default | What it does |
|---|---|---|
modelengine.refresh-on-reload | true | Whether 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.
| Key | Default | What it does |
|---|---|---|
area-preview.enabled | true | Whether the Work Area button shows at all |
area-preview.particle | DUST | The 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-level | true | Whether the next level's area is drawn too when it is bigger |
area-preview.size | 1.0 | The size of each DUST particle |
area-preview.density | 2 | Particles per block along each edge, from 1 to 8. Very large areas use fewer so the client is not flooded |
area-preview.refresh-ticks | 10 | Ticks between redraws. 20 ticks are one second |
area-preview.duration | 30 | Seconds before the preview hides by itself. 0 keeps it until it is switched off |
area-preview.hide-on-close | false | Whether closing the minion menu hides it |
area-preview.max-viewers | 5 | How many players can watch one minion's preview at once |
area-preview.max-distance | 48 | How far a player can walk away before it hides |
area-preview.highlight-targets | false | Whether the blocks the minion will work on are marked inside the area |
area-preview.highlight-particle | HAPPY_VILLAGER | The particle the target blocks are marked with |
area-preview.highlight-limit | 64 | The most target blocks marked on each redraw |
Placeholders
| Key | Default | What it does |
|---|---|---|
placeholders.server-refresh-seconds | 30 | How often the server wide placeholders count every minion again, in seconds |
See Placeholders for the full list.
Performance
| Key | Default | What it does |
|---|---|---|
performance.actions-per-tick | 40 | The most actions all minions together may run in one server tick |
performance.rescan-interval | 300 | How 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-retry | 10 | How long a minion with nothing to do waits before trying again, in seconds |
performance.save-interval | 60 | How 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.
| Key | Default | What it does |
|---|---|---|
sell.enabled | false | Whether the sell button appears. It also needs Vault with an economy plugin |
sell.prices | see below | The 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.0Prices 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| Key | Default | What it does |
|---|---|---|
prices.provider | AUTO | Either 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-config | true | Whether an item the shop plugin has no price for is sold at its price in sell.prices |
prices.config-first | false | Whether 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| Key | Default | What it does |
|---|---|---|
seller.notify | CHAT | How a seller's owner hears about sales. Either CHAT, ACTION_BAR or NONE |
seller.notify-interval | 60 | How many seconds of sales are added up into one message. 0 sends a message for every sale |
seller.link-timeout-seconds | 60 | How long linking waits for a container to be right clicked, in seconds |
Command
| Key | Default | What it does |
|---|---|---|
command.name | minion | The main command |
command.aliases | minions, minioncore | Other names for the same command |
command.labels | see below | The word players type for each subcommand |
command.admin-labels | see below | The 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: debugChange 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.
| Key | Default | Played when |
|---|---|---|
sounds.category | NEUTRAL | The 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.place | block.stone.place | A minion is placed |
sounds.pickup | block.stone.break | A minion is picked up |
sounds.upgrade | entity.player.levelup | An upgrade is applied or a level is bought |
sounds.fuel | block.fire.ambient | Fuel is added |
sounds.storage-full | block.note_block.bass | A minion fills its storage |
sounds.out-of-fuel | block.fire.extinguish | A minion runs out of fuel |
sounds.breakdown | entity.item.break | A minion breaks down. Played where it stands |
sounds.repair | block.anvil.use | A 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.
| Key | Default | Shown when |
|---|---|---|
particles.place | CLOUD | A minion is placed |
particles.pickup | CLOUD | A minion is picked up |
particles.upgrade | HAPPY_VILLAGER | An upgrade is applied or a level is bought |
particles.fuel | FLAME | Fuel is added |
particles.storage-full | SMOKE | A minion fills its storage |
particles.out-of-fuel | LARGE_SMOKE | A minion runs out of fuel |
particles.breakdown | SMOKE | A minion breaks down |
particles.repair | HAPPY_VILLAGER | A 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.