Skip to main content

Fluid Height (Entity Condition Type)

Compares how high a fluid reaches on the entity with a number. A fluid height of 0 means the entity isn't touching the fluid.

Type ID: apoli:fluid_height

Fields

FieldTypeDefaultDescription
fluidIdentifierrequiredThe ID of the fluid tag to measure, most often minecraft:water or minecraft:lava. The leading # is optional.
comparisonComparisonrequiredHow the fluid height is compared with compare_to.
compare_toFloatrequiredThe number the fluid height is compared with.

Examples

"condition": {
    "type": "apoli:fluid_height",
    "fluid": "minecraft:lava",
    "comparison": "==",
    "compare_to": 0
}

This checks whether the entity isn't touching lava.