服务器红石方块

描述
你是否经历过因服务器重启而导致你的红石装置损坏的情况?
该方块的行为类似于普通红石方块,但服务器管理员可以随时触发“警告”状态和“关闭”状态。这可以为装置在服务器关机前提供时间,使其能够优雅地停机。
用法
你需要在服务器端和客户端都安装此模组,因为它添加了一个新方块。
为什么客户端也需要安装?
相信我,我曾尝试将其做成仅服务器端的模组。问题在于:玩家体验。 仅使用原版物品以及从 1.18.2 版本起可用的解决方案,使得很难创建一个让玩家容易理解的方案。想象一下,在你的建筑中使用一堆红石方块,但其中一个是“特殊”方块会被关闭。我们需要某种视觉提示,以便你能识别出那个特定的方块。
有了客户端支持,我们可以使用自定义纹理和自定义方块行为,这使得使用变得非常简单直观。
你认为你能解决这个问题吗?
如果你是模组开发者并且认为你有解决方案,请与我联系。我对一个好的解决方案非常感兴趣!
玩家
作为玩家,你可以像使用普通红石方块一样使用该方块。
合成
你可以用普通红石方块和一个拉杆来合成它。

红石输出
- 开启:信号强度 15
- 警告:信号强度 1
- 关闭:信号强度 0
推荐玩家用法
利用上述信号强度状态进行反应。通常在重启时最容易损坏的是基于矿车和飞行器的装置。 你可以使用该方块来检查是否应该启动系统的下一轮运行。 你也可以直接将其用作电源,在需要时自动关闭。只需确保你的系统运行时间不超过发出重启警告的时间即可。
管理员
要控制该方块,你需要拥有等级为 4 的权限级别。
服务器启动时,方块始终处于“开启”状态。
命令
/srs on:将方块设置为开启状态/srs warning:将方块设置为警告状态/srs off:将方块设置为关闭状态
推荐用法
如果你的服务器有计划内的重启,我建议让自动化系统在重启前 5 分钟发出 srs warning 指令。
这会向装置发出信号:如果是快速运行的系统,它可能还能继续运行;否则需谨慎。
在重启/关机前约 1-2 分钟,你应该发出 srs off 指令,以确保所有正在运行的装置都有时间平稳停止。
遥测数据
本模组收集最少的匿名遥测数据,以帮助在维护模组时做出决策。你可以在这里)查看收集了哪些内容。
联系我们
我很好奇你是如何使用这个模组的。如果你有任何问题或反馈,请通过 加入我们的 Discord 频道。
我也希望听取服务器主人的意见,看看我是否还能在其他方面提供帮助。
Server Redstone Block

Description
Ever had redstone contraptions break on you due to a server restart?
This block acts as a normal redstone block but the server admins can trigger a warning state and an off state at will. This can give time for the contraptions to shut down gracefully before a server shutdown.
Usage
You have to have it installed both on the server and the client side as it adds a new block.
Why do you need it on the client side too?
Believe me, I've tried to make this a server-only mod. The issue is: player experience. Using only vanilla items and solutions that work from 1.18.2 upwards makes it very difficult to create a solution that is easy to grasp as a player. Imagine using a bunch of redstone blocks in your build but one of them is a "special" block that gets turned off. We need some sort of a visual clue so that you could identify the block in question.
With the client side present, we have the option of custom textures and custom block behaviour which makes it very straight forward to use.
Do you think you can solve this issue?
If you're a mod developer and you think you have a solution for this, please get in touch. I'm very interested in a good solution!
Player
As a player, you can use the block as a normal redstone block.
Crafting
You can craft it with a regular redstone block and a lever.

Redstone Output
- On: 15 power
- Warning: 1 power
- Off: 0 power
Recommended use for players
Use the above power states to react. Things that usually break the most on a restart are minecart and flying machine based contraptions. You can use the block to add in a check if you should start a next run of your system. You could outright use it as a power source that will shut off when need to. Just make sure that your system doesn't run longer than the time it warns you of an impeding restart.
Admin
To control the block, you need to have a permission level of 4.
When the server starts, the blocks always start in the ON state.
Commands
/srs on: Sets the block to the on state/srs warning: Sets the block to the warning state/srs off: Sets the block to the off state
Recommended use
If you have scheduled restarts on your server, I recommend having the automation issue a srs warning 5 minutes before the restart.
That signals to the contraptions that if it's a fast system, it could still run. Otherwise caution.
Around 1-2 minutes before the restart/shutdown, you should issue a srs off to make sure that all running contraptions have time to settle down.
Telemetry
The mod collects minimal anonymous telemetry to help the decision making when maintaining the mod. You can see what is collected here)
Get in touch
I'm very curious to learn how you use this. Please drop by discord if you have any questions or feedback
I'd also like to hear from server owners if there's anything else I could help with.
下载 Server Redstone Block
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Server Redstone Block
下载 Server Redstone Block
下载 Server Redstone Block
下载 Server Redstone Block
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Server Redstone Block
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Server Redstone Block
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Server Redstone Block
下载 Server Redstone Block
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Server Redstone Block
未提供更新日志。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧