Mojira Archive
MC-74087

Testforblock command with nbt tag doesnt work in an Execute command.

Running an testforblock in an execute command with nbt tags always causes error message.

[19:35:20] Failed to execute 'testforblock ~ ~1 ~ minecraft:dropper 1 {Items:[0:{Slot:1b,id:minecraft:prismarine_crystals,Count:1b,Damage:0s},{Slot:3b,id:minecraft:blaze_rod,Count:1b,Damage:0s},{Slot:4b,id:minecraft:leather_chestplate,Count:1b,Damage:0s},{Slot:5b,id:minecraft:blaze_rod,Count:1b,Damage:0s},{Slot:7b,id:minecraft:prismarine_crystals,Count:1b,Damage:0s}]}' as entity.ItemFrame.name

What I expected to happen was...:
Describe what you thought should happen here

I can run the testforblock just fine on it self it detects what i want but as soon as i put it in the execute command i get the above error.

Aslong as i run the testforblock without nbt tags it works fine.
I used it to test for a nearby chest it works just fine.

To reproduce try this.
first put this command into commandblock.

execute @e[Type=Zombie] ~ ~ ~ testforblock ~ ~1 ~ minecraft:dropper 1 {Items:[0:{Slot:1b,id:minecraft:prismarine_crystals,Count:1b,Damage:0s},{Slot:3b,id:minecraft:blaze_rod,Count:1b,Damage:0s},{Slot:4b,id:minecraft:leather_chestplate,Count:1b,Damage:0s},{Slot:5b,id:minecraft:blaze_rod,Count:1b,Damage:0s},{Slot:7b,id:minecraft:prismarine_crystals,Count:1b,Damage:0s}]}

In the above case i used to detect a zombie doesnt work.
Does not work with players also.
I hope it isnt just me or my comp why it doesnt work as it should.

then run it, error message should pop up.

Invalid

Zassi12

2014-11-06, 08:50 PM

2016-01-09, 04:30 PM

2016-01-09, 10:22 AM

0

3

Unconfirmed

Minecraft 1.8

-