Pickup Items¶
文档版本:1.21.50.25
Allows the mob to pick up items on the ground.
架构¶
pickup_items:
{
  priority "priority"
  speed_multiplier "speed_multiplier"
  boolean "can_pickup_any_item" : opt
  boolean "can_pickup_to_hand_or_equipment" : opt
  number "cooldown_after_being_attacked" : opt
  array "excluded_items" : opt
  {
    descriptor "<any array element>"
  }
  number "goal_radius" : opt
  number "max_dist" : opt
  number "search_height" : opt
  boolean "pickup_based_on_chance" : opt
  boolean "pickup_same_items_as_in_hand" : opt
  boolean "track_target" : opt
}
- priority:priority
- speed_multiplier:speed_multiplier
- can_pickup_any_item:boolean
- If true, the mob can pickup any item.
- can_pickup_to_hand_or_equipment:boolean
- If true, the mob can pickup items to its hand or armor slots.
- cooldown_after_being_attacked:number
- Amount of time an offended entity needs before being willing to pick up items.
- excluded_items:array
- List of items this mob will not pick up.
excluded_items- <any array element>:descriptor
- item:identifier
- item:object
- An object that describes an item.
item- tags:0
- [UNDOCUMENTED] A Molang expression ran against item or block to match.
- item_tag:string
- [UNDOCUMENTED] A tag to lookup item or block by.
- goal_radius:number
- Distance in blocks within the mob considers it has reached the goal. This is the wiggle roomto stop the AI from bouncing back and forth trying to reach a specific spot.
- max_dist:number
- Maximum distance this mob will look for items to pick up.
- search_height:number
- Height in blocks the mob will look for items to pick up.
- pickup_based_on_chance:boolean
- If true, depending on the difficulty, there is a random chance that the mob may not be able to pickup items.
- pickup_same_items_as_in_hand:boolean
- If true, the mob will pickup the same item as the item in its hand.
- track_target:boolean
- If true, this mob will chase after the target as long as it's a valid target.