跳转至

Navigation Generic

文档版本:1.21.0.24

Allows this entity to generate paths by walking, swimming, flying and/or climbing around and jumping up and down a block.

架构

generic:
{
  boolean "avoid_damage_blocks" : opt
  boolean "avoid_portals" : opt
  boolean "avoid_sun" : opt
  boolean "avoid_water" : opt
  array "blocks_to_avoid" : opt
  {
    reference "<any array element>"
  }
  boolean "can_breach" : opt
  boolean "can_break_doors" : opt
  boolean "can_jump" : opt
  boolean "can_open_doors" : opt
  boolean "can_open_iron_doors" : opt
  boolean "can_pass_doors" : opt
  boolean "can_path_from_air" : opt
  boolean "can_path_over_lava" : opt
  boolean "can_path_over_water" : opt
  boolean "can_sink" : opt
  boolean "can_swim" : opt
  boolean "can_walk" : opt
  boolean "can_walk_in_lava" : opt
  boolean "is_amphibious" : opt
}
avoid_damage_blocksboolean
Tells the pathfinder to avoid blocks that cause damage when finding a path.
avoid_portalsboolean
Tells the pathfinder to avoid portals (like nether portals) when finding a path.
avoid_sunboolean
Whether or not the pathfinder should avoid tiles that are exposed to the sun when creating paths.
avoid_waterboolean
Tells the pathfinder to avoid water when creating a path.
blocks_to_avoidarray
Tells the pathfinder which blocks to avoid when creating a path.
blocks_to_avoid
<any array element>reference
Tells the pathfinder which blocks to avoid when creating a path.
identifier:
string
reference:
{
  identifier "name"
  object "states" : opt
  {
    ['boolean', 'integer', 'string'] "\w*:?\w+" : opt
  }
  0 "tags"
}
nameidentifier
statesobject
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.
tags0
A condition using Molang queries that results to true/false that can be used to query for blocks with certain tags.
0:
string
can_breachboolean
Tells the pathfinder whether or not it can jump out of water (like a dolphin).
can_break_doorsboolean
Tells the pathfinder that it can path through a closed door and break it.
can_jumpboolean
Tells the pathfinder whether or not it can jump up blocks.
can_open_doorsboolean
Tells the pathfinder that it can path through a closed door assuming the AI will open the door.
can_open_iron_doorsboolean
Tells the pathfinder that it can path through a closed iron door assuming the AI will open the door.
can_pass_doorsboolean
Whether a path can be created through a door.
can_path_from_airboolean
Tells the pathfinder that it can start pathing when in the air.
can_path_over_lavaboolean
Tells the pathfinder whether or not it can travel on the surface of the lava.
can_path_over_waterboolean
Tells the pathfinder whether or not it can travel on the surface of the water.
can_sinkboolean
Tells the pathfinder whether or not it will be pulled down by gravity while in water.
can_swimboolean
Tells the pathfinder whether or not it can path anywhere through water and plays swimming animation along that path.
can_walkboolean
Tells the pathfinder whether or not it can walk on the ground outside water.
can_walk_in_lavaboolean
Tells the pathfinder whether or not it can travel in lava like walking on ground.
is_amphibiousboolean
Tells the pathfinder whether or not it can walk on the ground underwater.