Entity Documentation - minecraft:behavior.move_to_water
minecraft:behavior.move_to_water
compels an entity to move to water when on land.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
goal_radius | 0.5 | Decimal | Distance 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. |
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
search_count | 10 | Integer | The number of 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. |
search_height | 1 | Integer | Height in blocks the mob will look for water to move towards. |
search_range | 0 | Integer | The distance in blocks it will look for water to move towards. |
speed_multiplier | 1.0 | Decimal | Movement speed multiplier of the mob when using this AI Goal. |
Example
"minecraft:behavior.move_to_water":{
"priority": 2,
"search_range": 25,
"search_height": 5,
"goal_radius": 0.75,
"search_count": 10
}
Vanilla entities examples
dolphin
"minecraft:behavior.move_to_water": {
"priority": 1,
"search_range": 15,
"search_height": 5
}
Vanilla entities using minecraft:behavior.move_to_water
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for