Skip to content

Pattern & Matchers

DarkBladeDev edited this page Dec 27, 2025 · 1 revision

Pattern & Matchers

The pattern list defines the structure's shape.

Structure

pattern:
  - offset: [x, y, z]
    match: <MATCHER>
    optional: <BOOLEAN> # Default: false

Types of Matchers

1. Material

Matches a specific material.

match: OBSIDIAN

2. Air

Matches empty space (must be air).

match: AIR

3. Tags (Groups)

Matches any block within a Vanilla Tag.

match: "#minecraft:logs" # Matches oak_log, birch_log, etc.
match: "#minecraft:wool"

4. BlockData

Matches exact state.

match: "minecraft:switch[face=floor,facing=north]"

5. AnyOf (List)

Matches if the block is ANY of the specified types.

match:
  - COBBLESTONE
  - MOSSY_COBBLESTONE
  - STONE_BRICKS

Clone this wiki locally