minecraft:behavior.fertilize_farm_block

Allows the mob to search within an area for a growable crop block. If found, the mob will use any available fertilizer in their inventory on the crop. This goal will not execute if the mob does not have a fertilizer item in its inventory.

Properties

PropertyTypeDefaultWhat it does
max_fertilizer_usageInteger1The maximum number of times the mob will use fertilzer on the target block.
search_cooldown_max_secondsDecimal8The maximum amount of time in seconds that the goal can take before searching again. The time is chosen between 0 and this number.
search_rangeInteger1The distance in blocks the mob will search within to find a valid target position.
search_heightInteger1The height in blocks the mob will search within to find a valid target position.
goal_radiusDecimal1.5Distance in blocks within the mob considers it has reached it's target position.
search_countIntegermin 09The number of randomly selected 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.
speed_multiplierDecimalmin 00.5Movement speed multiplier of the mob when using this goal.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Villager uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.fertilize_farm_block": {
    "priority": 8
  }
}

Used by 1

Vanilla entities with minecraft:behavior.fertilize_farm_block in their definition:

Related components