Block

Block Condition.

Checks whether the block is a certain block (by ID).

Type ID: origins:block

Fields:

Field Type Default Description
block String ID of the block that this block needs to be to pass the check.

Examples:

"block_condition": {
    "type": "origins:block",
    "block": "minecraft:diamond_block"
}

This example checks if the block is a Diamond Block.

"block_condition": {
    "type": "origins:or",
    "conditions": [
        {
            "type": "origins:block",
            "block": "minecraft:diamond_block"
        },
        {
            "type": "origins:block",
            "block": "minecraft:emerald_block"
        }
    ]
}

This example checks if the block is either a Diamond Block or an Emerald Block, though using the origins:in_tag block condition type would be better for checking multiple block types.