重启检测器
这个完全服务端的模组添加了“重启检测器”,这是一种新的方块,会在服务器关闭前输出红石信号。
这些新方块可用于禁用敏感的红石装置以防止昂贵的损坏,并且由于其轻量级设计™(无需区块实体),甚至可以在飞行机器上使用!
默认情况下,此模组会劫持 /stop 命令的行为,在真正关闭服务器之前设置一个倒计时,给重启检测器时间来激活。它还添加了一些子命令来管理此行为。
视觉效果
重启检测器使用了阳光传感器的模型, 但通过在其上方悬浮一个假的命令方块来区别于其他方块。 这使其能够完全在服务端运行,同时保持视觉上的独特性。

功能
所有加载的重启检测器都会在服务器即将关闭时输出红石信号, 强度从 1 开始,逐渐增加到 15,直到实际关闭。 当服务器重新上线时,信号会逐渐衰减回 0, 以确保世界有足够的时间加载,然后再重新启动装置。
重启检测器可以被活塞移动。 这使得你可以在飞行机器和其他移动装置中使用它们!

命令
此模组修改了 /stop 命令,使其在真正关闭服务器之前等待可配置的时间量,
在这个窗口期内,所有重启检测器都会输出信号。
它还添加了 /stop cancel 和 /stop now 命令,分别用于取消和绕过倒计时。
配置
此模组会在 config/restart_detector.json 创建一个配置文件,包含以下选项:
hijackStopCommand(默认值:true):是否劫持原版/stop命令以添加倒计时。stopCountdownTicks(默认值:600(30秒)):在真正关闭服务器之前等待的刻数。
必须重启服务器才能使配置更改生效。
Restart Detector
This fully server-side mod adds Restart Detectors, a new block that will output a redstone signal before server shutdowns.
These new blocks can be used to disable sensitive redstone contraptions to prevent expensive breakages, and can even be used on flying machines due to their lightweight design™! (no blockentity required)
By default, this mod hijacks the behaviour of the /stop command to use a countdown before actually shutting down the server, giving restart detectors time to activate. It also adds a few subcommands to manage this behaviour.
Visuals
The Restart detector uses the model of a daylight sensor, but distinguishes itself by having a fake command block hovering above it. This allows it to work fully server-side, while still being visually distinct.

Functionality
All Restart Detectors that are loaded will output a redstone signal when the server is about to shut down, starting at strength 1, and slowly increasing to 15 until the actual shutdown. When the server comes back online, the signal will slowly decay back to 0 to makes sure the world has time to load before contraptions are started back up.
Restart Detectors CAN be moved by pistons. This lets you make use of them on flying machines and other moving contraptions!

Commands
The /stop command is modified by this mod to wait a configurable amount of time before actually shutting down the server,
it is within this window that all Restart Detectors will output a signal.
It also adds a /stop cancel and /stop now command to cancel and bypass the countdown respectively.
Configuration
This mod creates a config file at config/restart_detector.json with the following options:
hijackStopCommand(default:true): Whether to hijack the vanilla/stopcommand to add a countdown.stopCountdownTicks(default:600(30s)): The amount of ticks to wait before actually shutting down the server.
The server must be restarted for changes to the config to take effect.
下载 Restart Detector
下载 Restart Detector
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Restart Detector
下载 Restart Detector
下载 Restart Detector
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Restart Detector
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Restart Detector
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Restart Detector
下载 Restart Detector
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Restart Detector
- 更新至 26.3。(感谢 @morgantic!)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧