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_blocks:array
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"
}
name:string
states:object
states<any object property>:string
<any object property>:integer
tags:expression_node_string
breathes_air:boolean- If true, this entity can breathe in air.
breathes_lava:boolean- If true, this entity can breathe in lava.
breathes_solids:boolean- If true, this entity can breathe in solid blocks.
breathes_water:boolean- If true, this entity can breathe in water.
generates_bubbles:boolean- If true, this entity will have visible bubbles while in water.
inhale_time:number- Time in seconds to recover breath to maximum.
non_breathe_blocks:array
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_time:integer- Time in seconds between suffocation damage.
total_supply:integer- Time in seconds the entity can hold its breath.