跳转至

Nap

文档版本:1.21.0.24

Allows mobs to occassionally stop and take a nap under certain conditions.

架构

nap:
{
  priority "priority"
  speed_multiplier "speed_multiplier"
  number "cooldown_max" : opt
  number "cooldown_min" : opt
  number "mob_detect_dist" : opt
  number "mob_detect_height" : opt
  filters "can_nap_filters"
  filters "wake_mob_exceptions"
}
prioritypriority
priority:
integer
speed_multiplierspeed_multiplier
speed_multiplier:
number
cooldown_maxnumber
Maximum time in seconds the mob has to wait before using the goal again.
cooldown_minnumber
Minimum time in seconds the mob has to wait before using the goal again.
mob_detect_distnumber
The block distance in x and z that will be checked for mobs that this mob detects.
mob_detect_heightnumber
The block distance in y that will be checked for mobs that this mob detects.
can_nap_filtersfilters
一个过滤器组。The filters that need to be met for the nap to take place.
wake_mob_exceptionsfilters
一个过滤器组。Filters that can trigger the entity to wake up from it nap.