Nap¶
文档版本:1.21.50.25
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"
}
priority
:priority
speed_multiplier
:speed_multiplier
cooldown_max
:number- Maximum time in seconds the mob has to wait before using the goal again.
cooldown_min
:number- Minimum time in seconds the mob has to wait before using the goal again.
mob_detect_dist
:number- The block distance in x and z that will be checked for mobs that this mob detects.
mob_detect_height
:number- The block distance in y that will be checked for mobs that this mob detects.
can_nap_filters
:filters- 一个过滤器组。The filters that need to be met for the nap to take place.
wake_mob_exceptions
:filters- 一个过滤器组。Filters that can trigger the entity to wake up from it nap.