What are the x, y, and z in the /testforblocks command?

What are the x, y, and z in the /testforblocks command? - Teenage Couple Using Their Smart Phones

I've recently heard about a command which can detect blocks in an area, the /testforblocks (with an s at the end, to not confuse with /testforblock) command. In this command, there the x1, y1, z1, x2, y2, z2, but also a supplementary x y z:

testforblocks <x1> <y1> <z1> <x2> <y2> <z2> <x> <y> <z> [mode]

Because of this little detail, I can't complete my small project. Thank you very much paying attention at my question.






Pictures about "What are the x, y, and z in the /testforblocks command?"

What are the x, y, and z in the /testforblocks command? - Woman Talking to her Therapist
What are the x, y, and z in the /testforblocks command? - Young Couple Looking at Their Smart Phones
What are the x, y, and z in the /testforblocks command? - Teenage Boy Sitting on the Sofa and Using a Smart Phone



How do you use the TestForBlock command in Minecraft?

You can test whether there is a certain block at a specific location in the game using the /testforblock command in Minecraft....TestForBlock Command in Minecraft Java Edition (PC/Mac)
  • x y z is the coordinate to test. ...
  • block is name of the block to test for. ( ...
  • dataValue is optional. ...
  • dataTag is optional.


  • What are the Minecraft commands?

    List and summary of commandsCommandDescriptionBE/difficultySets the difficulty level.Yes/effectAdds or removes status effects.Yes/enchantAdds an enchantment to a player's selected item.Yes/eventUsed to trigger an event on an entity.Yes27 more rows

    Is there a command to find blocks?

    The blank is for the particular block you are looking for. Let's say you're lost in the Nether and need to find your Nether Portal, you could type : /locateblock obsidian, and get the coordinates for the nearest obsidian, most likely being your, said, Portal.



    /Testforblock and /Testforblocks Command Basics




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Karolina Grabowska, Karolina Grabowska, Karolina Grabowska, Karolina Grabowska