generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 0
Prevent Breathing
Provismet edited this page Jun 20, 2023
·
4 revisions
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. |
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. |
{
"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.