Data
| Identifier | /testforblock |
|---|---|
| Description | Tests whether a certain block is in a specific location. |
| Permission level | 1 |
| Requires cheats | Yes |
Syntax
| Overload | Syntax |
|---|---|
| 2 | /testforblock <position: POSITION> <tileName: BLOCK> [<blockStates: BLOCK_STATE_ARRAY>] |
See also
Extracted from Minecraft Bedrock 1.26.70.21 — Mojang’s own published sample packs. 9Minecraft is not affiliated with Mojang or Microsoft.