Entity Documentation - minecraft:behavior.leap_at_target
minecraft:behavior.leap_at_target
compels an entity to jump towards a target.
Important
minecraft:behavior.leap_at_target
requires a target in order to work properly. Target can be determined by using one of the following behaviors:
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
must_be_on_ground | true | Boolean | If true, the mob will only jump at its target if its on the ground. Setting it to false will allow it to jump even if its already in the air |
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
set_persistent | false | Boolean | Allows the entity to be set to persist upon targeting a player |
target_dist | 0.3 | Decimal | Distance in blocks the mob jumps when leaping at its target. |
yd | 0.0 | Decimal | Height in blocks the mob jumps when leaping at its target. |
Example
"minecraft:behavior.leap_at_target":{
"priority": 2,
"must_be_on_ground": true,
"set_persistent": false,
"yd": 1.0
}
Vanilla entities examples
spider
"minecraft:behavior.leap_at_target": {
"priority": 4,
"yd": 0.4,
"must_be_on_ground": false
}
Vanilla entities using minecraft:behavior.leap_at_target
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈