Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Tests whether a certain block is in a specific location.
Permission Level | Game Directors |
---|---|
Requires Cheats? | Yes |
Usage
Test for block, optional block state
/testforblock <position: x y z> <tileName: Block> [blockStates: block properties]
Test for a block name
in a vector
position with optional block states
.
Arguments
blockStates
: block properties Optional. Theblock states
to match when testing.position: x y z
: position Required. Avector
of the location the block to test.tileName
: Block Required. Anenum
of the block to test for.