Entity Documentation - minecraft:behavior.panic
minecraft:behavior.panic
compels an entity to react when it receives damage.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
damage_sources | all | List | The list of Entity Damage Sources that will cause this mob to panic. |
force | false | Boolean | If true, this mob will not stop panicking until it can't move anymore or the goal is removed from it. |
ignore_mob_damage | false | Boolean | If true, the mob will not panic in response to damage from other mobs. This overrides the damage types in "damage_sources." |
panic_sound | not set | String | Sound to play when event occurs. |
prefer_water | false | Boolean | If true, the mob will prefer water over land. |
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
sound_interval | 0 | Range [a, b] | The range of time in seconds to randomly wait before playing the sound again. |
speed_multiplier | 1.0 | Decimal | Movement speed multiplier of the mob when using this AI Goal. |
Example
"minecraft:behavior.panic":{
"priority": 2,
"prefer_water": true,
"speed_multiplier": 1.5,
"ignore_mob_damage": true,
"force": true
}
Vanilla entities examples
chicken
"minecraft:behavior.panic": {
"priority": 0,
"prefer_water": true,
"speed_multiplier": 1.2
}
Vanilla entities using minecraft:behavior.panic
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示