NOR Operator
Link to nor-operator
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
.
Input 1 | Input 2 | Output |
---|---|---|
Input 1 0 | Input 2 0 | Output 1 |
Input 1 0 | Input 2 1 | Output 0 |
Input 1 1 | Input 2 0 | Output 0 |
Input 1 1 | Input 2 1 | Output 0 |
CopyEmpty Example:
nor|[]~[]
Filled-In Example:
nor|[reskillable:mining|5]~[reskillable:gathering|5]
Use-Case
Link to use-case
Only allow using a wooden shovel until the player gets mining or gathering level 5:
ZenScript CopyaddRequirement(<minecraft:wooden_shovel:*>, "nor|[reskillable:mining|5]~[reskillable:gathering|5]");