Entity Documentation - minecraft:behavior.find_underwater_treasure

minecraft:behavior.find_underwater_treasure compels an entity to locate and travel to the nearest point of interest labeled as ruin or shipwreck.

Parameters

Name Default Value Type Description
priority not set Integer The higher the priority, the sooner this behavior will be executed as a goal.
search_range 0 Integer The range that the mob will search for a treasure chest within a ruin or shipwreck to move towards.
speed_multiplier 1.0 Decimal Movement speed multiplier of the mob when using this AI Goal
stop_distance 2.0 Decimal The distance the mob will move before stopping.

Example

"minecraft:behavior.find_underwater_treasure":{
    "priority": 2,
    "search_range": 8,
    "cooldown_time":10,
    "speed_multiplier":3
}

Vanilla entities examples

dolphin

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

Vanilla entities using minecraft:behavior.find_underwater_treasure