跳转至

Trade Interest

文档版本:1.21.0.24

Allows the mob to look at a player that is holding a tradable item.

架构

trade_interest:
{
  priority "priority"
  number "carried_item_switch_time" : opt
  number "cooldown" : opt
  number "interest_time" : opt
  number "remove_item_time" : opt
  number "within_radius" : opt
}
prioritypriority
priority:
integer
carried_item_switch_timenumber
The Maximum time in seconds that the trader will hold an item before attempting to switch for a different item that takes the same trade.
cooldownnumber
The time in seconds before the trader can use this goal again.
interest_timenumber
The Maximum time in seconds that the trader will be interested with showing it's trade items.
remove_item_timenumber
The Maximum time in seconds that the trader will wait when you no longer have items to trade.
within_radiusnumber
Distance in blocks this mob can be interested by a player holding an item they like.