Eat Mob¶
文档版本:1.21.50.25
[EXPERIMENTAL BEHAVIOR] Allows the entity to eat a specified Mob.
架构¶
eat_mob:
{
priority "priority"
number "eat_animation_time" : opt
sound_event "eat_mob_sound"
string "loot_table" : opt
number "pull_in_force" : opt
number "reach_mob_distance" : opt
number "run_speed" : opt
}
priority
:priority
eat_animation_time
:number- Sets the time in seconds the eat animation should play for.
eat_mob_sound
:sound_event- Sets the sound that should play when eating a mob.
loot_table
:string- The loot table for loot to be dropped when eating a mob.
pull_in_force
:number- Sets the force which the mob-to-be-eaten is pulled towards the eating mob.
reach_mob_distance
:number- Sets the desired distance to be reached before eating the mob.
run_speed
:number- Sets the entity's speed when running toward the target.