mojira.dev
MC-143318

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)

Comments 1

Empty slots are not saved, nor do they "contain" air

@e[nbt=!{Inventory:[{Slot:103b}]}]

Maximilian Schön

(Unassigned)

Unconfirmed

Inventory, air, execute, slot

Minecraft 1.13.2, Minecraft 19w04b

Retrieved