Mojira Archive
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)

Invalid

Maximilian Schön

2019-01-29, 06:27 PM

2019-01-29, 08:09 PM

2019-01-29, 08:09 PM

0

0

Unconfirmed

Inventory, air, execute, slot

Minecraft 1.13.2, Minecraft 19w04b

-