跳转至

Eat Mob

文档版本:1.21.0.24

[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
}
prioritypriority
priority:
integer
eat_animation_timenumber
Sets the time in seconds the eat animation should play for.
eat_mob_soundsound_event
Sets the sound that should play when eating a mob.
sound_event:
string
loot_tablestring
The loot table for loot to be dropped when eating a mob.
pull_in_forcenumber
Sets the force which the mob-to-be-eaten is pulled towards the eating mob.
reach_mob_distancenumber
Sets the desired distance to be reached before eating the mob.
run_speednumber
Sets the entity's speed when running toward the target.