Skip to content

Block State (Block Condition Type)

Pug edited this page Mar 16, 2023 · 4 revisions

Tests to see if a block's state matches a specified block state.

Type Resource Location: bovinesandbuttercups:block_state

Introduced In: 1.3.0

Fields

Field Type Default Description
state Block State Defines the block state to be used in checks.

Example

"condition": {
  "type": "bovinesandbuttercups:block_state",
  "state": {
    "Name": "minecraft:sunflower",
    "Properties": {
      "half": "upper"
    }
  }
}

This example checks if a block is an upper half of a Sunflower.

Clone this wiki locally