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.
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.
Create an account or sign in to comment.
2
1
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
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:
(The important part of this command is that it says "Damage:2s" at the end instead of "Damage:0s")
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")