can't execute empty Inventoryslot
If I want to test if a player has in an InvetorySlot nothing the command won't work. (/execute as @a[nbt={Inventory:[
{Slot:102b,id:"minecraft:air"}]}] run scoreboard players set @s armorslotfrei 2)
If I test if a Player has in an InvetorySlot another item it'll work. (/execute as @a[nbt={Inventory:[{Slot:102b,id:"minecraft:elytra"}]}] run scoreboard players set @s armorslotelytra 2)
Environment
Windows 10 Home 64bit
Java Build 1.8.0_201-b09
16GB RAM, 8GB RAM for Minecraft
Intel i7-8700 CPU @3.20GHz
NVIDIA GeForce GTX 1060
Created Issue:
can't execute empty Inventoryslot
If I want to test if a player has in an InvetorySlot nothing the command won't work. (/execute as @a[nbt={Inventory:[
{Slot:102b,id:"minecraft:air"}]}] run scoreboard players set @s armorslotfrei 2)
If I test if a Player has in an InvetorySlot another item it'll work. (/execute as @a[nbt={Inventory:[{Slot:102b,id:"minecraft:elytra"}]}] run scoreboard players set @s armorslotelytra 2)
Environment
Windows 10 Home 64bit
Java Build 1.8.0_201-b09
16GB RAM, 8GB RAM for Minecraft
Intel i7-8700 CPU @3.20GHz
NVIDIA GeForce GTX 1060
Empty slots are not saved, nor do they "contain" air
@e[nbt=!{Inventory:[{Slot:103b}]}]