Fluid Height

Entity Condition.

Checks how high a specific fluid is at the player. A fluid height of 0 means the player is not touching the fluid.

Type ID: origins:fluid_height

Fields:

Field Type Default Description
fluid Identifier ID of the fluid tag of which the height should be checked. Most important examples: minecraft:water and minecraft:lava.
comparison Comparison How the fluid height should be compared to the specified value.
compare_to Float Which value the fluid height should be compared to.

Example:

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

This example checks if the player is not touching a lava fluid.