1

Testforblock Help Required

Raptyrn 9/22/16 2:11 pm
321
9/22/2016 2:31 pm
Hey guys, this has been really stressing me out recently.

testforblock 5 5 101 minecraft:chest 2 {Items[{id:minecraft:stone,Count:1b,Damage:0s}]}

This is all fine, it works, but how in the world do i specify a specific type of stone, for example polished granite? Please, somebody help me... I'm afraid i might throw my mouse across the room if this problem isn't solved soon.
Posted by
Raptyrn
Level 53 : Grandmaster Mage
9

  Have something to say?

JoinSign in

2

Raptyrn
09/22/2016 2:31 pm
Level 53 : Grandmaster Mage
AAAAAHHHHH I could kiss you, man/girl!, i dont really know. Also, i won't because it'll be really awkward, but thank you! *starts worshipping*
1
craftykids
09/22/2016 2:27 pm
Level 53 : Grandmaster Pixel Painter
Other types of stone have different data values. You can change the data value that you're testing for by changing the "Damage" tag; for instance, polished granite has data value 2, so this is the command you'd use to test for it:
testforblock 5 5 101 minecraft:chest 2 {Items:[{id:minecraft:stone,Count:1b,Damage:2s}]}
(The important part of this command is that it says "Damage:2s" at the end instead of "Damage:0s")
1

Welcome