Entity Documentation - minecraft:behavior.pet_sleep_with_owner
minecraft:behavior.pet_sleep_with_owner
compels an entity to sleep on a bed shared with its sleeping owner.
Note
minecraft:behavior.pet_sleep_with_owner
requires a player
to be tagged as the entity's owner, via taming or console command.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
goal_radius | 0.5 | Decimal | Distance in blocks within the mob considers it has reached the goal. This is the "wiggle room" to stop the AI from bouncing back and forth trying to reach a specific spot. |
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
search_height | 1 | Integer | Height in blocks from the owner the pet can be to sleep with owner. |
search_radius | 10 | Integer | The radius that the mob will search for an owner to curl up with. |
search_range | 10 | Integer | The range that the mob will search for an owner to curl up with. |
speed_multiplier | 1.0 | Decimal | Movement speed multiplier of the mob when using this AI Goal. |
Example
"minecraft:behavior.pet_sleep_with_owner":{
"priority": 2,
"search_range": 8,
"cooldown_time":10,
"speed_multiplier":3
}
Vanilla entities examples
cat
"minecraft:behavior.pet_sleep_with_owner": {
"priority": 2,
"speed_multiplier": 1.2,
"search_radius": 10,
"search_height": 10,
"goal_radius": 1.0
}
Vanilla entities using minecraft:behavior.pet_sleep_with_owner
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈