Sniff¶
文档版本:1.21.50.25
Sniff compels this entity to detect the nearest player within "sniffing_radius" and update its minecraft:suspect_tracking component state.
架构¶
sniff:
{
priority "priority"
vector_of_2_items "cooldown_range"
number "duration" : opt
number "sniffing_radius" : opt
number "suspicion_radius_horizontal" : opt
number "suspicion_radius_vertical" : opt
}
priority
:priority
cooldown_range
:vector_of_2_items- Cooldown range between sniffs in seconds.
0..0
:number- The X component.
1..1
:number- The Y component.
duration
:number- Sniffing duration in seconds
sniffing_radius
:number- Mob detection radius.
suspicion_radius_horizontal
:number- Mob suspicion horizontal radius. When a player is within this radius horizontally, the anger level towards that player is increased.
suspicion_radius_vertical
:number- Mob suspicion vertical radius. When a player is within this radius vertically, the anger level towards that player is increased.