Celebrate¶
文档版本:1.21.50.25
Allows this entity to celebrate surviving a raid by making celebration sounds and jumping.
架构¶
celebrate:
{
priority "priority"
sound_event "celebration_sound"
number "duration" : opt
array "jump_interval" : opt
{
number "0..0" : opt
number "1..1" : opt
}
number "jump_interval" : opt
object "jump_interval" : opt
{
number "range_min" : opt
number "range_max" : opt
}
trigger "on_celebration_end_event"
range_number_type "sound_interval"
}
priority
:priority
celebration_sound
:sound_event- The sound event to trigger during the celebration.
duration
:number- The duration in seconds that the celebration lasts for.
jump_interval
:array- Minimum and maximum time between jumping (positive, in seconds).
jump_interval
0..0
:number
1..1
:number
jump_interval
:number- Minimum and maximum time between jumping (positive, in seconds).
jump_interval
:object- Minimum and maximum time between jumping (positive, in seconds).
jump_interval
range_min
:number
range_max
:number
on_celebration_end_event
:trigger- The event to trigger when the goal's duration expires.
event
:string- The event to run when the conditions for this trigger are met.
filters
:filters- 一个过滤器组。The list of conditions for this trigger to execute.
target
:subject- The target of the event.
trigger:
array
{
object "<any array element>" : opt
{
string "event" : opt
filters "filters"
subject "target"
}
}
<any array element>
:object
<any array element>
sound_interval
:range_number_type- Minimum and maximum time between sound events (positive, in seconds).
0..0
:number- The first value of the range.
1..1
:number- The second value of the range.
range_min
:number- The minimum value of the range.
range_max
:number- The maximum value of the range.