Breathable¶
文档版本:1.21.50.25
Defines what blocks this entity can breathe in and gives them the ability to suffocate.
架构¶
breathable:
{
integer "total_supply" : opt
integer "suffocate_time" : opt
number "inhale_time" : opt
boolean "breathes_air" : opt
boolean "breathes_water" : opt
boolean "breathes_lava" : opt
boolean "breathes_solids" : opt
boolean "generates_bubbles" : opt
array "breathe_blocks" : opt
{
reference "<any array element>"
}
array "non_breathe_blocks" : opt
{
reference "<any array element>"
}
}
total_supply:integer- Time in seconds the entity can hold its breath.
suffocate_time:integer- Time in seconds between suffocation damage.
inhale_time:number- Time in seconds to recover breath to maximum.
breathes_air:boolean- If true, this entity can breathe in air.
breathes_water:boolean- If true, this entity can breathe in water.
breathes_lava:boolean- If true, this entity can breathe in lava.
breathes_solids:boolean- If true, this entity can breathe in solid blocks.
generates_bubbles:boolean- If true, this entity will have visible bubbles while in water.
breathe_blocks:array- List of blocks this entity can breathe in, in addition to the above.
breathe_blocks<any array element>:reference
reference:
{
identifier "name"
object "states" : opt
{
['boolean', 'integer', 'string'] "\w*:?\w+" : opt
}
0 "tags"
}
name:identifier
states:object
states\w*:?\w+:['boolean', 'integer', 'string']- The key of property is the name of the block state/property, the value must be the same as the block properties accepted values.
tags:0- A condition using Molang queries that results to true/false that can be used to query for blocks with certain tags.
non_breathe_blocks:array- List of blocks this entity can't breathe in, in addition to the above.
non_breathe_blocks<any array element>:reference