Chunk Loader
Keep the chunks around a minion loaded so farms and other minions keep running when nobody is near.
A chunk loader keeps the chunks around it loaded. Place one next to a group of minions and they keep working while every player is somewhere else on the map. It does no other work and collects nothing, so it has no storage and no filter.
How it works
Place it
Right click a block with the chunk loader item, the same as any other minion. See Placing and picking up.
It takes hold of its chunks
On its first action, one delay after it is placed, the loader tells the server to keep its chunks loaded. It checks again on every action, so a level change or a fresh start after a pause is picked up by itself.
The chunks stay loaded
The chunks inside that square stay loaded, so other minions standing in them keep working while nobody is near.
How big the area is
The area is set per level with chunk-radius in minions/chunkloader.yml. It counts chunks from the loader to the edge of the square, including the chunk it stands in.
chunk-radius | Area | Chunks loaded |
|---|---|---|
1 | Only the chunk the loader stands in | 1 |
2 | 3 by 3 | 9 |
3 | 5 by 5 | 25 |
4 | 7 by 7 | 49 |
The area is always a square centred on the loader's chunk, not on the block it stands on. Every chunk is 16 by 16 blocks.
The shipped file has three levels:
| Level | chunk-radius | delay | fuel-efficiency | Cost of the next level |
|---|---|---|---|---|
| 1 | 1 | 10 | 0 | money: 50000 |
| 2 | 2 | 10 | 10 | money: 150000 |
| 3 | 3 | 10 | 20 | Max level |
Players buy the next level from the Level button in the upgrades menu, opened with the Upgrades button of the minion menu. See Levels and upgrades.
Chunk loaders never take speed upgrades, and they never break down, whatever upgrades they hold. See Upgrade kinds and Breakdowns and repairs.
Want a second loader with a different size? Copy chunkloader.yml to a new file name in the minions folder, keep behaviour: CHUNK_LOADER, and change the chunk-radius values. See Minion type files.
Fuel, if you want it
The shipped loader runs for free, because requires-fuel is false. Set it to true to make players pay to keep chunks loaded.
| Key | Shipped value | What it does |
|---|---|---|
requires-fuel | false | Whether the loader uses fuel at all |
settings.fuel-interval-seconds | 60 | How often one fuel action is used, in seconds |
max-stored-actions | 5000 | The most fuel actions it can hold |
With fuel switched on:
- One fuel action is used every
fuel-interval-seconds, not on every action. - Each interval uses fuel like any other action, so the level's
fuel-efficiencytakes that many percent off and applied upgrades add to it. See Fuel. - The loader still only acts once per
delay, so an interval shorter than the delay behaves like the delay. - A full tank of 5000 actions at 60 seconds each lasts about 83 hours.
- The fuel slot and the fuel efficiency upgrade button only show in the menu when fuel is on.
See Fuel for fuel items and how players add them.
When the chunks are let go
The loader lets its chunks go as soon as it stops working. The server can then unload them as normal.
| What happened | When the chunks are let go |
|---|---|
| The owner pauses it from the menu | Straight away |
| It is picked up, or an admin removes it | Straight away |
| It runs out of fuel | On the action that used the last fuel |
The owner has been offline longer than offline-max-hours | On its next action after the limit |
If two loaders cover the same chunk, that chunk stays loaded until both have let go of it.
A loader that let its chunks go only starts again from a loaded chunk. Resuming from the menu or adding fuel works, since the player is standing there. The owner joining is the exception: see When the owner joins.
When the owner joins
When the owner joins, each of their loaders that let its chunks go because the owner was offline, or whose chunk unloaded, takes its chunks again straight away. Its own chunk does not have to be loaded, so nobody needs to walk back to it. A loader is skipped when it is paused, or when it uses fuel and has none left.
After a restart
The plugin saves which chunks each loader holds. When the server starts again, it loads those chunks straight away instead of waiting for someone to walk past, and the console says Rebuilt the chunk tickets of 3 chunk loaders. with the real number.
A loader is left out of that rebuild when it is paused, out of fuel, or its owner has been offline longer than offline-max-hours. A loader left out because of its owner takes its chunks again when that owner joins.
Limits
A chunk loader has its own limit, separate from the total.
| Key | Where | Shipped value | What it does |
|---|---|---|---|
max-per-player | minions/chunkloader.yml | 2 | How many loaders one player may place |
limits.count-chunk-loaders | config.yml | false | Whether loaders count towards the total limit in limits.default |
With count-chunk-loaders: false a player can place their full total of normal minions and their loaders on top. The per type limit can be raised with a permission such as minioncore.limit.chunkloader.5. See Limits by rank.
The menu
A chunk loader's menu is shorter than most, because it has no storage, range or filter. It shows the info and status items, the Upgrades button, pause, trusted players, facing, statistics and pick up. See The minion menu.
It also has the Chunk area item, slot 24 in gui.yml under minion.items.area:
| Placeholder | Shows |
|---|---|
%area% | The size of the loaded area, such as 3x3 |
%minions% | How many other placed minions stand inside that area |
The same item appears on chunk collectors.