支持 1.21.10 以及 1.1.0 更新已发布!
在此查看更新日志。请通过 GitHub 或评论部分报告任何错误。
模组用途
添加了 OR(或)、XOR(异或)、NOT(非)和 AND(与)布尔逻辑门,以及一个 CLOCK(时钟),旨在设计更紧凑的红石机器,并可能获得更好的性能。
合成表与用法
AND 门:
用法
2 个输入,1 个输出。左侧 1 个输入,右侧 1 个输入,红石火把侧为 1 个输出。
| L |
R |
Output |
| 0 |
0 |
0 |
| 0 |
1 |
0 |
| 1 |
0 |
0 |
| 1 |
1 |
1 |
NOT 门:
用法
1 个输入和 1 个输出。输出是输入的反相——因此如果红石信号输入为开启状态,输出则为关闭。
(X)OR 门:
XOR 和 OR 是同一个方块。
用法
2 个输入,1 个输出。左侧 1 个输入,右侧 1 个输入,红石火把侧为 1 个输出。
OR:
| L |
R |
Output |
| 0 |
0 |
0 |
| 1 |
0 |
1 |
| 0 |
1 |
1 |
| 1 |
1 |
1 |
XOR:
| L |
R |
Output |
| 0 |
0 |
0 |
| 1 |
0 |
1 |
| 0 |
1 |
1 |
| 1 |
1 |
0 |
CLOCK:
用法
1 个输出:以由延迟指定的速率在开启和关闭之间切换,右键点击可更改延迟。
| Delay # |
Flips per Second |
| 1 |
20 |
| 5 |
4 |
| 10 |
2 |
| 15 |
1.333 |
| 20 |
1 |
使用时钟时的潜在性能提升
注意!
我制作此模组并非为了提供性能更好的红石使用方式——我主要是为了学习模组开发,并在红石设计中节省空间。请勿为了潜在的性能提升而下载此模组。
如果您有关于测试是否准确或有缺陷的任何信息,我非常乐意听取。
每项测试的基本规则:
- 两个世界均使用 Minecraft 内置的“重建”按钮进行复制
- 模拟距离:12 区块
- 渲染距离:12 区块
- 使用“红石就绪”预设的超平坦世界
- 和平模式,无结构生成
- 窗口化模式
- Forge 安装仅包含 Redstone Additions 和 WorldEdit
Redstone Additions 时钟
对于 Redstone Additions 测试,使用 WorldEdit 设置了 10,201 个(100x100 网格)时钟,延迟设置为 1(每刻翻转 20 次)。

Vanilla 时钟
对于原版时钟,这是我在玩游戏时偶然发现的一种设计。我不确定它的确切翻转速度,但仅观察翻转速率,感觉与延迟 = 1 的 Redstone Additions 时钟的速度相似。也使用了 WorldEdit 来复制并堆叠成一个 100x100 的网格,有效地放置了 10,000 个该设计的独立实例。

结论
通过我对 F3 菜单中每个数值含义的研究(参考 Minecraft Wiki),似乎使用该模组会降低总内存占用,同时减少处理一“刻”所需的时间。此外,从集成服务器接收的数据包数量也增加了大约 10 倍。你可以通过查看上面的两张图片来比较这些值以及我可能遗漏的任何其他内容。
注意!
我制作这个模组的目的并不是为了提供一种更好的红石性能优化方案——更多是为了学习模组开发并节省红石设计中的空间。请不要因为潜在的帧率提升而下载此模组。
如果你有关于测试是否准确或有缺陷的信息,我很乐意听取你的意见。
1.21.10 support along with 1.1.0 Update is out!
View the changelog here. Please report any bugs through the GitHub or through the comment section.
Purpose of the Mod
Adds OR, XOR, NOT, and AND boolean logic gates and a CLOCK with the idea of designing more compact redstone machines with potentially better performance.
Recipes and Usage
AND Gate:
Usage
2 Inputs, 1 Output. 1 Input on Left, 1 Input on Right, 1 Output on redstone torch side.
| L |
R |
Output |
| 0 |
0 |
0 |
| 0 |
1 |
0 |
| 1 |
0 |
0 |
| 1 |
1 |
1 |
NOT Gate:
Usage
1 Input and 1 Output. Output is the opposite of the input — so if Redstone is powered in, it will come out off.
(X)OR Gate:
XOR and OR is the same block.
Usage
2 Inputs, 1 Output. 1 Input on Left, 1 Input on Right, 1 Output on Redstone torch side.
OR:
| L |
R |
Output |
| 0 |
0 |
0 |
| 1 |
0 |
1 |
| 0 |
1 |
1 |
| 1 |
1 |
1 |
XOR:
| L |
R |
Output |
| 0 |
0 |
0 |
| 1 |
0 |
1 |
| 0 |
1 |
1 |
| 1 |
1 |
0 |
CLOCK:
Usage
1 Output: Flips between on and off at a rate specified by the delay, which is changed when right-clicked.
| Delay # |
Flips per Second |
| 1 |
20 |
| 5 |
4 |
| 10 |
2 |
| 15 |
1.333 |
| 20 |
1 |
Potential Performance Increase with Clocks
NOTE!
I never made this mod to make a better performant way for using Redstone — I more built this to learn modding and to save space in Redstone designs. Do not download this mod for the potential performance increase.
If you have any information to add regarding whether the test is accurate or flawed, I would love to hear about it.
Base Rules for each test:
- Both worlds were duplicates using Minecraft's built-in recreate button
- Sim distance: 12 chunks
- Render Distance: 12 chunks
- Super flat world with "Redstone Ready" preset
- Peaceful, no structures
- Windowed mode
- Forge install with just Redstone Additions and WorldEdit
Redstone Additions Clock
For the Redstone Additions test, 10,201 (100x100 grid) clocks were set with WorldEdit with a delay set to 1 (flips 20 times a tick).

Vanilla Clock
For the vanilla clock, this is a design I came across from just playing the game. I am unsure of the exact speed it flips, but just watching the flip rate, it feels similar to the speed of the Redstone Additions Clock with delay = 1. WorldEdit was also used to copy and stack in a 100x100 grid, effectively placing 10,000 individual instances of this design.

The conclusions
Through my own research on what each value means in the F3 menu (via the Minecraft Wiki), it would seem that using the mod lowers the total amount of memory while also lowering the time it takes to process a tick. The mod also has an increased number of packets received from the Integrated Server, by roughly 10x. You can compare these values and anything else I might have missed by looking at both images above.
NOTE!
I never made this mod to make a better performant way for using Redstone — I more built this to learn modding and to save space in Redstone designs. Do not download this mod for the potential performance increase.
If you have any information to add regarding whether the test is accurate or flawed, I would love to hear about it.
评论 0
登录后参与评分
还没有评论,来抢沙发吧