0

I'm trying to detect a chest with coal blocks and I entered in:

/testforblock -673 57 -195 chest 2 {Items:[{id:173s,Damage:0s,Slot:1b,Count:1b}]}

But below that it says:

-673,57,-195 did not have the required NBT keys

I'm running Minecraft 1.8.

1 Answer 1

1

Item IDs are saved in 1.8+ as strings containing the name IDs. You should not be using numerical IDs anymore.

/testforblock -673 57 -195 chest 2 {Items:[{id:"minecraft:coal_block",Damage:0s,Slot:1b,Count:1b}]}
2
  • it still says that -673,57,-195 did not have the required NBT keys
    – phoenix
    Commented Feb 26, 2016 at 23:56
  • 1
    @phoenix And there is a coal block in slot 1 (keep in mind that slot numbers are offset by 1; 0 means the very first visual slot) with a stack-size of exactly 1? The command works fine for me when those requirements are met.
    – Skylinerw
    Commented Feb 26, 2016 at 23:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .