1. Wiki
  2. /Entities
  3. /minecraft:navigation.hover

minecraft:navigation.hover

Don't want to write this by hand? GodCraft sets minecraft:navigation.hover for you with a switch.Get GodCraft

Overview

minecraft:navigation.hover is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Lets the mob plan paths through the air while staying aloft, like a bee, so it does not drop out of the sky. Pair it with a matching movement component.

Fields

FieldTypeDefaultDescription
avoid_damage_blocksBoolean"false"If true, paths go around blocks that hurt, such as cactus or magma.
avoid_portalsBoolean"false"If true, paths stay away from portals like nether portals.
avoid_sunBoolean"false"If true, paths prefer shaded spots over places in direct sunlight.
avoid_waterBoolean"false"If true, paths stay out of water.
blocks_to_avoidListnoneBlocks the mob should never step into while following a path.
can_breachBoolean"false"If true, the mob can leap up out of the water surface.
can_break_doorsBoolean"false"If true, closed doors count as passable because the mob will break them.
can_jumpBoolean"true"If true, paths can climb up one-block steps by jumping.
can_open_doorsBoolean"false"If true, closed doors count as passable because the mob will open them.
can_open_iron_doorsBoolean"false"If true, closed iron doors also count as passable.
can_pass_doorsBoolean"true"If true, paths can go through doorways.
can_path_from_airBoolean"false"If true, the mob can start a new path while still in the air.
can_path_over_lavaBoolean"false"If true, paths can cross the top of lava.
can_path_over_waterBoolean"false"If true, paths can cross the top of water.
can_sinkBoolean"true"If true, the mob sinks in water instead of floating.
can_swimBoolean"false"If true, paths can go anywhere through water and the mob uses its swim animation there.
can_walkBoolean"true"If true, the mob can walk on dry land.
can_walk_in_lavaBoolean"false"If true, the mob moves through lava as if it were solid ground.
is_amphibiousBoolean"false"If true, the mob can walk along the bottom under water.

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

BP/entities/<name>.json
{
  "minecraft:navigation.hover": {
    "avoid_damage_blocks": "false",
    "avoid_portals": "false",
    "avoid_sun": "false",
    "avoid_water": "false",
    "blocks_to_avoid": {},
    "can_breach": "false",
    "can_break_doors": "false",
    "can_jump": "true"
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more