1

Testforblock Help Required

Raptyrn's Avatar Raptyrn9/22/16 2:11 pm
1 emeralds 300 2
9/22/2016 2:31 pm
Raptyrn's Avatar Raptyrn
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's Avatar
Raptyrn
Level 50 : Grandmaster Mage
8

Create an account or sign in to comment.

2

1
09/22/2016 2:31 pm
Level 50 : Grandmaster Mage
Raptyrn
Raptyrn's Avatar
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
09/22/2016 2:27 pm
Level 52 : Grandmaster Pixel Painter
craftykids
craftykids's Avatar
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")
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome