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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈