红石运算符对左侧和右侧输入执行布尔运算,包括 AND(与)、OR(或)和 XOR(异或)。运算符的后方输入充当非门(NOT gate),当通电时,会反转三种模式中任意一种的输出。方块本身具有 1 刻的输出延迟。其行为示例如下:

而红石二极管则充当无延迟中继器,在不产生任何输出刻延迟的情况下增强其输入信号。此外,它可以在从左侧、后方或右侧接收输入之间循环切换。示例如下:

结合这两个方块(更不用说我为未来更新计划添加的其他方块——敬请期待!),无论是休闲红石玩家还是进阶或计算型玩家,都能实现多种可能性。下面可以看到,即使是像我这样完全不懂逻辑红石的菜鸟,也能相当紧凑且轻松地制作出一个半加器!

免责声明:本模组是部分使用 MCreator 制作的。虽然二极管和运算符的代码完全是自定义的,并扩展了原版中继器类,但 MCreator 被用于自动生成样板代码和文件结构,并且使用过程来处理两个方块上的右键点击方块状态循环切换。
The Redstone Operator performs boolean operations on the left and right inputs, those being AND/OR/XOR. The back input of the Operator acts as a NOT gate, inverting the output of any of the 3 modes when powered. The block itself has a 1 tick delay on output. An example of its behavior can be seen here:

The Redstone Diode, meanwhile, acts as a delayless repeater, boosting the signal of its input without any output tick delay. Additionally, it can cycle between taking inputs from its left, back, or right sides. Example below:

Together, these two blocks (not to mention the ones I have planned for future updates (stay tuned!) allow for a multitude of possibilities both for casual redstoners and more advanced or computational players. Below, you can see even I, a total noob with logical redstone, was able to make a half-adder fairly compactly and easily!

DISCLAIMER: This mod was partially made using MCreator. While the code for both the Diode and Operator is entirely custom, extending the vanilla repeater class, MCreator was used to auto-generate boilerplate code and filestructures, and procedures were used to handle right click blockstate cycling on both blocks.
评论 0
登录后参与评分
还没有评论,来抢沙发吧