跳转至

Peek

文档版本:1.21.50.25

Defines the entity's peek behavior, defining the events that should be called during it.

架构

peek:
{
  event_object "on_close"
  event_object "on_open"
  event_object "on_target_open"
}
on_closeevent_object
Event to call when the entity is done peeking.
event_object:
{
  filters "filters"
  string "event" : opt
  string "target" : opt
}
filtersfilters
一个过滤器组
eventstring
The event to fire.
targetstring
The target of the event.
on_openevent_object
Event to call when the entity starts peeking.
on_target_openevent_object
Event to call when the entity's target entity starts peeking.