跳转至

Hold Ground

文档版本:1.21.0.24

The mob freezes and looks at the mob they are targeting.

架构

hold_ground:
{
  priority "priority"
  boolean "broadcast" : opt
  number "broadcast_range" : opt
  number "min_radius" : opt
  event "within_radius_event"
}
prioritypriority
priority:
integer
broadcastboolean
Whether to broadcast out the mob's target to other mobs of the same type.
broadcast_rangenumber
Range in blocks for how far to broadcast.
min_radiusnumber
Minimum distance the target must be for the mob to run this goal.
within_radius_eventevent
Event to run when target is within the radius. This event is broadcasted if broadcast is true.
event:
string
event:
{
  string "event" : opt
  string "target" : opt
}
eventstring
The event to fire.
targetstring
The target of the event.