Sneeze¶
文档版本:1.21.50.25
Allows the mob to stop and sneeze possibly startling nearby mobs and dropping an item.
架构¶
sneeze:
{
priority "priority"
number "cooldown_time" : opt
number "drop_item_chance" : opt
entity_types "entity_types"
string "loot_table" : opt
sound_event "prepare_sound"
number "prepare_time" : opt
number "probability" : opt
sound_event "sound"
number "within_radius" : opt
}
priority:priority
cooldown_time:number- Time in seconds the mob has to wait before using the goal again.
drop_item_chance:number- The probability that the mob will drop an item when it sneezes.
entity_types:entity_types- List of entity types this mob will startle (cause to jump) when it sneezes.
entity_types:
array
{
object "<any array element>" : opt
{
filters "filters"
number "cooldown" : opt
number "max_dist" : opt
number "max_height" : opt
number "max_flee" : opt
number "priority" : opt
number "within_default" : opt
boolean "check_if_outnumbered" : opt
boolean "must_see" : opt
number "must_see_forget_duration" : opt
boolean "reevaluate_description" : opt
number "sprint_speed_multiplier" : opt
number "walk_speed_multiplier" : opt
}
}
<any array element>:object- The entity type.
<any array element>filters:filters- 一个过滤器组。
cooldown:number- The amount of time in seconds that the mob has to wait before selecting a target of the same type again
max_dist:number- Maximum distance this mob can be away to be a valid choice.
max_height:number- UNDOCUMENTED.
max_flee:number- UNDOCUMENTED.
priority:number- UNDOCUMENTED.
within_default:number- UNDOCUMENTED.
check_if_outnumbered:boolean- UNDOCUMENTED.
must_see:boolean- If true, the mob has to be visible to be a valid choice.
must_see_forget_duration:number- Determines the amount of time in seconds that this mob will look for a target before forgetting about it and looking for a new one when the target isn't visible any more.
reevaluate_description:boolean- If true, the mob will stop being targeted if it stops meeting any conditions.
sprint_speed_multiplier:number- Multiplier for the running speed. A value of 1.0 means the speed is unchanged
walk_speed_multiplier:number- Multiplier for the walking speed. A value of 1.0 means the speed is unchanged
entity_types:
{
filters "filters"
number "cooldown" : opt
number "max_dist" : opt
number "max_height" : opt
number "max_flee" : opt
number "priority" : opt
number "within_default" : opt
boolean "check_if_outnumbered" : opt
boolean "must_see" : opt
number "must_see_forget_duration" : opt
boolean "reevaluate_description" : opt
number "sprint_speed_multiplier" : opt
number "walk_speed_multiplier" : opt
}
loot_table:string- Loot table to select dropped items from.
prepare_sound:sound_event- Sound to play when the sneeze is about to happen.
prepare_time:number- The time in seconds that the mob takes to prepare to sneeze (while the prepare_sound is playing).
probability:number- The probability of sneezing. A value of 1.00 is 100%
sound:sound_event- Sound to play when the sneeze occurs.
within_radius:number- Distance in blocks that mobs will be startled.