Edit

Entity Documentation - minecraft:navigation.walk

Walking style of the mob.

Walk navigation Properties

Name Default Value Type Description Example Values
avoid_damage_blocks false Boolean true/false Tells the pathfinder to avoid blocks that cause damage when finding a path Blaze: true
avoid_portals false Boolean true/false Tells the pathfinder to avoid portals (like nether portals) when finding a path
avoid_sun false Boolean true/false Whether or not the pathfinder should avoid tiles that are exposed to the sun when creating paths Bogged: true
avoid_water false Boolean true/false Tells the pathfinder to avoid water when creating a path Blaze: true
blocks_to_avoid not set Array of strings List of block descriptors that the pathfinder should avoid. Items can be block identifier strings or objects with name/tags properties. Breeze: [{"tags":"query.any_tag('trapdoors')"}]
blocks_to_avoid (Block to Avoid) not set Array of Blocks To Avoid (Block To Avoid) items
can_breach false Boolean true/false Tells the pathfinder whether or not it can jump out of water (like a dolphin)
can_break_doors false Boolean true/false Tells the pathfinder that it can path through a closed door and break it
can_float not set Boolean true/false
can_jump true Boolean true/false Tells the pathfinder whether or not it can jump up blocks
can_open_doors false Boolean true/false Tells the pathfinder that it can path through a closed door assuming the AI will open the door
can_open_iron_doors false Boolean true/false Tells the pathfinder that it can path through a closed iron door assuming the AI will open the door
can_pass_doors true Boolean true/false Whether a path can be created through a door
can_path_from_air false Boolean true/false Tells the pathfinder that it can start pathing when in the air
can_path_over_lava false Boolean true/false Tells the pathfinder whether or not it can travel on the surface of the lava
can_path_over_water false Boolean true/false Tells the pathfinder whether or not it can travel on the surface of the water Blaze: true
can_sink true Boolean true/false Tells the pathfinder whether or not it will be pulled down by gravity while in water
can_swim false Boolean true/false Tells the pathfinder whether or not it can path anywhere through water and plays swimming animation along that path
can_walk true Boolean true/false Tells the pathfinder whether or not it can walk on the ground outside water
can_walk_in_lava false Boolean true/false Tells the pathfinder whether or not it can travel in lava like walking on ground
is_amphibious false Boolean true/false Tells the pathfinder whether or not it can walk on the ground underwater Bogged: true
using_door_annotation not set String Blaze: true

Blocks To Avoid (Block To Avoid)

Block to Avoid Properties

JSON path: blocks_to_avoid

Name Default Value Type Description
name not set String Block identifier to avoid.
tags not set Molang Molang expression to match block tags, e.g. query.any_tag('trapdoors')

Samples

Blaze

"minecraft:navigation.walk": {
  "avoid_damage_blocks": true,
  "avoid_water": true,
  "can_path_over_water": true,
  "using_door_annotation": true
}

Bogged

"minecraft:navigation.walk": {
  "avoid_sun": true,
  "is_amphibious": true,
  "avoid_water": true
}

Breeze

"minecraft:navigation.walk": {
  "blocks_to_avoid": [
    {
      "tags": "query.any_tag('trapdoors')"
    }
  ],
  "using_door_annotation": true
}

Chicken

"minecraft:navigation.walk": {
  "can_path_over_water": true,
  "avoid_damage_blocks": true
}

Cow

"minecraft:navigation.walk": {
  "can_path_over_water": true,
  "avoid_water": true,
  "avoid_damage_blocks": true
}