/testforblock
Command
Tests whether a certain block is in a specific location.
Permission Level | Game Directors |
---|---|
Requires Cheats? | Yes |
Usage
Test for block, optional data value
/testforblock <position: x y z> <tileName: Block> [blockStates: block properties]
Test for a block name
in a vector
position with optional data value
.
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for