Skip to content

Prevent Breathing

Provismet edited this page Jun 20, 2023 · 4 revisions

Power Type

Prevents the entity from breathing and damages them with a custom damage type after running out of air.

Type ID: proviorigins:prevent_breathing

Note
Damage Sources have been deprecated as of 1.19.4, this power requires a Damage Type instead.

Fields

Field Type Default Description
damage_type Identifier The damage type to use when the entity runs out of air.
respect_water_breathing Boolean true If true then the entity will not lose air while they have the water breathing effect.

Example

{
    "type": "proviorigins:prevent_breathing",
    "damage_type": "proviorigins:bad_dimension",
    "condition": {
        "type": "origins:dimension",
        "dimension": "the_nether"
    }
}

This example will prevent the player from breathing in the Nether.

Clone this wiki locally