Entity Documentation - minecraft:breathable
minecraft:breathable
defines which blocks an entity can breathe in and defines the ability to suffocate in those blocks.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
breathe_blocks | not set | List | List of blocks the entity can breathe in. |
breathes_air | true | Boolean | If true, the entity can breathe in air. |
breathes_lava | true | Boolean | If true, the entity can breathe in lava. |
breathes_solids | false | Boolean | If true, the entity can breathe in solid blocks. |
breathes_water | false | Boolean | If true, the entity can breathe in water. |
generates_bubbles | true | Boolean | If true, the entity will have visible bubbles while in water. |
inhale_time | 0 | Decimal | Time in seconds to recover breath to maximum. |
non_breathe_blocks | not set | List | List of blocks the entity can't breathe in, in addition to the other "breathes" parameters. |
suffocate_time | -20 | Integer | Time in seconds between suffocation damage. |
total_supply | 15 | Integer | Time in seconds the entity can hold its breath. |
Example
"minecraft:breathable":{
"breathes_air": true,
"breathes_lava": false,
"breathes_solids": false,
"breathes_water": false,
"generates_bubbles": true,
"inhale_time": 0.0,
"suffocate_time": -20,
"total_supply": 15
}
Vanilla entities examples
dolphin
"minecraft:breathable": {
"total_supply": 240,
"suffocate_time": 0,
"breathes_air": true,
"breathes_water": false,
"generates_bubbles": false
}
zombie
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0,
"breathes_air": true,
"breathes_water": true
}
Vanilla entities using minecraft:breathable
- axolotl
- bat
- bee
- cat
- cave_spider
- chicken
- cow
- creeper
- dolphin
- donkey
- drowned
- elder_guardian
- enderman
- endermite
- evocation_illager
- fish
- fox
- ghast
- glow_squid
- goat
- guardian
- hoglin
- horse
- husk
- llama
- magma_cube
- mooshroom
- mule
- ocelot
- panda
- parrot
- phantom
- pig
- piglin_brute
- piglin
- pillager
- player
- polar_bear
- pufferfish
- rabbit
- ravager
- salmon
- sheep
- shulker
- silverfish
- skeleton_horse
- skeleton
- slime
- snow_golem
- spider
- squid
- stray
- tropicalfish
- turtle
- villager_v2
- villager
- vindicator
- wandering_trader
- witch
- wither_skeleton
- wither
- wolf
- zoglin
- zombie_horse
- zombie_pigman
- zombie_villager_v2
- zombie_villager
- zombie
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for