minecraft:behavior.move_to_land

Allows the mob to move back onto land when in water.

Properties

PropertyTypeDefaultWhat it does
search_rangeInteger0The distance in blocks it will look for land to move towards
search_heightInteger1Height in blocks the mob will look for land to move towards
goal_radiusDecimal0.5Distance in blocks within the mob considers it has reached the goal. This is the "wiggle room" to stop the AI from bouncing back and forth trying to reach a specific spot.
search_countIntegermin 010The number of randomly selected blocks each tick that the mob will check within its search range and height for a valid block to move to. A value of 0 will have the mob check every block within range in one tick.
speed_multiplierDecimalmin 01Movement speed multiplier of the mob when using this goal.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Frog uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.move_to_land": {
    "goal_radius": 2,
    "priority": 6,
    "search_count": 80,
    "search_height": 8,
    "search_range": 30
  }
}

Used by 2

Vanilla entities with minecraft:behavior.move_to_land in their definition:

Related components