This plugin is a PoC made to test the CameraAPI plugin and the virions.
✔️ Create AFK mines in-game
✔️ Watch a dummy miner mining ores via a cinematic camera path
✔️ Receive real drops as rewards over time
✔️ Supports multilingual messages and localized default config via libmultilingual
✔️ Restores original blocks when deleting a mine
- PocketMine-MP 5.x
- PHP 8.2
- CameraAPI (plugin dependency)
- Virions used by this plugin:
session-utilsselection-visualize-utilsplay-sound-utilslibmultilingualplayer-state-backup
/afkmineadmin(permission:afkmine.command.admin, default: OP)create: enter mine creation modelist: list registered minesdelete <name>: delete a mine by name (restores original blocks for its ore spots)
/afkmine(permission:afkmine.command.user, default: true)- join/leave an available AFK mine session
KakaoTalk_20260311_191043959.mp4
- Your inventory will be replaced with creation tools.
- Touch blocks / use items to set positions:
- Ore spot tools (slot 1–3): add/remove ore spots by preset (Stone/Nether/Deepslate)
- Dummy spawn position
- Camera position (look-at) (can be added multiple times)
- Player hide position
- Save and exit
- In the save form, set:
- mine name
- ore regen interval (ticks)
KakaoTalk_20260311_191053714.mp4
- Start/stop an AFK session in an available mine.
- Rewards are settled every
reward-intervalseconds.
Default presets are registered in OrePresetRegistry:
- IDs:
stone,nether,deepslate - Names are localized via libmultilingual keys:
afkmine.orePreset.stoneafkmine.orePreset.netherafkmine.orePreset.deepslate
You can override presets by registering a new OrePreset with the same ID.
- Resource locale files:
resources/locale/eng.ini(required)resources/locale/kor.ini
- Server owners can edit messages in:
plugin_data/AFKMine/locale/*.ini
- Resource configs:
resources/config/eng.yml(required)resources/config/kor.yml
- On first run (or if
plugin_data/AFKMine/config.ymlis missing), the plugin saves the server-language matching config to:plugin_data/AFKMine/config.yml
When you mark blocks as ore spots during creation, AFKMine stores the original block state IDs.
When the mine is deleted (/afkmineadmin delete <name>), it restores those blocks so the world
returns to its previous state instead of leaving regenerated ores/base blocks behind.
- Download plugin
.pharreleases (or install from source for PoC testing) - Move downloaded
.pharfile to server's /plugins/ folder - Restart the server
See the repository license file for more information.