mojira.dev
MC-102866

The NBT tag HandItems doesn't detect air

It's a little bit strange !
If I summon an armor stand with this command: /summon ArmorStand ~ ~ ~ {HandItems:[0:{id:"minecraft:stone"}],ShowArms:1} and I do this testfor : /testfor @e[type=ArmorStand] {HandItems:[0:{id:"minecraft:stone"}]} it will find the armor stand.

But if I summon an armor stand like that:/summon ArmorStand ~ ~ ~ {HandItems:[0:{id:"minecraft:air"}],ShowArms:1} the summon command works but not the testfor ( /testfor @e[type=ArmorStand] {HandItems:[0:{id:"minecraft:air"}]} )

I think it's a bug because in the entity data it shows HandItems:[0:{id:"minecraft:air"}] .

Attachments

Comments 6

There's no minecraft:air item.

And why is it détectés by entitydata like an item ?

Because it fills in anything you fill in, you could fill in minecraft:zzzzzz and it would output, but not be inserted as it's non-existing.

I tryed also like this: I summoned an armor stand holding a stone block and I took from the armor stand by right clicking. I used entitydata to change only its name in the chat. It returned me HandItems:[0:{id:minecraft:air}] . Then I didn't fill in with air but it detects air.

Then attach a screenshot which states "the data tag didn't change: .....minecraft:air......" when using the command

/entitydata @e[type=ArmorStand,c=1] {}

Antoine Seel

(Unassigned)

Unconfirmed

Minecraft 1.9.4

Retrieved