Skip to main content

Hardness (Block Condition Type)

Compares the block's hardness with a number. Hardness decides how long the block takes to break.

Type ID: apoli:hardness

Fields

FieldTypeDefaultDescription
comparisonComparisonrequiredHow the hardness is compared with compare_to.
compare_toFloatrequiredThe number the hardness is compared with.

Examples

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

This checks whether the block is exactly as hard as stone.