跳转至

minecraft:breathable

文档版本:1.21.0.24

Defines what blocks this entity can breathe in and gives them the ability to suffocate.

架构

minecraft:breathable:
{
  array "breathe_blocks" : opt
  {
    block_descriptor "<any array element>"
  }
  boolean "breathes_air" : opt
  boolean "breathes_lava" : opt
  boolean "breathes_solids" : opt
  boolean "breathes_water" : opt
  boolean "generates_bubbles" : opt
  number "inhale_time" : opt
  array "non_breathe_blocks" : opt
  {
    block_descriptor "<any array element>"
  }
  integer "suffocate_time" : opt
  integer "total_supply" : opt
}
breathe_blocksarray
breathe_blocks
<any array element>block_descriptor
List of blocks this entity can breathe in, in addition to the other "breathes" parameters.
block_descriptor:
{
  string "name" : opt
  object "states" : opt
  {
    string "<any object property>" : opt
    integer "<any object property>" : opt
  }
  expression_node_string "tags"
}
namestring
statesobject
states
<any object property>string
<any object property>integer
tagsexpression_node_string
expression_node_string:
string
block_descriptor:
string
breathes_airboolean
If true, this entity can breathe in air.
breathes_lavaboolean
If true, this entity can breathe in lava.
breathes_solidsboolean
If true, this entity can breathe in solid blocks.
breathes_waterboolean
If true, this entity can breathe in water.
generates_bubblesboolean
If true, this entity will have visible bubbles while in water.
inhale_timenumber
Time in seconds to recover breath to maximum.
non_breathe_blocksarray
non_breathe_blocks
<any array element>block_descriptor
List of blocks this entity can't breathe in, in addition to the other "breathes" parameters.
suffocate_timeinteger
Time in seconds between suffocation damage.
total_supplyinteger
Time in seconds the entity can hold its breath.