Hardness
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 Wiki: Breaking (Blocks by hardness) page.
Fields
Field | Type | Default | Description |
---|---|---|---|
comparison |
Comparison | Determines how the hardness value of the block should compared to the specified value. | |
compare_to |
Float | The value at which the hardness value of the block will be compared to. |
Examples
"block_condition": {
"type": "origins:hardness",
"comparison": "==",
"compare_to": 1.5
}
This example will check if the block is as hard as Stone.