1. Wiki
  2. /Commands
  3. //testforblock

/testforblock

Put commands in your add-on as functions: GodCraft writes and packs them for you.Get GodCraft

/testforblock: Checks if a certain block is at a position.

Syntax

<angle brackets> are required, [square brackets] optional.

/testforblock <position: position> <tileName: block> [blockStates: block_state_array]

Commands: Commands

We use cookies to improve your experience and analyse site traffic. Learn more