Entity Documentation - minecraft:behavior.trade_with_player
minecraft:behavior.trade_with_player
compels the entity to stop moving and trade with the player.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
priority | not set | Integer | Conditions that need to be met for the behavior to start. |
filters | -- | Minecraft filter | The higher the priority, the sooner this behavior will be executed as a goal. |
max_distance_from_player | 8.00 | Decimal | The max distance that the mob can be from the player before exiting the goal. |
Example
"minecraft:behavior.trade_with_player":{
"priority": 1
}
Vanilla entities examples
wandering_trader
"minecraft:behavior.trade_with_player": {
"priority": 1
}
Vanilla entities using minecraft:behavior.trade_with_player
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈