Trade Interest¶
文档版本:1.21.50.25
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
}
priority
:priority
carried_item_switch_time
:number- 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.
cooldown
:number- The time in seconds before the trader can use this goal again.
interest_time
:number- The Maximum time in seconds that the trader will be interested with showing it's trade items.
remove_item_time
:number- The Maximum time in seconds that the trader will wait when you no longer have items to trade.
within_radius
:number- Distance in blocks this mob can be interested by a player holding an item they like.