Docs
Autominers
Every player owns a virtual autominer. While it is on and has time left, it mines blocks every few seconds and pays them like normal mining. There are no entities or blocks in the world: passive income at zero performance cost.
| Configuration | autominers.yml |
| Menu | menus/autominer.yml |
| Command | /autominer (aliases /am, /autominero) |
| Module | autominers |
How it works
- The player gets time: buying it in the menu or with vouchers.
- They turn the autominer on with
/autominer toggleor from the menu. - Every
tick-secondsit mines blocks, pays them and subtracts that time. - With tokens they buy speed, fortune and finder upgrades.
Configuration
yaml
settings:
tick-seconds: 5
mode: anywhere # anywhere, or private-mine: only inside their private mine
afk-seconds: 0 # seconds standing still before working, 0 ignores movement
action-bar: true
blocks:
use-private-mine-blocks: true # mines the block mix of their private mine stage
per-tick: "10 * (1 + {speed} * 0.15) * (1 + {fortune} * 0.10)"
table: # mix when no private mine is loaded
STONE: 60
COBBLESTONE: 30
COAL_ORE: 8
IRON_ORE: 2
time:
max-seconds: 86400 # cap of stored time, 0 for none
purchase:
seconds: 3600
cost:
tokens: 5000
vouchers:
one-hour:
seconds: 3600
item:
material: PAPER
name: "@autominer.items.voucher-name"
glow: true
rewards: # extra currency per cycle
- currency: tokens
amount: "{blocks} * 0.5 * (1 + {token_finder} * 0.2)"
- currency: shards
amount: "1"
chance: "2 + {token_finder} * 0.5"
upgrades:
speed:
name: "@autominer.items.speed-name"
description: "@autominer.items.speed-description"
icon: SUGAR
max-level: 20
currency: tokens
cost: "10000 * 1.35 ^ {level}"- Every upgrade id is a variable:
speed→{speed},token-finder→{token_finder}. rewardsaccepts{blocks},{tick_seconds}and the upgrades.chanceis optional, in %.- The
autominer-speedstat multiplies blocks andcurrency:<id>the rewards. - Vouchers are redeemed with right click.
Commands
| Command | Permission | Does |
|---|---|---|
/autominer · /autominer menu | everyone | Menu |
/autominer toggle | everyone | Turns it on or off |
/autominer addtime <player> <time> | pulseprison.autominer.admin | Adds time, for example 1h30m |
/autominer voucher <player> <id> [amount] | pulseprison.autominer.admin | Gives vouchers |
/autominer reload | pulseprison.autominer.admin | Reloads autominers.yml |
Milestones can measure autominer blocks with type: autominer-blocks.