Entity Documentation - minecraft:behavior.barter
minecraft:behavior.barter
compels an entity to drop an item in return after a player offers a trade by dropping a specific item near the entity.
Important
minecraft:behavior.barter
requires the following in order to work properly;
minecraft:barter
component.barter_table
loot table.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
Example
"minecraft:behavior.barter":{
"priority": 1
}
Vanilla entities examples
piglin
"minecraft:barter": {
"barter_table": "loot_tables/entities/piglin_barter.json",
"cooldown_after_being_attacked": 20
}
Vanilla entities using minecraft:behavior.barter
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示