增强型阈值开关!!
仅服务器端需要,客户端安装后无任何效果。
我之前遇到过一些情况,希望有一种相对独立的方式来处理机械轴承的角度问题。红石触点必须放置在外部才能获得更精确的读数,因此它们可能不可靠。我发现轴承确实将角度存储在 NBT 数据中,所以我只需将它们标记为可观察对象并赋予一个值即可。
但这并不是我做的唯一更改。它还提高了与机械轴承连接时阈值开关的更新频率,从每 10 个刻钟一次提高到每个刻钟一次。这是为了让其能够非常接近地表示位置,而不需要你降低速度到无法使用的程度来获取任何位置信息。
在大约 128 rpm 时,速度的更新率会变得不流畅,超过这个范围,对于小于 25% 的范围,可能会出现跳过的连接。
看起来还不错,因为它会循环。

我计划在未来更新此模组以支持机械活塞和其他内容。
这是我的第一个模组,请理解这里的代码质量可能较差且存在错误,我没有相关经验。
大多数地方仍然显示为“stockpile”,我忘了它已经被重命名了。
Enhanced threshold switch!!
this is only required by the server, it does nothing to have it in the client.
I have had some situations where I wanted to have a somewhat self contained way to handle the angle of a mechanical bearing. Redstone contacts have to be placed on the outside to get a more accurate reading, so they can be unreliable. I saw that the bearings do store their angle inside the NBT, so I just had to mark them as observable and give it a value.
Thats not the only change I made though, it also increases the update rate of the threshold switch when connected to a mechanical bearing, going from once every 10 ticks, to every tick, this is to allow it to pretty closeley represent the position, and not require you to lower the speed to unusable speeds to get any sort of positon.
At about 128 rpm is where the update rate for the speed gets choppy, past that expect skipped connections for ranges under 25%
Looks kinda nice as it loops

I do plan to update this to support mechanical pistons and other things.
This is my first mod, please understand the code in here is likely of poor quality and has mistakes, I am not experienced with this.
most of the things still say stockpile, I forgor it was renamed.
下载 Enhanced Threshold Switch
下载 Enhanced Threshold Switch
下载 Enhanced Threshold Switch
下载 Enhanced Threshold Switch
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Enhanced Threshold Switch
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Enhanced Threshold Switch
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Enhanced Threshold Switch
下载 Enhanced Threshold Switch
下载 Enhanced Threshold Switch
下载 Enhanced Threshold Switch
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
修复负角度
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧