Skip to main content

Entity AI goal reference (29/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.player_ride_tamed​

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

Allows the mob to be ridden by the player after being tamed.

Entity Player Ride Tamed Behavior Properties​

NameDefault ValueTypeDescription
control_flags[]Control Flags choices
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Samples​

minecraft:behavior.raid_garden​

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

Allows the mob to eat/raid crops out of farms until they are full.

Entity Raid Garden Behavior Properties​

NameDefault ValueTypeDescription
blocks[]Array of stringsBlocks that the mob is looking for to eat/raid
control_flags[]Control Flags choices
eat_delay2Integer numberTime in seconds between each time it eats/raids
full_delay100Integer numberAmount of time in seconds before this mob wants to eat/raid again after eating its maximum
goal_radius0.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. Value must be > 0.
initial_eat_delay0Integer numberTime in seconds before starting to eat/raid once it arrives at it
max_to_eat6Integer numberMaximum number of crops this entity wants to eat/raid. If set to zero or less then it doesn't have a maximum
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.
search_height1Integer numberHeight in blocks the mob will look for crops to eat Value must be > 0.
search_range0Integer numberDistance in blocks the mob will look for crops to eat Value must be > 0.
speed_multiplier1Decimal numberMovement speed multiplier of the mob when using this goal.

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