/testforblocks
Command
Tests whether the blocks in two regions match.
Permission Level | Game Directors |
---|---|
Requires Cheats? | Yes |
Usage
Test for blocks
/testforblocks <begin: x y z> <end: x y z> <destination: x y z> [mode: TestForBlocksMode]
Test whether the blocks in one area defined by begin
and end
match the blocks in a destination
with an optional test for blocks mode
.
Arguments
begin: x y z
: position Avector
[x y z] that along withend
of two opposite corners of a rectangular region to test for.destination: x y z
: position Required. Avector
[x y z] of the lower northwest corner to test for.end: x y z
: position Required. Avector
[x y z] that along withbegin
of two opposite corners of a rectangular region to test for.mode
: TestForBlocksMode Optional. Eithermasked
where air blocks will match any destination, or defaultall
which matches all blocks including air.
Enums
TestForBlocksMode
Enum of Test for Blocks Modes
Values
masked
Maskedall
All
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