Script API - v1.19.70
    Preparing search index...

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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    breathesAir: boolean

    If true, this entity can breathe in air.

    This property can throw when used.

    breathesLava: boolean

    If true, this entity can breathe in lava.

    This property can throw when used.

    breathesSolids: boolean

    If true, this entity can breathe in solid blocks.

    This property can throw when used.

    breathesWater: boolean

    If true, this entity can breathe in water.

    This property can throw when used.

    generatesBubbles: boolean

    If true, this entity will have visible bubbles while in water.

    This property can throw when used.

    inhaleTime: number

    Time in seconds to recover breath to maximum.

    This property can throw when used.

    suffocateTime: number

    Time in seconds between suffocation damage.

    This property can throw when used.

    totalSupply: number

    Time in seconds the entity can hold its breath.

    This property can throw when used.

    typeId: string

    Identifier of this component. Should always be minecraft:breathable.

    componentId: "minecraft:breathable" = 'minecraft:breathable'

    Identifier of this component. Should always be minecraft:breathable.

    Methods

    • Beta

      Parameters

      • value: number

        New air supply for the entity.

      Returns void

      Sets the current air supply of the entity.

      This function can throw errors.