Skip to main content

Get 25% OFF on your first order with BisectHosting using code "DAQEM"!

Is Underwater

The arc:is_underwater condition type checks if the player is fully submerged in water.

Parameters​

This condition type does not have any parameters.

Example​

The following example gives water breathing when the player eats kelp underwater.

data/my_datapack/arc/kelp_breath.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_eat",
"conditions": [
{
"type": "arc:item",
"item": "minecraft:dried_kelp"
},
{
"type": "arc:is_underwater"
}
],
"rewards": [
{
"type": "arc:effect",
"effect": {
"id": "minecraft:water_breathing",
"duration": 200
}
}
]
}

Compatible Action Types​