minecraft:behavior.find_underwater_treasure

Allows the mob to move towards the nearest underwater ruin or shipwreck.

Properties

PropertyTypeDefaultWhat it does
speed_multiplierDecimal1Movement speed multiplier of the mob when using this AI Goal
search_rangeInteger0The range that the mob will search for a treasure chest within a ruin or shipwreck to move towards.
stop_distanceDecimal2The distance the mob will move before stopping.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

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

{
  "minecraft:behavior.find_underwater_treasure": {
    "priority": 2,
    "speed_multiplier": 2.0,
    "search_range": 30,
    "stop_distance": 50
  }
}

Used by 1

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

Related components