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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for