mojira.dev
MC-69585

Testfor SelectedItem Bug

When I put the following command into a command_block :
testfor @a[team=P1] {SelectedItem:{id:skull}}
and I run it while I'm in team 1 and have a skeletton skull selected it gives no signal. It says "Zuzu_Typ did not match the required data structure".
But when I cahnge the command to
testfor @a[team=P1] {SelectedItem:{id:minecraft:skull}}
^^^^^^^^^^^^
It works.

Comments 3

Also, if I add a Count:1 argument it wont work.
So the Command would be: testfor @a[team=P1] {SelectedItem:{id:minecraft:skull,Count:1}}
I also tried: testfor @a[team=P1] {SelectedItem:{id:minecraft:skull,tag:{Count:1}}}

try testfor @a[team=P1] {SelectedItem:{id:"minecraft:skull",Count:1b}}

That does it, thank you very much!

ZuzuTyp

(Unassigned)

Unconfirmed

Minecraft 1.8-pre2

Retrieved