A NAND gate is an inverted AND gate. This is the same as using the output of the AND gate as the input to the NOT gate. This means that the NAND gate returns TRUE in all cases except for when both inputs are also TRUE.

Input 1Input 2Output
Input 1
0
Input 2
0
Output
1
Input 1
0
Input 2
1
Output
1
Input 1
1
Input 2
0
Output
1
Input 1
1
Input 2
1
Output
0
Copy
Empty Example:
nand|[]~[]

Filled-In Example:
nand|[reskillable:defense|24]~[reskillable:agility|24]

Once a player gets to defense level 24 and agility level 24 stop allowing them to use leather armor:

ZenScript
Copy
addRequirement(<minecraft:leather_helmet:*>, "nand|[reskillable:defense|24]~[reskillable:agility|24]");
addRequirement(<minecraft:leather_chestplate:*>, "nand|[reskillable:defense|24]~[reskillable:agility|24]");
addRequirement(<minecraft:leather_leggings:*>, "nand|[reskillable:defense|24]~[reskillable:agility|24]");
addRequirement(<minecraft:leather_boots:*>, "nand|[reskillable:defense|24]~[reskillable:agility|24]");