Commands/testforblock

Tests whether a certain block is in a specific location.

Arguments

 * Specifies the coordinates of the block to test.


 * Specifies the block to test for.


 * Specifies the block states to match when testfor.


 * Specifies the block data to match when testfor. Values (bitwise AND 0xFFFF) that are invalid for the specified block id revert to 0. If it is negative, all blocks that match  are tested.

Examples

 * To test if the block at (0,64,0) is any type of wool:
 * To test if the block at (0,64,0) is orange wool:
 * To test if the block below is a jukebox:
 * To test if the block at (0,64,0) is orange wool:
 * To test if the block below is a jukebox:
 * To test if the block below is a jukebox:

History
Befehl/testforblock Commands/testforblock