Skip to main content

Scale (Entity Condition Type)

Compares one of the entity's scales with a number. The scale read is the final value, with every power, stored value and parent scale already applied.

Type ID: apoli:scale

Fields

FieldTypeDefaultDescription
scale_typeScale Typeapoli:baseWhich scale to read.
comparisonComparisonrequiredHow to compare.
compare_toFloat or ExpressionrequiredWhat to compare against.

Examples

{
    "type": "apoli:scale",
    "scale_type": "apoli:base",
    "comparison": "<",
    "compare_to": 0.5
}

Only let a power run while the holder still fits through a door:

{
    "type": "apoli:scale",
    "scale_type": "apoli:height",
    "comparison": "<=",
    "compare_to": 1
}