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
}