Submersion depth
origins-powerful-powers:submersion_depthentity condition
How many fluid blocks are above the entity's eyes, counting the block at eye level, up to 16. 0 when the entity isn't in water, or when its eyes are above the surface.
| Field | Type | Default | Description |
|---|---|---|---|
comparison | Comparison | required | |
compare_to | Float | required | blocks (always whole) |
Example: water pressure.
{
"type": "origins:action_over_time",
"interval": 20,
"condition": {
"type": "origins-powerful-powers:submersion_depth",
"comparison": ">=",
"compare_to": 6
},
"entity_action": {
"type": "origins:apply_effect",
"effect": {
"effect": "minecraft:mining_fatigue",
"duration": 30,
"amplifier": 0
}
}
}Six or more blocks under water, you get Mining Fatigue.
Attribute: submersion_depth