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

    Class EntityNavigationClimbComponent

    Allows this entity to generate paths that include vertical walls (for example, like Minecraft spiders do.)

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

    system.run(() => {
    const spider = world
    .getDimension("overworld")
    .spawnEntity("minecraft:spider", { x: 0, y: 0, z: 0 });
    const navigationClimb = spider.getComponent("minecraft:navigation.climb");
    if (!navigationClimb)
    return console.warn("spider - navigationClimb is undefined");

    console.warn(
    "spider - avoidDamageBlocks: " + navigationClimb.avoidDamageBlocks,
    );
    console.warn("spider - avoidPortals: " + navigationClimb.avoidPortals);
    console.warn("spider - avoidSun: " + navigationClimb.avoidSun);
    console.warn("spider - avoidWater: " + navigationClimb.avoidWater);
    console.warn("spider - canBreach: " + navigationClimb.canBreach);
    console.warn("spider - canBreakDoors: " + navigationClimb.canBreakDoors);
    console.warn("spider - canFloat: " + navigationClimb.canFloat);
    console.warn("spider - canJump: " + navigationClimb.canJump);
    console.warn("spider - canOpenDoors: " + navigationClimb.canOpenDoors);
    console.warn(
    "spider - canOpenIronDoors: " + navigationClimb.canOpenIronDoors,
    );
    console.warn("spider - canPassDoors: " + navigationClimb.canPassDoors);
    console.warn("spider - canPathFromAir: " + navigationClimb.canPathFromAir);
    console.warn(
    "spider - canPathOverLava: " + navigationClimb.canPathOverLava,
    );
    console.warn(
    "spider - canPathOverWater: " + navigationClimb.canPathOverWater,
    );
    console.warn("spider - canSink: " + navigationClimb.canSink);
    console.warn("spider - canSwim: " + navigationClimb.canSwim);
    console.warn("spider - canWalk: " + navigationClimb.canWalk);
    console.warn("spider - canWalkInLava: " + navigationClimb.canWalkInLava);
    console.warn("spider - isAmphibious: " + navigationClimb.isAmphibious);
    console.warn("spider - isValid: " + navigationClimb.isValid());
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    avoidDamageBlocks: boolean

    Tells the pathfinder to avoid blocks that cause damage when finding a path.

    This property can throw when used.

    avoidPortals: boolean

    Tells the pathfinder to avoid portals (like nether portals) when finding a path.

    This property can throw when used.

    avoidSun: boolean

    Whether or not the pathfinder should avoid tiles that are exposed to the sun when creating paths.

    This property can throw when used.

    avoidWater: boolean

    Tells the pathfinder to avoid water when creating a path.

    This property can throw when used.

    canBreach: boolean

    Tells the pathfinder whether or not it can jump out of water (like a dolphin).

    This property can throw when used.

    canBreakDoors: boolean

    Tells the pathfinder that it can path through a closed door and break it.

    This property can throw when used.

    canFloat: boolean

    Tells the pathfinder whether or not it can float.

    This property can throw when used.

    canJump: boolean

    Tells the pathfinder whether or not it can jump up blocks.

    This property can throw when used.

    canOpenDoors: boolean

    Tells the pathfinder that it can path through a closed door assuming the AI will open the door.

    This property can throw when used.

    canOpenIronDoors: boolean

    Tells the pathfinder that it can path through a closed iron door assuming the AI will open the door.

    This property can throw when used.

    canPassDoors: boolean

    Whether a path can be created through a door.

    This property can throw when used.

    canPathFromAir: boolean

    Tells the pathfinder that it can start pathing when in the air.

    This property can throw when used.

    canPathOverLava: boolean

    Tells the pathfinder whether or not it can travel on the surface of the lava.

    This property can throw when used.

    canPathOverWater: boolean

    Tells the pathfinder whether or not it can travel on the surface of the water.

    This property can throw when used.

    canSink: boolean

    Tells the pathfinder whether or not it will be pulled down by gravity while in water.

    This property can throw when used.

    canSwim: boolean

    Tells the pathfinder whether or not it can path anywhere through water and plays swimming animation along that path.

    This property can throw when used.

    canWalk: boolean

    Tells the pathfinder whether or not it can walk on the ground outside water.

    This property can throw when used.

    canWalkInLava: boolean

    Tells the pathfinder whether or not it can travel in lava like walking on ground.

    This property can throw when used.

    entity: Entity

    The entity that owns this component. The entity will be undefined if it has been removed.

    This property can throw when used.

    InvalidEntityError

    isAmphibious: boolean

    Tells the pathfinder whether or not it can walk on the ground or go underwater.

    This property can throw when used.

    isValid: boolean

    Returns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.

    typeId: string

    Identifier of the component.

    componentId: "minecraft:navigation.climb" = 'minecraft:navigation.climb'