Configuring a Miner
A miner breaks its target blocks and puts each one back exactly as it was after regen-delay-ticks. This page builds one from scratch.
Quick start
Open the
/plugins/EcoMinions/minions/folder and copycoal.ymlto a new file. The file name is the minion ID.Set
type: miner.List the blocks it mines under
target-blocks.Run
/minions reload, then/minions give <player> <id>to hand the minion out.Place the minion over a dug-out ring and confirm it mines into its storage.
Naming and IDs
The file name without .yml is the minion ID, as for every type. Everything not on this page is shared by every type and covered in Configuring a Minion.
The structure of a miner
| Part | What it controls |
|---|---|
| Targets | Which blocks it mines |
| Work area | The ring below the minion it mines in |
| Self-seeding | Placing its own blocks into an empty ring |
# === Targets: what the minion mines ===
type: miner # The minion breaks and regenerates blocks.
target-blocks: # The blocks it mines. Any block or custom block id.
- COAL_ORE
- DEEPSLATE_COAL_ORE
# === Work area: the ring below the minion ===
base-stats:
height: 1 # The layer below the minion only.
# === Self-seeding: filling an empty ring ===
placement:
self-seed: true # Whether the minion places its own target blocks.
Targets
The minion mines any block in its work area that matches target-blocks. Offline cycles roll each target block's real drop table; a custom block whose drops cannot be read offline needs drops in its block definition. Vanilla ores are worth their vanilla XP, and any block can set its own with xp in its block definition.
Work area
By default the work area is the ring one block below the minion (height: 1, floor-offset: -1), where its blocks sit.
Self-seeding
With placement.self-seed: true, the minion places its own target blocks into air in its work area. Every configured target is seeded, not only the first. On flat ground there is no air in the layer below, so it seeds nothing and stays blocked until the ring is dug out.
Where to go next
Shared config: Configuring a Minion for stats, item, upgrades and placement.
Blocks: Configuring a Block for custom blocks and per-block overrides.
Defaults: the shipped minions live here.