Entity Documentation - minecraft:behavior.go_and_give_items_to_owner
minecraft:behavior.go_and_give_items_to_owner
compels the entity to attempt to toss the items from its inventory to its owner.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
on_item_throw | not set | Trigger | Event(s) to run when this mob throws items. |
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
reach_mob_distance | 3.000000 | Decimal | Sets the desired distance to be reached before giving items to owner. |
run_speed | 1.000000 | Decimal | Sets the entity's speed when running toward the owner. |
throw_force | 0.200000 | Decimal | Sets the throw force. |
throw_sound | item_thrown | String | Sound to play when this mob throws an item. |
vertical_throw_mul | 1.500000 | Decimal | Sets the vertical throw multiplier that is applied on top of the throw force in the vertical direction. |
Example
"minecraft:behavior.go_and_give_items_to_owner": {
"priority": 4,
"run_speed": 8,
"throw_sound": "item_thrown",
"on_item_throw": [
{
"event": "pickup_item_delay",
"target": "self"
}
]
}
Vanilla entities example
allay
"minecraft:behavior.go_and_give_items_to_owner": {
"priority": 4,
"run_speed": 8,
"throw_sound": "item_thrown",
"on_item_throw": [
{
"event": "pickup_item_delay",
"target": "self"
}
]
}
Vanilla entities using minecraft:behavior.go_and_give_items_to_owner
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈