Minions

3commands
1permission
1file
4figures
5min read
Sheet 27 of 53 · Features

Filesfeatures/minions.yml

Filefeatures/minions.ymlCommand/is minionsCommand/is admin minionMinions are placed workers that keep an island earning while its members are away. A farmer harvests and replants crops, a miner breaks the blocks your generator makes, a collector sweeps up dropped items. Each one fills its own storage, which you empty from its menu.

A minion can be a dressed armour stand, a resource-pack model at any scale, or a ModelEngine or BetterModel model if you run either plugin. Each has a hologram over it, animates while it works, and shows a placement preview so you see where it goes and what it reaches before you put it down.

CommandWhat it does
/is minionsBuy minions (alias: /is minion). Also on the **Progression** tile of `/is`
/is admin minion <player> <type> [level]Give an online player a minion item (`ignitesky.admin`)
/is minions sells every type priced above zero; a type priced at 0 stays admin-only.
The minion shop showing the farmer, miner and collector with their prices

Placing a minion

Hold a minion item and look at a block. While you hold it, the spot and the square it will work are drawn for you alone:

Green means it can go there, and the action bar names the radius it will work.
The placement preview: a green outline on the ground and the action bar saying the minion can be placed

Green means it can go there, and the action bar tells you how far it reaches. Red means it can't, and the action bar says why.

Right-click to place it. It faces you, rounded to the nearest 45 degrees by default, and stands on the block you aimed at.

A spot has to pass every placement rule:

RuleWhy it can be refused
Your islandThe spot is on an island where you may build
Free spaceNothing stands in the block, and it has headroom above (2 blocks by default)
Solid groundThe block under it is solid
SpacingNo other minion within min-spacing blocks
Per-chunk capThe chunk holds fewer than max-per-chunk minions
Island capThe island is under its minion limit (flat, or raised with the minion-limit upgrade)
Type capThe island is under that type's own limit, if it has one

Using a minion

Right-click a minion to open its menu. Sneak-right-click turns it to the next facing.

Every minion carries its own hologram: name and level, what it is doing, and how full it is.
A minion's floating hologram showing its name, level, state and storage bar
ButtonWhat it does
CollectTake everything it gathered; what does not fit drops at your feet
UpgradeBuy the next tier: faster, longer reach, more storage, and a new look if the tier has one
TurnFace the next way
Show work areaOutline the square it reaches for a few seconds
Pick upTake it back as an item. Its level is kept and its storage is handed over first

The menu also shows its level, how full it is, how far it reaches, how often it works and what it is doing right now. A minion holding more kinds of item than one page fits pages through them, and so does the shop when you configure more types than its grid holds. Anyone who may build on the island can use a minion.

The minion's own menu: what it gathered, and the buttons that empty it, turn it, upgrade it or take it back.
The minion menu with its storage and the turn, collect, upgrade, pick up and show area buttons

What each action does

actionEach tick it...
FARMHarvests one fully grown crop in range and replants it in place
MINEBreaks one of the listed blocks in range, as a pickaxe would. It never breaks a stacked block, a chest or anything else that holds items
COLLECTPicks up one dropped item in range. Items a player threw, including death drops, are left alone

A minion only works while its chunk is loaded, never reaches past its own island, and stops when its storage is full until someone collects. Each one ticks on the region that owns the block it stands on, so minions behave the same on Paper and on Folia. What it gathers is saved every few minutes, so a crash does not throw the haul away. Blocks a miner breaks come off the island's worth like any other break. If something removes its body or hologram, a /kill or a world edit, it stands back up on its next work tick. Two members clicking pick up or upgrade at the same moment get one item and one tier, never two.

The hologram

A line of floating text over every minion shows its name and level, what it is doing, and a storage bar:

Miner - lv 3/3
Working
||||||||||  2/1280

Config keyminion.hologramConfig keyhologram.linesThe state line reads Working, Waiting for work (nothing in range) or Storage full - collect me. Every line is a key under minion.hologram in the language file, so it can be reworded, recoloured or translated, and hologram.lines in the config picks which lines appear and in what order.

Animations

Config keyanimations.rangeA minion that works swings its arm (or, as a display model, pulses), with block-break particles for a miner, a sparkle over the crop for a farmer and item particles for a collector. It pops into place when put down, spins when upgraded, and a display model glows red while its storage is full. Animations and particles are only drawn while a player is within animations.range blocks, so a server full of minions nobody is watching costs nothing to draw.

How a minion looks

Each type has a model: section. Its renderer decides what draws it.

armor_stand

The classic minion: a small armour stand dressed from the model.

features/minions.yml
    farmer:
      model:
        renderer: armor_stand
        head: HAY_BLOCK
        chest: { material: LEATHER_CHESTPLATE, color: "#5BA83A" }
        legs: { material: LEATHER_LEGGINGS, color: "#7A5230" }
        feet: { material: LEATHER_BOOTS, color: "#3B2A1A" }
        hand: IRON_HOE

Slots are head, chest, legs, feet, hand and off-hand; small (default true) and arms (default true) shape the stand. Players cannot take its gear.

display

An item display: any item, or any model a resource pack ships, at any scale. Displays cannot be clicked, so a hitbox of the size you give stands in for it.

features/minions.yml
    collector:
      model:
        renderer: display
        item: { material: PAPER, components: { item-model: "mypack:minions/collector" } }
        scale: 0.7
        offset-y: 0.45
        hitbox: { width: 0.7, height: 1.0 }

ModelEngine and BetterModel

With ModelEngine (R4) or BetterModel installed, IgniteSky picks it up at startup and two more renderers appear: modelengine and bettermodel. Nothing else to install. model names the model as that plugin knows it:

features/minions.yml
    golem:
      model:
        renderer: modelengine        # or bettermodel
        model: golem_minion
        scale: 1.2
        hologram-height: 2.4
        animations:                  # rename to match your model; these are the defaults
          idle: idle
          work: work
          upgrade: upgrade
          place: place
          full: full
MomentWhen it plays
idleLoops the whole time the minion stands
workOnce per harvest, while a player is close
upgradeOnce, after an upgrade
placeOnce, when it is placed
fullLoops while storage is full, stops once emptied

If the model lacks an animation, nothing plays for that moment, so a model with only idle works fine. The model rides an invisible armour stand, and clicking that stand opens the menu. A model id the plugin does not know is logged when the minion spawns and that one minion is skipped, so a typo shows up in the console instead of silently.

A model from any other plugin

Any other renderer id is looked up among the renderers other plugins registered, and the whole model: section is handed to it. If no plugin has registered that id yet, the minion stands as an armour stand and the console says so once. Writing one is covered on Extension Points.

Items in a model

Anywhere a model takes an item, you can give a bare material name or a section:

KeyEffect
materialThe item
components: { item-model: ns:path }A 1.21.4+ item model from your resource pack
custom-model-dataThe older resource-pack model number
textureA player head's skin (base64 value)
colorLeather armour colour, hex
glowEnchantment glint

A player head with a skin, for a character minion:

head: { material: PLAYER_HEAD, texture: "eyJ0ZXh0dXJlcyI6ey..." }

hologram-height sets where the text floats, in blocks above the minion's feet; each renderer has its own default.

A new look per tier

A tier can override any part of the model. Only what it names changes, the rest is inherited, so an upgrade shows at a glance:

features/minions.yml
      tiers:
        1: { cost: 3000, interval-seconds: 10, radius: 1, storage: 320 }
        2: { cost: 9000, interval-seconds: 6, radius: 2, storage: 640, model: { hand: DIAMOND_PICKAXE } }
        3:
          cost: 24000
          interval-seconds: 4
          radius: 2
          storage: 1280
          model:
            head: GOLDEN_HELMET
            hand: { material: NETHERITE_PICKAXE, glow: true }

The optional item: section on a type restyles the placeable item the same way, so the item in the player's hand can wear a custom model too.

Configuration

features/minions.yml
minions:
  enabled: true
  limit: 3                       # minions per island
  limit-upgrade: "minion-limit"  # an upgrade whose tier replaces the limit (blank = flat cap)
 
  placement:
    require-solid-ground: true
    headroom: 2                  # free blocks it needs, counting its own
    min-spacing: 1               # blocks between two minions (0 = only never in the same block)
    max-per-chunk: 4             # 0 = no cap
    rotation-snap: 45            # it faces the placer, rounded to this many degrees (0 = exactly)
    preview:
      enabled: true
      interval-ticks: 5
      range: 6
 
  hologram:
    enabled: true
    lines: [title, state, storage]
    view-distance: 32            # blocks
    see-through: false
    shadow: true
    background: default          # default, none, RGB (202020) or ARGB (60000000)
    bar-length: 10
 
  animations:
    enabled: true
    particles: true
    range: 24
 
  types:
    miner:
      display: "<gray>Miner"
      icon: IRON_PICKAXE
      action: MINE               # FARM, MINE or COLLECT
      price: 20000               # shop price; 0 keeps the type admin-only
      limit: 0                   # at most this many of this type per island (0 = none)
      blocks: [COBBLESTONE, STONE, DEEPSLATE, BASALT]   # MINE only: what it may break
      model: { ... }
      tiers:
        1: { cost: 3000, interval-seconds: 10, radius: 1, storage: 320 }
Tier keyEffect
costWhat the upgrade to this tier costs (0 = free). Tier 1 is never charged: the minion is bought at `price` already at level 1
interval-secondsHow often it works
radiusHow far it reaches, 1 to 8 blocks
storageHow much it holds before it stops
modelOverrides part of the type's model at this tier

Tier keys are the level numbers themselves, so they must run 1, 2, 3 with no gap; a type with a gap is not loaded. If you set limit-upgrade, that upgrade's tier 0 value has to match limit.

Command/is admin reloadEverything here reloads with /is admin reload. A minion already standing picks up a new model or interval the next time it is rebuilt: an upgrade, its chunk loading again, or a restart.

Loading the index

Enter openUp Down moveEsc close