Admin guide
The in-game editor, config.yml, minion types, tiers, loot tables and upgrade costs.
Docs updated · What changed
On this page
The editorLink to this section
Run /minion editor to change everything in game. You need albminions.admin. Every change is saved at once and used right away, also by minions that are already placed.
The editor opens on a home screen with four buttons:
| Button | What it opens |
|---|---|
| Minion Types | Add, delete and change types, with their tiers, drops and upgrade costs. Saved in types.yml. |
| Settings | Every option of config.yml. |
| Menus | The player menus, in the menu editor all ALB plugins share. |
| Reload files | Reads config.yml, types.yml, lang.yml and the menus again. Use it after you edit a file by hand. |
How the fields workLink to this section
Every field works with a plain left-click, so you can use the editor from Bedrock too. Right-click and Q are extras. When the editor asks you to type something in chat, type cancel to stop.
| Field | How to change it |
|---|---|
| Text | Click, then type the new text in chat. Some texts can be cleared: type none. |
| Number | Click, then type a number. The chat tells you the lowest and highest value. |
| On / off | Click to switch it. |
| Choice | Click for the next option, right-click for the one before. |
| Block | Click while you hold the block, or right-click and type its name, like STONE. |
| Item | Click while you hold the item, or right-click and type it: DIAMOND or nexo:<id>. Press Q to clear it (where that is allowed). |
| Lines | Opens a list. Click a line to change it, press Q on a line to remove it, or click + Add line. Type empty for an empty line. |
| Link | Opens another screen. |
Minion typesLink to this section
A type is one kind of minion, like the Miner Minion. Every type has a kind (what it does), an item, a look and a list of tiers. The server comes with five types: miner, farming, woodcutter, fishing and slayer.
Open /minion editor > Minion Types:
- Click a type to change it.
- Press Q twice on a type to delete it. This only works when no minion of that type is placed.
- Click + New type to add one. Type an id in chat (
a-z,0-9,_and-, up to 32 characters), then pick its kind. The new type starts with one tier and the armor stand look.
The type screenLink to this section
| Field | Kinds | What it does |
|---|---|---|
| Name | all | The name players see, with colour codes. |
| Kind | all | Mining, farming, woodcutting, fishing or slaying. Locked while minions of this type are placed. Changing it resets the work animation and its hit ticks to that kind's defaults. |
| Resource block | mining | The block the area turns into. Must be a solid block. |
| Mined block | mining | What a mined spot shows until it comes back. |
| Crop | farming | Wheat, carrots, potatoes, beetroots or nether wart. Nether wart grows on soul sand, the others on farmland. |
| Sapling | woodcutting | Oak, spruce, birch, jungle, acacia, dark oak, cherry or pale oak. |
| Log | woodcutting | The log of the trees. Leaves of the same wood go on top when there is room. |
| Tree height | woodcutting | Logs per tree, 1 to 6. The area needs this many blocks of air plus one. |
| Tree spots | woodcutting | Where trees grow: 8 (every other outer block, the default), 16 (the outer ring) or 24 (every block). Fewer trees keep the minion easy to see. |
| Chops per tree | woodcutting | How many times the minion swings its axe before the tree falls, 1 to 10. |
| Mob | slaying | The mob it fights, like ZOMBIE. Any living mob that can spawn, but not players, armor stands, the Ender Dragon, the Wither, giants, elder guardians or wardens. |
| Mobs at once | slaying | How many mobs may stand in the area at the same time, 1 to 8. |
| Item | all | The material of the minion item. |
| Item name, Item lore | all | The text on the minion item. See the placeholders below. |
| Model | all | ModelEngine model or Armor stand. See Models. |
| Model ids | all | The ModelEngine model of each tier. |
| Armor stand look | all | Head, armour and hand item of the armor stand. |
| Animations | all | The animation names and the ticks where the work happens. |
| Tiers | all | Storage, speed, drops and upgrade cost of each tier. |
| Give me one | all | Gives you a tier I minion item to try the type. |
The item name and lore can use these placeholders:
| Placeholder | Value |
|---|---|
{name} | The type's name. |
{type} | The type's id, like miner. |
{tier}, {tier-roman} | The item's tier: 3 or III. |
{max-tier} | The type's highest tier. |
{storage} | Storage slots of that tier. |
{action} | Seconds between two actions at that tier. |
{refill} | Refill time of that tier, in seconds. |
The text is written on the item when the item is made. Items that players already have keep their old text. A minion that is picked up gets a fresh item with the new text.
ModelsLink to this section
A type has one of two looks:
| Model | What players see |
|---|---|
| ModelEngine model | Each tier's ModelEngine model, with animations. If ModelEngine is not running or a tier's model is not loaded, the armor stand look shows instead. |
| Armor stand | A small armor stand with a head, armour and a hand item. It moves its arms and head for each animation. Works without ModelEngine. |
Model ids lists every tier with its model id. A green tick means ModelEngine has that model loaded. A red cross means it does not. Click a tier and type a model id, or none to clear it. The same screen lists the animations the model needs, with a tick or a cross for the tier I model.
When ModelEngine loads its models again (/meg reload), every shown minion gets its model fresh.
Armor stand lookLink to this section
The armor stand look is used in armor stand mode, and as the fallback when a model can't be shown.
| Field | What it does |
|---|---|
| Head | owner shows the owner's head. A base64 skin texture shows that skin. Type none for no head. |
| Head (exact item) | Click while you hold a player head to use that exact head. |
| Chestplate, Leggings, Boots, Hand item | Click with the item in your hand, right-click to type it, or press Q to clear it. |
| Leather colour | #RRGGBB. Dyes leather armour. Leave it empty for leather's own colour. |
AnimationsLink to this section
A minion plays these animations. Each one has a name you can change, so you can use your own models.
| Animation | Plays when |
|---|---|
idle | It has nothing to do. Loops. |
walk | It walks to a spot, a mob, back to the middle, or strolls while it waits. It walks tile by tile on solid floor, around holes and grown trees. |
work | It works: mines, harvests, chops, fishes or attacks. |
spawn | It was just placed. |
despawn | It was picked up. The model goes away after this. |
upgrade | It was just upgraded. |
sleep_start | Its storage just got full. |
sleep | Its storage is full. Loops. |
wake | Its storage has room again. |
plant | Farming and woodcutting: it plants a new seed or sapling. |
victory | Slaying: its mob just died. |
The work happens on certain ticks of the animation (20 ticks = 1 second). Set them in Work hit ticks, separated by commas, like 6,14.
| Kind | Work animation | Hit ticks | What happens on them |
|---|---|---|---|
| Mining | mine | 12 | The block breaks. |
| Farming | harvest | 9 | The crop is harvested. The seed goes in at the plant tick (12) of plant. |
| Woodcutting | chop | 11 | Each swing hits the log. On the last of the Chops per tree, the tree falls. The sapling goes in at the plant tick (12) of plant. |
| Fishing | fish | 18,68 | The first tick is the cast (splash), the second the catch. |
| Slaying | attack | 6,14 | The mob takes damage on every hit tick. The animation loops until the mob dies. After 25 loops the mob falls anyway. |
ModelEngine tells the plugin how long each animation is. The armor stand look uses fixed lengths, like 1 second for mine.
TiersLink to this section
Open a type, then Tiers.
- Click a tier to change it.
- Click + Add tier to add a copy of the last tier. A model id that ends in a tier number moves up one:
miner_minion_t5becomesminer_minion_t6. - Press Q twice on the last tier to delete it. One tier must stay, and no placed minion may be at that tier or higher.
The tier screenLink to this section
| Field | Range | What it does |
|---|---|---|
| Storage slots | 1 to 54 | How many stacks the minion can hold. |
| Works every (s) | 1 to 86400 | Seconds between two work actions. Decimals are fine. |
| Refill | 1 to 86400 | Seconds a worked spot needs to come back. Its name changes with the kind: Block respawn, Crop grow time, Tree grow time or Mob respawn. Fishing has none. |
| Damage per hit | 0.5 to 10000 | Slaying only. Damage on every hit tick. |
| Model id | This tier's ModelEngine model. | |
| Main drop | The item every action gives. | |
| Main drop min, max | 1 to 64 | How many of it. A random amount between min and max. |
| Extra drops | Items with a chance. See Drops. | |
| Upgrade cost | What upgrading to this tier costs. Tier I has none. See Upgrade costs. |
How fast a minion worksLink to this section
A minion does one action every Works every seconds, but only when a spot is ready.
- Mining, farming and woodcutting have 24 spots: the floor blocks. A worked spot is ready again after the refill time.
- Slaying has one spot per mob (Mobs at once). A new mob comes the refill time after the last one died.
- Fishing has no spots. It catches something on every action.
For example, the tier I Slayer Minion fights 3 mobs at once and they come back after 20 seconds, so it can't kill more than 3 mobs in 20 seconds.
DropsLink to this section
Every action gives the main drop. Then every extra drop rolls its chance. Open Extra drops to manage them:
- Hold the item and click + Add extra drop. It starts at 5% and 1 item.
- Click an extra drop to change its item, chance (0.001 to 100%) and amount.
- Press Q on an extra drop to remove it.
An item can be:
| Item | How to set it |
|---|---|
A vanilla item, like COBBLESTONE | Hold a plain item and click, or type its name. |
A Nexo item, like nexo:bloodstone | Hold the Nexo item and click, or type nexo:<id>. Needs Nexo. |
| An exact item | Hold a renamed, enchanted or otherwise special item and click. The exact item is kept, with its name and lore. |
The minion is full when its main drop no longer fits. An extra drop that doesn't fit is lost.
Upgrade costsLink to this section
The cost of a tier is what a player pays to upgrade a minion to that tier. Open a tier, then Upgrade cost.
| Cost | What it does |
|---|---|
| Money | Taken from the player's balance. Needs Vault. Without an economy, a tier that costs money can't be bought. |
| XP | XP levels or XP points, depending on upgrades.xp-mode. |
| Items | Taken from the player's inventory. |
| Checks | Placeholder conditions the player must meet. Nothing is taken. |
| Commands | Console commands that run after the upgrade. |
ItemsLink to this section
Open Items, hold the item and click + Add held item. The amount is the size of the stack you hold. Click an item to type a new amount (1 to 100000). Press Q on it to remove it.
Only plain items can be a cost: vanilla items or Nexo items, without a custom name, enchantments or damage. A plain cost also only takes plain items from the inventory, so a renamed diamond never counts as a diamond.
ChecksLink to this section
A check compares a PlaceholderAPI placeholder with a value. It uses the same format as the requirement editor of ALBSkyblock:
checks:
- "%player_level%>=30"
- "%vault_eco_balance%>=1000000|1,000,000 coins in your pocket"| Operator | Means |
|---|---|
>= | at least |
> | more than |
<= | at most |
< | less than |
== or = | is |
!= | is not |
contains | contains the text |
!contains | does not contain the text |
- Put spaces around
containsand!contains. - Numbers like
1,000,2.5kand75%are compared as numbers. Text is compared without caring about upper or lower case. - The value can be another placeholder.
- Text after
|is the label players see. Without a label they see the placeholder, the operator and the value, like "player_level at least 30". - Without PlaceholderAPI, or when the placeholder is unknown, a check is never met.
To add a check in game:
- Open Checks and click + Add check.
- Type the placeholder, like
%player_level%. - Pick how to compare. The screen shows your own value of the placeholder now.
- Type the value.
- Type a label players see, or
skip.
Press Q on a check to remove it.
CommandsLink to this section
Commands run from the console, one after the other, once the upgrade is paid and saved. A / at the start is optional.
| Placeholder | Value |
|---|---|
{player} | The player who upgraded. |
{uuid} | Their UUID. |
{type} | The type id, like miner. |
{tier} | The new tier, as a number. |
{id} | The minion's id. |
commands:
- "give {player} minecraft:cake 1"
- "say {player} upgraded a {type} minion to tier {tier}!"Safe paymentsLink to this section
Upgrades never take a payment twice, and never keep one that didn't work.
- One upgrade per minion at a time. A double click, or two players clicking at once, can't pay twice.
- Everything is checked first: checks, money, XP and items. If anything is missing, the player is told what, and nothing is taken.
- Then everything is taken: items first, then money, then XP. If the money can't be taken, the items go back.
- The new tier is saved.
- If saving fails, everything goes back: money, XP and items. If the player left, their items wait for their next join.
- Only after the save do the commands run.
If even the money refund fails, the player is told that staff were informed, and the console logs how much to give back by hand.
config.ymlLink to this section
Change these in /minion editor > Settings, or in plugins/ALBMinions/config.yml. After a hand edit, run /minion admin reload.
placement:
air-above: 2
world-blacklist:
- world_nether
- world_the_end
default-limit: 5
worldguard-flag: true
work:
view-range: 32
walk-speed: 1.6
unwatched-update-seconds: 5
catch-up-per-tick: 4
catch-up-max-hours: 0
open-on-left-click: true
upgrades:
xp-mode: levels
models:
yaw-offset: 0
armor-stand-fallback: true
hologram:
enabled: true
height: 1.9
change-seconds: 8
title: "{name} &f{tier-roman}"
lines:
working:
- "&7Hard at work!"
- "&7Just one more..."
- "&7Busy busy busy!"
- "&7Storage: &f{percent}%"
waiting:
- "&7Waiting for things to grow..."
- "&7Taking a little break."
- "&7Storage: &f{percent}%"
full:
- "&#F87171Storage full! &7Zzz..."
- "&7Empty me, {owner}!"
- "&#F87171No room left..."
saving:
interval-seconds: 60| Option | Default | What it does |
|---|---|---|
placement.air-above | 2 | Blocks of air needed above the floor, 1 to 10. A type can need more: a woodcutter needs its tree height plus one. |
placement.world-blacklist | Nether, End | Worlds where minions can't be placed. |
placement.default-limit | 5 | Most minions a player may place without an albminions.limit.<n> permission. See Limits. |
placement.worldguard-flag | true | Also check the WorldGuard flag alb-minions. See WorldGuard. |
work.view-range | 32 | Players this close (8 to 128 blocks) see a minion's model, hologram and animations. Farther minions work with maths only. |
work.walk-speed | 1.6 | How fast minions walk, in blocks per second. |
work.unwatched-update-seconds | 5 | How often the work of loaded minions nobody watches is worked out, in seconds. |
work.catch-up-per-tick | 4 | Most minions that catch up per tick after their chunk loads. Keeps lag spikes away. |
work.catch-up-max-hours | 0 | Longest time a minion catches up after its chunk was unloaded, in hours. 0 = no limit. The storage still stops it when full. |
work.open-on-left-click | true | A left-click opens the minion menu too. Bedrock players tap, which is a left-click. |
upgrades.xp-mode | levels | How XP costs count: levels or points. |
models.yaw-offset | 0 | Turns every ModelEngine model by this many degrees. |
models.armor-stand-fallback | true | Show the armor stand look when ModelEngine is missing or a model is not loaded. |
hologram.enabled | true | Show the text above minions. |
hologram.height | 1.9 | Height of the text above the minion's feet, 0.5 to 5 blocks. |
hologram.change-seconds | 8 | Seconds before the random line changes. |
hologram.title | {name} &f{tier-roman} | The first line. |
hologram.lines.working | 4 lines | Random lines while it works. |
hologram.lines.waiting | 3 lines | Random lines while nothing is ready, like crops that still grow. |
hologram.lines.full | 3 lines | Random lines while its storage is full. |
saving.interval-seconds | 60 | Seconds between saves of changed minions, 5 to 3600. |
The hologram can use {name}, {type}, {tier}, {tier-roman}, {max-tier}, {owner}, {stored} (items stored), {capacity} (storage slots), {percent} (how full) and {id}.
types.ymlLink to this section
All types live in plugins/ALBMinions/types.yml. The editor writes this file for you. If you edit it by hand, run /minion admin reload after.
Here is the Miner Minion with only its first two tiers:
types:
miner:
name: "DD3FCMiner Minion"
kind: mining # mining | farming | woodcutting | fishing | slaying
block: STONE
empty-block: AIR
item:
material: IRON_PICKAXE
name: "{name} &f{tier-roman}"
lore:
- "&7Mines stone for you, even"
- "&7while you are away."
- ""
- "&8▪ &7Tier: &f{tier} &8/ &f{max-tier}"
- "&8▪ &7Storage: &f{storage} slots"
- "&8▪ &7Works every &f{action}s"
model:
mode: modelengine # modelengine | armor-stand
head: owner
chestplate: LEATHER_CHESTPLATE
leggings: LEATHER_LEGGINGS
boots: LEATHER_BOOTS
hand: IRON_PICKAXE
armor-color: "#B91C1C"
animations:
work: mine
work-hits: [12]
tiers:
- storage: 3
refill: 30
action: 15
model: miner_minion_t1
drop: {item: COBBLESTONE, min: 1, max: 1}
extras:
- {item: COAL, min: 1, max: 1, chance: 5}
- {item: RAW_IRON, min: 1, max: 1, chance: 2}
- {item: DIAMOND, min: 1, max: 1, chance: 0.2}
cost: {money: 0, xp: 0, items: {}, checks: [], commands: []}
- storage: 6
refill: 26
action: 13
model: miner_minion_t2
drop: {item: COBBLESTONE, min: 1, max: 1}
extras:
- {item: COAL, min: 1, max: 1, chance: 6}
- {item: RAW_IRON, min: 1, max: 1, chance: 3}
- {item: DIAMOND, min: 1, max: 1, chance: 0.3}
cost: {money: 5000, xp: 0, items: {COBBLESTONE: 128}, checks: [], commands: []}| Key | What it is |
|---|---|
types.<id> | One type. The id is used in commands, like /minion admin give Steve miner 1. |
name, kind | The name players see and what the minion does. |
block, empty-block | Mining: the resource block (STONE, COAL_ORE...) and what a mined spot shows until it comes back (AIR = a hole, the default). |
crop | Farming: WHEAT, CARROTS, POTATOES, BEETROOTS or NETHER_WART. |
sapling, log, tree-height, tree-pattern, chops | Woodcutting: the sapling, the log, logs per tree, where trees grow (ring = 8, outer = 16, full = 24) and swings per tree. |
mob, mob-cap | Slaying: the mob and how many at once. |
item.material, item.name, item.lore | The minion item. |
model.mode | modelengine or armor-stand. |
model.head, chestplate, leggings, boots, hand, armor-color | The armor stand look. |
animations.<name> | The name of each animation: idle, walk, work, spawn, despawn, upgrade, sleep-start, sleep, wake, plant, victory. A missing one uses its default name. |
animations.work-hits, animations.plant-tick | The hit ticks and the plant tick. |
tiers | The tiers in order: the first is tier I. |
storage, refill, action, damage, model | The tier's numbers and its model id. |
drop, extras | The main drop and the extra drops. chance is in percent. |
cost | money, xp, items (like COBBLESTONE: 128 or "nexo:<id>": 8), checks and commands. |
An item in drop, extras or the armor stand look is a material (COBBLESTONE), a Nexo item (nexo:<id>) or an exact item the editor saved (data: and a long code).
A broken value never stops the plugin. The console names it and a safe value is used instead. A type without tiers gets one default tier.
The default typesLink to this section
All five default types have 3, 6, 9, 12 and 15 storage slots at tiers I to V. The other numbers are below, from tier I to tier V.
| Type | Works on | Works every (s) | Refill (s) | Main drop per action |
|---|---|---|---|---|
| Miner | Stone, mined to a hole | 15, 13, 11, 9, 7 | 30, 26, 22, 18, 14 | Cobblestone: 1, 1, 1-2, 1-2, 2-3 |
| Coal Miner | Coal ore | 20, 17, 14, 12, 10 | 40, 35, 30, 25, 20 | Coal: 1, 1, 1-2, 1-2, 2 |
| Iron Miner | Iron ore | 30, 26, 22, 18, 15 | 60, 52, 44, 36, 30 | Raw iron: 1, 1, 1-2, 1-2, 2 |
| Gold Miner | Gold ore | 40, 34, 29, 24, 20 | 80, 70, 60, 50, 40 | Raw gold: 1, 1, 1-2, 1-2, 2 |
| Diamond Miner | Diamond ore | 90, 78, 66, 54, 45 | 180, 160, 140, 120, 100 | Diamond: 1, 1, 1, 1-2, 1-2 |
| Farming | Wheat | 14, 12, 10, 9, 8 | 60, 54, 48, 42, 36 | Wheat: 1, 1, 1-2, 1-2, 2-3 |
| Woodcutter | Oak trees, 3 logs tall, 3 chops | 20, 18, 16, 14, 12 | 90, 80, 70, 60, 50 | Oak log: 2-3, 2-3, 3-4, 3-4, 4-5 |
| Fishing | Its pond | 24, 21, 18, 15, 12 | none | Cod: 1, 1, 1-2, 1-2, 2-3 |
| Slayer | Zombies, 3 at once | 20, 18, 15, 13, 11 | 20, 18, 16, 14, 12 | Rotten flesh: 1-2, 1-2, 1-3, 2-3, 2-4 |
The Slayer Minion deals 3, 4, 5, 7 and 9 damage per hit.
| Type | Extra drops (chance at tier I, then tier V) |
|---|---|
| Miner | Coal 5% to 10%, raw iron 2% to 6%, diamond 0.2% to 1.2%. From tier III: raw gold 1.5% to 3.5%. |
| Farming | Wheat seeds 40% to 60%, hay bale 0.5% to 2.5%. From tier III: golden carrot 0.5% to 1.2%. |
| Woodcutter | Stick 25% to 35%, oak sapling 10% to 18%, apple 4% to 8%. From tier III: golden apple 0.3% to 0.8%. |
| Fishing | Salmon 20% to 35%, nautilus shell 0.2% to 1.2%. Tiers I to III: ink sac 4% to 5%. From tier III: pufferfish 4% to 6%. From tier IV: tropical fish 6% to 8%. Tier V: prismarine crystals 3%. |
| Slayer | Iron ingot 2% to 4.5%, carrot 2% to 4%, zombie head 0.1% to 0.6%. From tier III: potato 3% to 4%. |
Every default type costs the same to upgrade:
| Upgrade to | Money | XP levels | Items |
|---|---|---|---|
| Tier II | 5,000 | none | 128 of its main drop (64 cod for the Fishing Minion) |
| Tier III | 15,000 | 5 | 32 iron ingots |
| Tier IV | 40,000 | 10 | 32 gold ingots |
| Tier V | 100,000 | 20 | 16 diamonds |
Menus and messagesLink to this section
The player menus are YAML files in plugins/ALBMinions/menus/. Change them in game in /minion editor > Menus, or in the files.
| File | Menu | Functions |
|---|---|---|
minions.yml | /minion: every type. | open-editor (admins only) |
minion-tiers.yml | The tiers of one type. | |
my-minions.yml | /minion mine: your placed minions. | |
minion.yml | One minion: storage, upgrade, stats, pick up. | collect, upgrade, max-tier, pickup |
minion-upgrade.yml | Confirm an upgrade. | confirm-upgrade |
minion-pickup.yml | Confirm a pick up. | confirm-pickup |
Every file lists its placeholders and functions at the top. The upgrade button hides itself at the highest tier, and the max-tier button shows in its place. Every action, like [open] <menu> or [function] <id>, is explained in ALBCore YAML menus.
Chat messages and texts made by the plugin are in plugins/ALBMinions/lang.yml. A message can start with [chat] (the default), [actionbar], [title], [bossbar] or [off]. After you edit the file, run /minion admin reload.
SavingLink to this section
Minions are saved in ALBCore's database (SQLite or MySQL, as set in ALBCore).
- A minion is saved when it is placed, upgraded or picked up, and when items are taken out.
- Other changes are saved every
saving.interval-seconds(60 seconds), and when the server stops. - When an admin removes a minion with give-back and its owner is offline, the items are kept. The owner gets them when they next join.
- Minion bodies, holograms and slayer mobs are never saved with the world. If any are left after a crash, they are removed when their chunk loads.