Admire Item¶
文档版本:1.21.50.25
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
}
}
priority
:priority
admire_item_sound
:sound_event- The sound event to play when admiring the item.
on_admire_item_start
:event- The event to run when admiring the item.
event
:string- The event to fire.
target
:string- The target of the event.
on_admire_item_stop
:event- The event to run when no longer admiring the item.
sound_interval
:array- The range of time in seconds to randomly wait before playing the sound again.
sound_interval
0..0
:number
1..1
:number
sound_interval
:number- The range of time in seconds to randomly wait before playing the sound again.
sound_interval
:object- The range of time in seconds to randomly wait before playing the sound again.
sound_interval
range_min
:number
range_max
:number