ماین ریست یک پلاگین مدیریت معدن برای PocketMine-MP است که به مدیران سرور اجازه میدهد مناطق استخراج سفارشی را ایجاد و پیکربندی کرده و آنها را بهصورت خودکار ریست کنند.
اونر اپکس ماین
این فایل با اسکنر امنیتی بدراکهاب بررسی شده و فاقد کدهای مخرب یا ناامنه.
اگه سوالی درباره راهاندازی یا ارورهای این پلاگین داری، توی نظرات بپرس یا بیا دیسکورد.
Automatic mine management and reset system for PocketMine-MP
MineReset is a mine management plugin for PocketMine-MP that allows server administrators to create, configure, and automatically reset custom mining areas.
Each mine can have its own reset interval, block distribution, reset mode, and protected region. Mines are stored persistently and restored automatically when the server starts.
| Feature | Description |
|---|---|
| Mine management | Create, inspect, modify, reset, and delete mines directly in-game. |
| Automatic resets | Mines automatically reset after their configured reset interval. |
| Custom block distribution | Configure which blocks are generated inside each mine and their individual chances. |
| Weighted block selection | Block chances are used to create a weighted random block distribution during resets. |
| Manual reset | Reset individual mines or every configured mine with a command. |
| Reset timer | Configure an independent reset interval for every mine. |
| Changed-only reset mode | Optionally reset a mine only when blocks inside it have been changed. |
| Explosion detection | Explosions inside a mine are detected as changes to the mine. |
| Player handling | Players inside a mine can automatically be teleported to the world's safe spawn when the mine resets. |
| Reset announcements | Broadcast configurable messages when a mine starts resetting. |
| Persistent storage | Mine definitions are automatically saved to a JSON configuration file. |
| Asynchronous reset process | Mine resets are processed incrementally to avoid performing the entire operation in a single tick. |
| Configuration control | Control reset performance, player teleportation, prefixes, and reset announcements from config.yml. |
No external plugin dependencies are required.
MineReset.phar.plugins/ directory.config.yml will be generated automatically.The main configuration file is located at:
plugin_data/MineReset/config.yml
Example:
# DO NOT TOUCH!
config-version: "1.0.0"
# Plugin prefix
prefix: "§7[§b§lMine§dReset§r§7] "
# How many blocks should be replaced before yielding.
# 20 ticks = 1 second.
blockReplaceTick: 3000
# Teleport players inside the mine to the world's safe spawn
# when the mine is reset.
teleport-to-spawn: true
messages:
mine-reset-announcement: "{prefix} §bMine §a{mine}§b is resetting."
| Option | Default | Description |
|---|---|---|
prefix | MineReset prefix | Prefix used by plugin messages. |
blockReplaceTick | 3000 | Number of blocks replaced before the reset process yields. |
teleport-to-spawn | true | Teleports players inside the mine to the world's safe spawn during a reset. |
Supported message placeholders:
| Placeholder | Description |
|---|---|
{prefix} | Plugin prefix |
{mine} | Mine name |
Use:
/mine create
After running the command, the plugin will ask you to select two positions.
Break one block to select the first position, then break another block to select the second position.
Example:
/mine create MineA 300
This creates a mine named MineA with a reset interval of 300 seconds.
The selection process automatically expires after one minute.
To cancel the selection process, use:
cancel38
After creating a mine, blocks can be added using:
/mine addblock
Example:
/mine addblock MineA stone 60
/mine addblock MineA coal_ore 25
/mine addblock MineA iron_ore 10
/mine addblock MineA diamond_ore 5
The configured chance determines the weight of each block when the mine is regenerated.
The maximum configured chance for an individual block is 100.
Remove a block entry from a mine using its index:
/mine removeblock
Example:
/mine removeblock MineA 2
Use /mine info to view the indexes of the configured blocks.
Reset a specific mine manually:
/mine reset
Example:
/mine reset MineA
Reset every registered mine:
/mine resetall
Manual resets use the same reset process as automatic resets.
Change the reset interval of an existing mine:
/mine setresettime
Example:
/mine setresettime MineA 600
This changes the reset interval to 600 seconds.
The value is automatically treated as an absolute value.
MineReset supports two reset modes.
The mine resets whenever its configured reset timer expires.
The mine resets only if blocks inside the mine have been changed since its previous reset.
Enable or disable this mode with:
/mine diffreset
Example:
/mine diffreset MineA true
When enabled, the mine waits for a block break or an explosion inside its region before allowing the next timed reset.
This can be useful for mines that should not regenerate when nobody has mined them.
View detailed information about a mine:
/mine info
The information includes:
Example:
/mine info MineA
Display all registered mines:
/mine list
This shows every mine currently registered by MineReset.
Delete an existing mine:
/mine delete
Example:
/mine delete MineA
The mine is removed from the active registry and will no longer be processed.
| Command | Description | Permission |
|---|---|---|
/mine create | Create a new mine | minereset.command |
/mine info | Display mine information | minereset.command |
/mine list | List all mines | minereset.command |
The minereset.command permission defaults to op.
When a mine is reset, MineReset:
MineResetEvent.The reset region is defined by the two positions selected during mine creation.
MineReset provides a cancellable reset event:
ApexGaming\MineReset\events\MineResetEvent
The event provides access to the mine being reset and whether the reset was triggered after detecting a change.
Example:
use ApexGaming\MineReset\events\MineResetEvent;
public function onMineReset(MineResetEvent $event): void{
$mine = $event->getMine();
if($mine->name === "MineA"){
$event->cancel();
}
}
This allows other plugins to control or prevent mine resets.
Mine definitions are stored automatically in:
plugin_data/MineReset/config.json
The stored data includes:
The data is saved automatically when the plugin is disabled.
MineReset includes its required libraries inside the project.
Build the plugin using your preferred PocketMine-MP plugin build workflow.
The resulting plugin can be installed as:
MineReset.phar
© ApexGaming — made by TheFaRHaNiR
انتشار اولیه در BedrockHub
برای ثبت نظر و پرسش درباره این پلاگین، وارد حسابت شو:
awesome
messages.mine-reset-announcement | Enabled | Message broadcast when a mine begins resetting. |
/mine reset | Reset a specific mine | minereset.command |
/mine resetall | Reset all mines | minereset.command |
/mine addblock | Add a block to a mine | minereset.command |
/mine removeblock | Remove a block entry | minereset.command |
/mine setresettime | Change reset interval | minereset.command |
/mine diffreset | Toggle changed-only reset mode | minereset.command |
/mine delete | Delete a mine | minereset.command |