Skip to main content

Entity AI goal reference (35/41)

This page carries the AI goal (behavior) pages of MS Learn (MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0). IDs, property names, types, default values and JSON are as in the original. The full list is in the index.

minecraft:behavior.stroll_towards_village​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_stroll_towards_village.md)

Allows the mob to move into a random location within a village within the search range.

Entity Stroll Towards Village Behavior Properties​

NameDefault ValueTypeDescription
control_flags[]Control Flags choices
cooldown_time8Decimal numberTime in seconds the mob has to wait before using the goal again
goal_radius1.5Decimal numberDistance 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.
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.
search_range0Integer numberThe distance in blocks to search for villages. If <= 0, find the closest village regardless of distance.
speed_multiplier1Decimal numberMovement speed multiplier of the mob when using this goal.
start_chance1Decimal numberThis is the chance that the mob will start this goal, from 0 to 1

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Samples​

Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13