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

    Class EntityNavigationFlyComponent

    import { world } from "@minecraft/server";

    for (const entity of world.getDimension("overworld").getEntities()) {
    const navigationFly = entity.getComponent("minecraft:navigation.fly");
    if (!navigationFly) continue;

    navigationFly.avoidDamageBlocks;
    navigationFly.avoidPortals;
    navigationFly.avoidSun;
    navigationFly.avoidWater;
    navigationFly.canBreach;
    navigationFly.canBreakDoors;
    navigationFly.canFloat;
    navigationFly.canJump;
    navigationFly.canOpenDoors;
    navigationFly.canOpenIronDoors;
    navigationFly.canPassDoors;
    navigationFly.canPathFromAir;
    navigationFly.canPathOverLava;
    navigationFly.canPathOverWater;
    navigationFly.canSink;
    navigationFly.canSwim;
    navigationFly.canWalk;
    navigationFly.canWalkInLava;
    navigationFly.isAmphibious;
    navigationFly.isValid;
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    avoidDamageBlocks: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    avoidPortals: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    avoidSun: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    avoidWater: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    canBreach: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    canBreakDoors: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    canFloat: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    canJump: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    canOpenDoors: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    canOpenIronDoors: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    canPassDoors: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    canPathFromAir: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    canPathOverLava: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    canPathOverWater: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    canSink: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    canSwim: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    canWalk: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    canWalkInLava: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    entity: Entity

    This property can throw errors.

    InvalidEntityError

    This property can't be read in early-execution mode.

    isAmphibious: boolean

    This property can throw errors.

    This property can't be read in early-execution mode.

    isValid: boolean
    typeId: string