跳转至

minecraft:barter

文档版本:1.21.0.24

Enables the component to drop an item as a barter exchange.

架构

minecraft:barter:
{
  string "barter_table" : opt
  integer "cooldown_after_being_attacked" : opt
}
barter_tablestring
Loot table that's used to drop a random item.
cooldown_after_being_attackedinteger
Duration, in seconds, for which mob won't barter items if it was hurt.