minecraft:behavior.offer_flower

Allows the mob to offer a flower to another mob with the minecraft:take_flower behavior.

Properties

PropertyTypeDefaultWhat it does
max_offer_flower_durationDecimalmin 020The max amount of time (in seconds) that the mob will offer the flower for before exiting the Goal.
chance_to_startDecimal0 to 10.0001Percent chance that the mob will start this goal from 0.0 to 1.0 (where 1.0 = 100%).
filtersObject or List of object{"AND": null, "NOT": null, "OR": null, "all": null, "all_…Conditions that need to be met for the behavior to start.
testText—The name of the test to apply.
subjectBoolean or Integer or Decimal or Text—The subject of this filter test.
operatorBoolean or Integer or Decimal or Text—The comparison to apply with 'value'.
domainBoolean or Integer or Decimal or Text—The domain the test should be performed in.
valueBoolean or Integer or Decimal or Text—The value being compared with the test.
search_areaList of decimal or Object[6, 2, 6]The dimensions of the AABB used to search for a potential mob to offer flower to.
xDecimal0
yDecimal0
zDecimal0
max_rotation_xDecimalmin 030Maximum rotation (in degrees), on the X-axis, this entity can rotate while trying to look at the target.
max_head_rotation_yDecimalmin 030Maximum rotation (in degrees), on the Y-axis, this entity can rotate its head while trying to look at the target.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Iron Golem uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.offer_flower": {
    "filters": {
      "test": "is_daytime"
    },
    "priority": 5
  }
}

Used by 1

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

Related components