Member
Level 1
New Miner
0

Forum Posts

1 - 4 of 4

    datacat_
    • 09/13/2017 10:50 pm
    • Level 1 : New Miner
    Alright, so I definitely made some progress, but I'm still having a little bit of difficulty with my command.

    What I'm attempting to do is use testforblock to see if a particular block is above a player at all. Here's an example of the command I'm playing with...

    This one works to detect a block of stone brick, relative to under a player (got this working for myself as a proof of concept before moving on to more complex commands):
    /execute @a ~ ~ ~ /testforblock ~ ~-1 ~ minecraft:stonebrick

    However, I cannot seem to get the following to work (checking to see if there is stonebrick within 10 blocks above the player):
    /execute @a ~ ~ ~ /testforblock x=~ y=~ z=~ dx=0 dy=10 dz=0 minecraft:stonebrick

    Is tilde notation not usable with the selectors?
    1
    datacat_
    • 09/13/2017 3:48 pm
    • Level 1 : New Miner
    Thank you so much for your reply. I'm at work right now, so I'll play around some later this evening and test this out. Thanks again!
    1
    datacat_
    • 11/29/2015 2:56 pm
    • Level 1 : New Miner
    @oliversmith7 Thank you for the idea, I'll post something over there too and hopefully someone can help me out.
    1
    datacat_
    • 11/29/2015 1:46 pm
    • Level 1 : New Miner
    Thanks Neptune, image resized as per your suggestion.
    1

1 - 4 of 4

Welcome