Skip to content

@minecraft/server


@minecraft/server / EntityNavigationComponent

Class: EntityNavigationComponent ​

Defined in: @minecraft/server/index.d.ts:11597

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

Extends ​

Extended by ​

Properties ​

avoidDamageBlocks ​

readonly avoidDamageBlocks: boolean

Defined in: @minecraft/server/index.d.ts:11606

Remarks ​

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

Throws ​

This property can throw when used.


avoidPortals ​

readonly avoidPortals: boolean

Defined in: @minecraft/server/index.d.ts:11614

Remarks ​

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

Throws ​

This property can throw when used.


avoidSun ​

readonly avoidSun: boolean

Defined in: @minecraft/server/index.d.ts:11622

Remarks ​

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

Throws ​

This property can throw when used.


avoidWater ​

readonly avoidWater: boolean

Defined in: @minecraft/server/index.d.ts:11629

Remarks ​

Tells the pathfinder to avoid water when creating a path.

Throws ​

This property can throw when used.


canBreach ​

readonly canBreach: boolean

Defined in: @minecraft/server/index.d.ts:11637

Remarks ​

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

Throws ​

This property can throw when used.


canBreakDoors ​

readonly canBreakDoors: boolean

Defined in: @minecraft/server/index.d.ts:11645

Remarks ​

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

Throws ​

This property can throw when used.


canFloat ​

readonly canFloat: boolean

Defined in: @minecraft/server/index.d.ts:11652

Remarks ​

Tells the pathfinder whether or not it can float.

Throws ​

This property can throw when used.


canJump ​

readonly canJump: boolean

Defined in: @minecraft/server/index.d.ts:11659

Remarks ​

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

Throws ​

This property can throw when used.


canOpenDoors ​

readonly canOpenDoors: boolean

Defined in: @minecraft/server/index.d.ts:11667

Remarks ​

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

Throws ​

This property can throw when used.


canOpenIronDoors ​

readonly canOpenIronDoors: boolean

Defined in: @minecraft/server/index.d.ts:11675

Remarks ​

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

Throws ​

This property can throw when used.


canPassDoors ​

readonly canPassDoors: boolean

Defined in: @minecraft/server/index.d.ts:11682

Remarks ​

Whether a path can be created through a door.

Throws ​

This property can throw when used.


canPathFromAir ​

readonly canPathFromAir: boolean

Defined in: @minecraft/server/index.d.ts:11690

Remarks ​

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

Throws ​

This property can throw when used.


canPathOverLava ​

readonly canPathOverLava: boolean

Defined in: @minecraft/server/index.d.ts:11698

Remarks ​

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

Throws ​

This property can throw when used.


canPathOverWater ​

readonly canPathOverWater: boolean

Defined in: @minecraft/server/index.d.ts:11706

Remarks ​

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

Throws ​

This property can throw when used.


canSink ​

readonly canSink: boolean

Defined in: @minecraft/server/index.d.ts:11714

Remarks ​

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

Throws ​

This property can throw when used.


canSwim ​

readonly canSwim: boolean

Defined in: @minecraft/server/index.d.ts:11722

Remarks ​

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

Throws ​

This property can throw when used.


canWalk ​

readonly canWalk: boolean

Defined in: @minecraft/server/index.d.ts:11730

Remarks ​

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

Throws ​

This property can throw when used.


canWalkInLava ​

readonly canWalkInLava: boolean

Defined in: @minecraft/server/index.d.ts:11738

Remarks ​

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

Throws ​

This property can throw when used.


entity ​

readonly entity: Entity

Defined in: @minecraft/server/index.d.ts:9981

Remarks ​

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

Throws ​

This property can throw when used.

InvalidEntityError

Inherited from ​

EntityComponent.entity


isAmphibious ​

readonly isAmphibious: boolean

Defined in: @minecraft/server/index.d.ts:11746

Remarks ​

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

Throws ​

This property can throw when used.


isValid ​

readonly isValid: boolean

Defined in: @minecraft/server/index.d.ts:6234

Remarks ​

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.

Inherited from ​

EntityComponent.isValid


typeId ​

readonly typeId: string

Defined in: @minecraft/server/index.d.ts:6240

Remarks ​

Identifier of the component.

Inherited from ​

EntityComponent.typeId