跳转至

Tameable

文档版本:1.21.0.24

Defines the rules for a mob to be tamed by the player.

架构

tameable:
{
  number "probability" : opt
  event_object "tame_event"
  array "tame_items" : opt
  {
    identifier "<any array element>"
  }
  identifier "tame_items"
}
probabilitynumber
The chance of taming the entity with each item use between 0.0 and 1.0, where 1.0 is 100%
tame_eventevent_object
Event to run when this entity becomes tamed.
event_object:
{
  filters "filters"
  string "event" : opt
  string "target" : opt
}
filtersfilters
一个过滤器组
eventstring
The event to fire.
targetstring
The target of the event.
tame_itemsarray
The list of items that can be used to tame this entity.
tame_items
<any array element>identifier
identifier:
string
tame_itemsidentifier
The list of items that can be used to tame this entity.