ALB Studio

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:

ButtonWhat it opens
Minion TypesAdd, delete and change types, with their tiers, drops and upgrade costs. Saved in types.yml.
SettingsEvery option of config.yml.
MenusThe player menus, in the menu editor all ALB plugins share.
Reload filesReads 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.

FieldHow to change it
TextClick, then type the new text in chat. Some texts can be cleared: type none.
NumberClick, then type a number. The chat tells you the lowest and highest value.
On / offClick to switch it.
ChoiceClick for the next option, right-click for the one before.
BlockClick while you hold the block, or right-click and type its name, like STONE.
ItemClick while you hold the item, or right-click and type it: DIAMOND or nexo:<id>. Press Q to clear it (where that is allowed).
LinesOpens 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.
LinkOpens 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

FieldKindsWhat it does
NameallThe name players see, with colour codes.
KindallMining, 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 blockminingThe block the area turns into. Must be a solid block.
Mined blockminingWhat a mined spot shows until it comes back.
CropfarmingWheat, carrots, potatoes, beetroots or nether wart. Nether wart grows on soul sand, the others on farmland.
SaplingwoodcuttingOak, spruce, birch, jungle, acacia, dark oak, cherry or pale oak.
LogwoodcuttingThe log of the trees. Leaves of the same wood go on top when there is room.
Tree heightwoodcuttingLogs per tree, 1 to 6. The area needs this many blocks of air plus one.
Tree spotswoodcuttingWhere 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 treewoodcuttingHow many times the minion swings its axe before the tree falls, 1 to 10.
MobslayingThe 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 onceslayingHow many mobs may stand in the area at the same time, 1 to 8.
ItemallThe material of the minion item.
Item name, Item loreallThe text on the minion item. See the placeholders below.
ModelallModelEngine model or Armor stand. See Models.
Model idsallThe ModelEngine model of each tier.
Armor stand lookallHead, armour and hand item of the armor stand.
AnimationsallThe animation names and the ticks where the work happens.
TiersallStorage, speed, drops and upgrade cost of each tier.
Give me oneallGives you a tier I minion item to try the type.

The item name and lore can use these placeholders:

PlaceholderValue
{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:

ModelWhat players see
ModelEngine modelEach 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 standA 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.

FieldWhat it does
Headowner 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 itemClick 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.

AnimationPlays when
idleIt has nothing to do. Loops.
walkIt 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.
workIt works: mines, harvests, chops, fishes or attacks.
spawnIt was just placed.
despawnIt was picked up. The model goes away after this.
upgradeIt was just upgraded.
sleep_startIts storage just got full.
sleepIts storage is full. Loops.
wakeIts storage has room again.
plantFarming and woodcutting: it plants a new seed or sapling.
victorySlaying: 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.

KindWork animationHit ticksWhat happens on them
Miningmine12The block breaks.
Farmingharvest9The crop is harvested. The seed goes in at the plant tick (12) of plant.
Woodcuttingchop11Each 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.
Fishingfish18,68The first tick is the cast (splash), the second the catch.
Slayingattack6,14The 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_t5 becomes miner_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

FieldRangeWhat it does
Storage slots1 to 54How many stacks the minion can hold.
Works every (s)1 to 86400Seconds between two work actions. Decimals are fine.
Refill1 to 86400Seconds 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 hit0.5 to 10000Slaying only. Damage on every hit tick.
Model idThis tier's ModelEngine model.
Main dropThe item every action gives.
Main drop min, max1 to 64How many of it. A random amount between min and max.
Extra dropsItems with a chance. See Drops.
Upgrade costWhat 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:

ItemHow to set it
A vanilla item, like COBBLESTONEHold a plain item and click, or type its name.
A Nexo item, like nexo:bloodstoneHold the Nexo item and click, or type nexo:<id>. Needs Nexo.
An exact itemHold 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.

CostWhat it does
MoneyTaken from the player's balance. Needs Vault. Without an economy, a tier that costs money can't be bought.
XPXP levels or XP points, depending on upgrades.xp-mode.
ItemsTaken from the player's inventory.
ChecksPlaceholder conditions the player must meet. Nothing is taken.
CommandsConsole 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:

YAML
checks:
  - "%player_level%>=30"
  - "%vault_eco_balance%>=1000000|1,000,000 coins in your pocket"
OperatorMeans
>=at least
>more than
<=at most
<less than
== or =is
!=is not
containscontains the text
!containsdoes not contain the text
  • Put spaces around contains and !contains.
  • Numbers like 1,000, 2.5k and 75% 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:

  1. Open Checks and click + Add check.
  2. Type the placeholder, like %player_level%.
  3. Pick how to compare. The screen shows your own value of the placeholder now.
  4. Type the value.
  5. 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.

PlaceholderValue
{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.
YAML
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.

  1. One upgrade per minion at a time. A double click, or two players clicking at once, can't pay twice.
  2. Everything is checked first: checks, money, XP and items. If anything is missing, the player is told what, and nothing is taken.
  3. Then everything is taken: items first, then money, then XP. If the money can't be taken, the items go back.
  4. The new tier is saved.
  5. If saving fails, everything goes back: money, XP and items. If the player left, their items wait for their next join.
  6. 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.

plugins/ALBMinions/config.yml
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
OptionDefaultWhat it does
placement.air-above2Blocks of air needed above the floor, 1 to 10. A type can need more: a woodcutter needs its tree height plus one.
placement.world-blacklistNether, EndWorlds where minions can't be placed.
placement.default-limit5Most minions a player may place without an albminions.limit.<n> permission. See Limits.
placement.worldguard-flagtrueAlso check the WorldGuard flag alb-minions. See WorldGuard.
work.view-range32Players this close (8 to 128 blocks) see a minion's model, hologram and animations. Farther minions work with maths only.
work.walk-speed1.6How fast minions walk, in blocks per second.
work.unwatched-update-seconds5How often the work of loaded minions nobody watches is worked out, in seconds.
work.catch-up-per-tick4Most minions that catch up per tick after their chunk loads. Keeps lag spikes away.
work.catch-up-max-hours0Longest 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-clicktrueA left-click opens the minion menu too. Bedrock players tap, which is a left-click.
upgrades.xp-modelevelsHow XP costs count: levels or points.
models.yaw-offset0Turns every ModelEngine model by this many degrees.
models.armor-stand-fallbacktrueShow the armor stand look when ModelEngine is missing or a model is not loaded.
hologram.enabledtrueShow the text above minions.
hologram.height1.9Height of the text above the minion's feet, 0.5 to 5 blocks.
hologram.change-seconds8Seconds before the random line changes.
hologram.title{name} &f{tier-roman}The first line.
hologram.lines.working4 linesRandom lines while it works.
hologram.lines.waiting3 linesRandom lines while nothing is ready, like crops that still grow.
hologram.lines.full3 linesRandom lines while its storage is full.
saving.interval-seconds60Seconds 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:

plugins/ALBMinions/types.yml
types:
  miner:
    name: "&#7DD3FCMiner 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: []}
KeyWhat it is
types.<id>One type. The id is used in commands, like /minion admin give Steve miner 1.
name, kindThe name players see and what the minion does.
block, empty-blockMining: the resource block (STONE, COAL_ORE...) and what a mined spot shows until it comes back (AIR = a hole, the default).
cropFarming: WHEAT, CARROTS, POTATOES, BEETROOTS or NETHER_WART.
sapling, log, tree-height, tree-pattern, chopsWoodcutting: the sapling, the log, logs per tree, where trees grow (ring = 8, outer = 16, full = 24) and swings per tree.
mob, mob-capSlaying: the mob and how many at once.
item.material, item.name, item.loreThe minion item.
model.modemodelengine or armor-stand.
model.head, chestplate, leggings, boots, hand, armor-colorThe 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-tickThe hit ticks and the plant tick.
tiersThe tiers in order: the first is tier I.
storage, refill, action, damage, modelThe tier's numbers and its model id.
drop, extrasThe main drop and the extra drops. chance is in percent.
costmoney, 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.

TypeWorks onWorks every (s)Refill (s)Main drop per action
MinerStone, mined to a hole15, 13, 11, 9, 730, 26, 22, 18, 14Cobblestone: 1, 1, 1-2, 1-2, 2-3
Coal MinerCoal ore20, 17, 14, 12, 1040, 35, 30, 25, 20Coal: 1, 1, 1-2, 1-2, 2
Iron MinerIron ore30, 26, 22, 18, 1560, 52, 44, 36, 30Raw iron: 1, 1, 1-2, 1-2, 2
Gold MinerGold ore40, 34, 29, 24, 2080, 70, 60, 50, 40Raw gold: 1, 1, 1-2, 1-2, 2
Diamond MinerDiamond ore90, 78, 66, 54, 45180, 160, 140, 120, 100Diamond: 1, 1, 1, 1-2, 1-2
FarmingWheat14, 12, 10, 9, 860, 54, 48, 42, 36Wheat: 1, 1, 1-2, 1-2, 2-3
WoodcutterOak trees, 3 logs tall, 3 chops20, 18, 16, 14, 1290, 80, 70, 60, 50Oak log: 2-3, 2-3, 3-4, 3-4, 4-5
FishingIts pond24, 21, 18, 15, 12noneCod: 1, 1, 1-2, 1-2, 2-3
SlayerZombies, 3 at once20, 18, 15, 13, 1120, 18, 16, 14, 12Rotten flesh: 1-2, 1-2, 1-3, 2-3, 2-4

The Slayer Minion deals 3, 4, 5, 7 and 9 damage per hit.

TypeExtra drops (chance at tier I, then tier V)
MinerCoal 5% to 10%, raw iron 2% to 6%, diamond 0.2% to 1.2%. From tier III: raw gold 1.5% to 3.5%.
FarmingWheat seeds 40% to 60%, hay bale 0.5% to 2.5%. From tier III: golden carrot 0.5% to 1.2%.
WoodcutterStick 25% to 35%, oak sapling 10% to 18%, apple 4% to 8%. From tier III: golden apple 0.3% to 0.8%.
FishingSalmon 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%.
SlayerIron 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 toMoneyXP levelsItems
Tier II5,000none128 of its main drop (64 cod for the Fishing Minion)
Tier III15,000532 iron ingots
Tier IV40,0001032 gold ingots
Tier V100,0002016 diamonds

The player menus are YAML files in plugins/ALBMinions/menus/. Change them in game in /minion editor > Menus, or in the files.

FileMenuFunctions
minions.yml/minion: every type.open-editor (admins only)
minion-tiers.ymlThe tiers of one type.
my-minions.yml/minion mine: your placed minions.
minion.ymlOne minion: storage, upgrade, stats, pick up.collect, upgrade, max-tier, pickup
minion-upgrade.ymlConfirm an upgrade.confirm-upgrade
minion-pickup.ymlConfirm 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.

Type a class, method, config key or topic. Use the arrow keys and Enter to open a result.