Entity Documentation - minecraft:behavior.open_door
minecraft:behavior.open_door
compels an entity to interact and open a door.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
close_door_after | true | Boolean | If true, the mob will close the door after opening it and going through it. |
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
Example
"minecraft:behavior.open_door":{
"priority": 2,
"close_door_after":true
}
Vanilla entities examples
villager
"minecraft:annotation.open_door": {
}
Vanilla entities using minecraft:behavior.open_door
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈