跳转至

Admire Item

文档版本:1.21.0.24

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

架构

admire_item:
{
  priority "priority"
  sound_event "admire_item_sound"
  event "on_admire_item_start"
  event "on_admire_item_stop"
  array "sound_interval" : opt
  {
    number "0..0" : opt
    number "1..1" : opt
  }
  number "sound_interval" : opt
  object "sound_interval" : opt
  {
    number "range_min" : opt
    number "range_max" : opt
  }
}
prioritypriority
priority:
integer
admire_item_soundsound_event
The sound event to play when admiring the item.
sound_event:
string
on_admire_item_startevent
The event to run when admiring the item.
event:
string
event:
{
  string "event" : opt
  string "target" : opt
}
eventstring
The event to fire.
targetstring
The target of the event.
on_admire_item_stopevent
The event to run when no longer admiring the item.
sound_intervalarray
The range of time in seconds to randomly wait before playing the sound again.
sound_interval
0..0number
1..1number
sound_intervalnumber
The range of time in seconds to randomly wait before playing the sound again.
sound_intervalobject
The range of time in seconds to randomly wait before playing the sound again.
sound_interval
range_minnumber
range_maxnumber