Skip to content

Hardness

Block Condition Type

Checks the hardness value of the block.

Type ID: origins:hardness

Note

A block's hardness value is used for determining how long it takes to break the block. If you want to see the hardness values of each block, you can refer to Minecraft Fandom Wiki: Breaking (Blocks by hardness) page.

Fields

Field Type Default Description
comparison Comparison Determines how the hardness value of the block is compared to the specified value.
compare_to Float The value to compare the hardness value of the block to.

Examples

"block_condition": {
    "type": "origins:hardness",
    "comparison": "==",
    "compare_to": 1.5
}

This example will check if the block is as hard as Stone.