编辑

Entity Documentation - minecraft:behavior.explore_outskirts

Allows the entity to first travel to a random point on the outskirts of the village, and then explore random points within a small distance.

Note

Requires the following components in order to work properly:

Entity Explore Outskirts Behavior Properties

Name Default Value Type Description
control_flags [] Control Flags choices
dist_from_boundary [5, 0, 5] Array of numbers The distance from the boundary the villager must be within in to explore the outskirts.
dist_from_boundary (Dist From Boundary) not set Dist From Boundary (Dist From Boundary) item
explore_dist 5 Decimal number Total distance in blocks the the entity will explore beyond the village bounds when choosing its travel point.
max_travel_time 60 Decimal number This is the maximum amount of time an entity will attempt to reach it's travel point on the outskirts of the village before the goal exits.
max_wait_time 0 Decimal number The wait time in seconds between choosing new explore points will be chosen on a random interval between this value and the minimum wait time.
min_dist_from_target 2.25 Decimal number The entity must be within this distance for it to consider it has successfully reached its target.
min_perimeter 1 Decimal number The minimum perimeter of the village required to run this goal.
min_wait_time 3 Decimal number The wait time in seconds between choosing new explore points will be chosen on a random interval between this value and the maximum wait time.
next_xz 5 Integer number A new explore point will randomly be chosen within this XZ distance of the current target position when navigation has finished and the wait timer has elapsed.
next_y 3 Integer number A new explore point will randomly be chosen within this Y distance of the current target position when navigation has finished and the wait timer has elapsed.
priority 0 Integer number As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.
speed_multiplier 1 Decimal number The multiplier for speed while using this goal. 1.0 maintains the speed.
timer_ratio 2 Decimal number Each new explore point will be chosen on a random interval between the minimum and the maximum wait time, divided by this value.

max_wait_time

The wait time in seconds between choosing new explore points will be chosen on a random interval between this value and the minimum wait time. This value is also the total amount of time the entity will explore random points before the goal stops.

timer_ratio

Each new explore point will be chosen on a random interval between the minimum and the maximum wait time, divided by this value. This does not apply to the first explore point chosen when the goal runs.

Control Flags choices

Value Title Description
jump Jump
look Look
move Move

Dist From Boundary (Dist From Boundary)

Dist From Boundary Properties

JSON path: dist_from_boundary

Name Default Value Type Description
x 0 Decimal number
y 0 Decimal number
z 0 Decimal number

Samples