Entity Documentation - minecraft:behavior.dig
minecraft:behavior.dig
compels the entity to dig into the ground before despawning.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
allow_dig_when_named | false | Boolean | If true, this behavior can run when this entity is named. Otherwise not. |
digs_in_daylight | false | Boolean | Indicates that the entity should start digging when it sees daylight |
duration | 0.0 | Decimal | Goal duration in seconds |
idle_time | Decimal | The minimum idle time in seconds between the last detected disturbance to the start of digging. | |
on_start | not set | Trigger | Event(s) to run when the goal starts. |
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
suspicion_is_disturbance | false | Boolean | If true, finding new suspicious locations count as disturbances that may delay the start of this goal. |
vibration_is_disturbance | false | Boolean | If true, vibrations count as disturbances that may delay the start of this goal. |
on_start | not set | Trigger | Event(s) to run when the goal starts. |
Vanilla entities examples
warden
"minecraft:behavior.dig": {
"priority": 1,
"duration": 5.5,
"idle_time": 60.0,
"vibration_is_disturbance": true,
"suspicion_is_disturbance": true,
"digs_in_daylight": false
}
Vanilla entities using dig
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈