AxMines – 随机重生矿点功能(自定义分支)
这是开源 AxMines 插件的一个自定义分支,旨在引入一个完全可配置的随机重生矿点系统。我们最初是为自家尚未发布的 Minecraft 服务器开发此功能的,但现在将其免费公开发布,以便其他开发者和服务端主也能从中受益。
⭐ 新功能:随机重生矿点
此更新允许任何已创建的矿点根据用户定义的时间间隔进行随机生成与消失。
? 完全可配置
您可以从以下位置调整所有设置:
- 配置文件
- 游戏内 GUI,使用命令
/axmines editor
⚙️ 可自定义的内容
- 最小生成时间(矿点最早出现的时间)
- 最大生成时间(矿点最晚出现的时间)
- 矿点激活时长(矿点生成后持续存在的时间)
- 矿点消失时长(矿点消失后再次生成前的等待时间)
- 所有选项均可在 GUI 中轻松编辑:
/axmines editor → 选择矿点 → 配置新的随机重生设置。
? 此分支的用途
我们需要为自家服务器实现特殊的矿点行为,但由于此功能可能对他人也有帮助,因此我们在 Modrinth 上免费发布此分支。该分支保留了 AxMines 的所有现有功能,同时增加了我们的新随机重生系统。
✔️ 对开发者开放且友好
此分支旨在为原始插件提供实用的扩展,供开发者研究、改进或在此基础上进一步开发。
欢迎自由使用、修改!
? 示例矿点配置
# 随机生成配置
# 启用后,矿点将随机生成,而不是始终处于激活状态
# 正常的重置系统(刻数和百分比)将被自动禁用
random-spawn:
# 为此矿点启用随机生成
# 启用后,矿点将随机生成,而不是始终处于激活状态
# 正常的重置系统将自动禁用
enabled: true
# 矿点保持生成状态的最小时间(单位:刻)
# 20 刻 = 1 秒
# 默认值:6000 刻 = 5 分钟
min-time: 200 # 矿点保持生成状态的最小时间(5 分钟)
# 矿点保持生成状态的最大时间(单位:刻)
# 20 刻 = 1 秒
# 默认值:12000 刻 = 10 分钟
max-time: 300 # 矿点保持生成状态的最大时间(10 分钟)
# 矿点消失并在重新生成前保持消失状态的时间(单位:刻)
# 20 刻 = 1 秒
# 默认值:6000 刻 = 5 分钟
despawn-time: 100 # 矿点保持消失状态的时间(5 分钟)
# 启用随机生成功能的调试日志记录
# 显示有关生成/消失周期、计时和状态变化的详细信息
# 仅影响随机生成功能,不影响主插件的调试信息
debug: false # 仅启用随机生成功能的详细日志记录
# 时间占位符的格式
# 1 -> HH:MM:SS,例如 01:25:35
# 2 -> 短格式,例如 20m
# 3 - 文本格式,例如 01h 25m 35s
timer-format: 2
# 我们应该使用哪种 blocksetter 来放置方块?
# 选项:
# parallel - 性能最佳,不会卡顿服务端线程。有时可能略有不准 - 当前不可用
# fast - 在主线程上使用更快的方法放置方块
# bukkit - 使用 Bukkit API 放置方块。这是所有 setter 中最慢的
#
# 如果遇到方块未正确放置的问题,建议使用 bukkit。
setter: fast
AxMines – Random Respawn Mine Feature (Custom Fork)
This is a custom fork of the open‑source AxMines plugin, created to introduce a fully configurable Random Respawn Mine System. We built this feature for our unreleased Minecraft server, but we are now releasing it publicly for free so other developers and server owners can benefit from it.
⭐ New Feature: Random Respawn Mine
This update adds the ability for any created mine to spawn and despawn randomly, based on user‑defined timers.
? Fully Configurable
You can adjust all settings from:
- Config file
- In‑game GUI using
/axmines editor
⚙️ What You Can Customize
- Minimum spawn time (how soon the mine can appear)
- Maximum spawn time (latest time the mine may appear)
- Mine active time (how long the mine stays spawned)
- Mine despawn time (how long the mine stays disappeared)
- All options are easily editable inside the GUI:
/axmines editor → select the mine → configure the new Random Respawn settings.
? Purpose of This Fork
We needed special mine behavior for our own server, but since this feature can help others too, we are releasing it free on Modrinth. This fork keeps all existing AxMines features intact while adding our new Random Respawn system.
✔️ Open & Helpful for Developers
This fork aims to provide a useful expansion to the original plugin so developers can study, improve, or expand upon it.
Feel free to use, modify!
? Examplemine Config
# Random spawn configuration
# When enabled, the mine will spawn randomly instead of being always active
# The normal reset system (ticks and percent) will be automatically disabled
random-spawn:
#Enable random spawning for this mine
#When enabled, the mine will spawn randomly instead of being always active
#The normal reset system will be automatically disabled
enabled: true
#Minimum time (in ticks) the mine stays spawned
#20 ticks = 1 second
#Default: 6000 ticks = 5 minutes
min-time: 200 # Minimum time (in ticks) the mine stays spawned (5 minutes)
#Maximum time (in ticks) the mine stays spawned
#20 ticks = 1 second
#Default: 12000 ticks = 10 minutes
max-time: 300 # Maximum time (in ticks) the mine stays spawned (10 minutes)
#Time (in ticks) the mine stays despawned before respawning
#20 ticks = 1 second
#Default: 6000 ticks = 5 minutes
despawn-time: 100 # Time (in ticks) the mine stays despawned (5 minutes)
#Enable debug logging for random spawn feature
#Shows detailed information about spawn/despawn cycles, timings, and state changes
#Only affects random spawn feature, not the main plugin debug
debug: false # Enable detailed logging for random spawn feature only
#The format of the time placeholder
#1 -> HH:MM:SS, for example 01:25:35
#2 -> short format, for example 20m
#3 - text format, for example 01h 25m 35s
timer-format: 2
#What blocksetter should we use to set the blocks?
#Options:
#parallel - Best performance, does not lag the server thread. Sometimes can be a little bit inaccurate - CURRENTLY NOT AVAILABLE
#fast - Sets the blocks on the main thread using faster methods
#bukkit - Uses the Bukkit API to set the blocks. This is the slowest out of all the setters
#
#If you are having issues with blocks not being set correctly, we suggest using bukkit.
setter: fast
评论 0
登录后参与评分
还没有评论,来抢沙发吧