Wiki 9Minecraft Wiki 9Minecraft
Bedrock source › Commands › /testforblock

/testforblock

/testforblock

Command

/testforblock in Minecraft Bedrock Edition 1.26.70.21, read straight from the game files.

Contents (3)
  1. Data
  2. Syntax
  3. See also

Data

Identifier/testforblock
DescriptionTests whether a certain block is in a specific location.
Permission level1
Requires cheatsYes

Syntax

OverloadSyntax
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.

/testforblock
Identifier/testforblock
DescriptionTests whether a certain block is in a specific location.
Permission level1
Requires cheatsYes