Submerged In

Entity Condition.

Checks whether the player is submerged in a fluid of a specific tag (submerged means: eyes are inside that fluid).

Type ID: origins:submerged_in

Fields:

Field Type Default Description
fluid Identifier ID of the fluid tag that should be checked. Most important examples: minecraft:water and minecraft:lava.

Example:

"condition": {
    "type": "origins:submerged_in",
    "fluid": "minecraft:water"
}

This example checks if the player is submerged in water.