Navigation Generic¶
文档版本:1.21.50.25
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_blocks
:boolean- Tells the pathfinder to avoid blocks that cause damage when finding a path.
avoid_portals
:boolean- Tells the pathfinder to avoid portals (like nether portals) when finding a path.
avoid_sun
:boolean- Whether or not the pathfinder should avoid tiles that are exposed to the sun when creating paths.
avoid_water
:boolean- Tells the pathfinder to avoid water when creating a path.
blocks_to_avoid
:array- 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.
reference:
{
identifier "name"
object "states" : opt
{
['boolean', 'integer', 'string'] "\w*:?\w+" : opt
}
0 "tags"
}
name
:identifier
states
:object
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.
tags
:0- A condition using Molang queries that results to true/false that can be used to query for blocks with certain tags.
can_breach
:boolean- Tells the pathfinder whether or not it can jump out of water (like a dolphin).
can_break_doors
:boolean- Tells the pathfinder that it can path through a closed door and break it.
can_jump
:boolean- Tells the pathfinder whether or not it can jump up blocks.
can_open_doors
:boolean- Tells the pathfinder that it can path through a closed door assuming the AI will open the door.
can_open_iron_doors
:boolean- Tells the pathfinder that it can path through a closed iron door assuming the AI will open the door.
can_pass_doors
:boolean- Whether a path can be created through a door.
can_path_from_air
:boolean- Tells the pathfinder that it can start pathing when in the air.
can_path_over_lava
:boolean- Tells the pathfinder whether or not it can travel on the surface of the lava.
can_path_over_water
:boolean- Tells the pathfinder whether or not it can travel on the surface of the water.
can_sink
:boolean- Tells the pathfinder whether or not it will be pulled down by gravity while in water.
can_swim
:boolean- Tells the pathfinder whether or not it can path anywhere through water and plays swimming animation along that path.
can_walk
:boolean- Tells the pathfinder whether or not it can walk on the ground outside water.
can_walk_in_lava
:boolean- Tells the pathfinder whether or not it can travel in lava like walking on ground.
is_amphibious
:boolean- Tells the pathfinder whether or not it can walk on the ground underwater.