Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Enables the mob to barter for items that have been configured as barter currency. Must be used in combination with the barter component.
Note
Requires the minecraft:barter
component and barter_table
loot table in order to work properly.
Barter Behavior Properties
Name | Default Value | Type | Description | Example Values |
---|---|---|---|---|
priority | not set | Integer number | As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. | Piglin: 3 |
Samples
Piglin
"minecraft:behavior.barter": {
"priority": 3
}