minecraft:behavior.admire_item

Enables the mob to admire items that have been configured as admirable. Must be used in combination with the admire_item component

Properties

PropertyTypeDefaultWhat it does
admire_item_soundText""The sound event to play when admiring the item
sound_intervalObject{"max": 0, "min": 0}The range of time in seconds to randomly wait before playing the sound again.
minDecimal0
maxDecimal0
on_admire_item_startObject{"event": "", "filters": {"AND": null, "NOT": null, "OR":…Event to run when the mob starts admiring an item.
eventText""
targetTextself, other, player, target, parent, baby, block, damager, holder, item"self"
filtersObject or List of object{"AND": null, "NOT": null, "OR": null, "all": null, "all_…Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects.
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.
on_admire_item_stopObject{"event": "", "filters": {"AND": null, "NOT": null, "OR":…Event to run when the mob stops admiring an item.
eventText""
targetTextself, other, player, target, parent, baby, block, damager, holder, item"self"
filtersObject or List of object{"AND": null, "NOT": null, "OR": null, "all": null, "all_…Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects.
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.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

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

{
  "minecraft:behavior.admire_item": {
    "priority": 2,
    "admire_item_sound": "admire",
    "sound_interval": {
      "min": 8.0,
      "max": 8.0
    },
    "on_admire_item_start": {
      "event": "admire_item_started_event",
      "target": "self"
    },
    "on_admire_item_stop": {
      "event": "admire_item_stopped_event",
      "target": "self"
    }
  }
}

Used by 1

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

Related components