或非运算符
Link to 或非运算符
A NOR gate is an inverted OR gate. This is the same as using the output of the OR gate as the input to the NOT gate. This means that the NOR gate returns TRUE
only when both inputs are FALSE
.
输入1 | 输入2 | 输出 |
---|---|---|
输入1 0 | 输入2 0 | 输出 1 |
输入1 0 | 输入2 1 | 输出 0 |
输入1 1 | 输入2 0 | 输出 0 |
输入1 1 | 输入2 1 | 输出 0 |
Copy空白示例:
nor|[]~[]
举例:
nor|[reskillable:mining|5]~[reskillable:gathering|5]
只有在玩家获得采矿等级或采集等级达到5级之前才允许使用木制铲子:
ZenScript CopyaddRequirement(<minecraft:wooden_shovel:*>, "nor|[reskillable:mining|5]~[reskillable:gathering|5]");