Commands/testforblock

Tests whether a certain block is in a specific location.
==Syntax==
: testforblock <position: x y z> <tileName: Block> [blockStates: block states]
==Arguments==
: Specifies the coordinates of the block to test.
: 
: Specifies the block to test for.
: 
: Specifies the block states to match when testfor.
: 
== Result ==
== Output ==
==Examples==
* To test if the block at (0,64,0) is white wool:
** testforblock 0 64 0 wool
** testforblock 0 64 0 white_wool
* To test if the block at (0,64,0) is stone:
** testforblock 0 64 0 stone []
* To test if the block below is a jukebox:
** testforblock ~ ~-1 ~ jukebox
== History ==
 
de:Befehl/testforblock
es:Comandos/testforblock
pt:Comandos/testforblock
zh:Commands/testforblock