Entity Documentation - minecraft:behavior.eat_mob
minecraft:behavior.eat_mob
compels the entity to eat a specified mob.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
eat_animation_time | 1.000000 | Decimal | Sets the time in seconds the eat animation should play for. |
eat_mob_sound | not set | String | Sets the sound that should play when eating a mob. |
loot_table | not set | String | The loot table for loot to be dropped when eating a mob. |
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
pull_in_force | 1.000000 | Decimal | Sets the force which the mob-to-be-eaten is pulled towards the eating mob. |
reach_mob_distance | 1.000000 | Decimal | Sets the desired distance to be reached before eating the mob. |
run_speed | 1.000000 | Decimal | Sets the entity's speed when running toward the target. |
Vanilla entities examples
frog
"minecraft:behavior.eat_mob": {
"priority": 7,
"run_speed": 2.0,
"eat_animation_time": 0.30,
"pull_in_force": 0.75,
"reach_mob_distance": 1.75,
"eat_mob_sound": "tongue",
"loot_table": "loot_tables/entities/frog.json"
}
Vanilla entities using eat_mob
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示