Entity Documentation - minecraft:behavior.hide
minecraft:behavior.hide
compels a mob with the hide
component to attempt to move to an owned or nearby point of interest (POI) and hide there.
Important
minecraft:behavior.hide
requires a point of interest to be set in order to work properly.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
duration | 1.0 | Decimal | Amount of time in seconds that the mob reacts. |
poi_type | not set | String | Defines what POI type to hide at. |
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
speed_multiplier | 1.0 | Decimal | Movement speed multiplier of the mob when using this AI Goal |
timeout_cooldown | 8.0 | Decimal | The cooldown time in seconds before the goal can be reused after a internal failure or timeout condition. |
Example
"minecraft:behavior.hide":{
"priority": 2,
"speed_multiplier": 1.2,
"poi_type": "bed",
"duration": 60.0,
"timeout_cooldown": 8.0
}
Vanilla entities examples
villager_v2
"minecraft:behavior.hide": {
"priority": 0,
"speed_multiplier": 0.8,
"poi_type": "bed",
"duration": 30.0
}
Vanilla entities using minecraft:behavior.hide
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示