跳转至

Breedable

文档版本:1.21.0.24

Defines the way an entity can get into the love state.

架构

breedable:
{
  boolean "allow_sitting" : opt
  boolean "blend_attributes" : opt
  number "breed_cooldown" : opt
  array "breed_items" : opt
  {
    descriptor "<any array element>"
  }
  descriptor "breed_items"
  object "breeds_with" : opt
  {
    string "baby_type" : opt
    event_object "breed_event"
    string "mate_type" : opt
  }
  array "breeds_with" : opt
  {
    object "<any array element>" : opt
    {
    }
  }
  boolean "causes_pregnancy" : opt
  object "deny_parents_variant" : opt
  {
    number "chance" : opt
    integer "max_variant" : opt
    integer "min_variant" : opt
  }
  object "environment_requirements" : opt
  {
    array "blocks" : opt
    {
      reference "<any array element>"
    }
    reference "blocks"
    number "count" : opt
    number "radius" : opt
  }
  array "environment_requirements" : opt
  {
    object "<any array element>" : opt
    {
    }
  }
  number "extra_baby_chance" : opt
  filters "love_filters"
  object "mutation_factor" : opt
  {
    number "color" : opt
    number "extra_variant" : opt
    number "variant" : opt
  }
  string "mutation_strategy" : opt
  array "parent_centric_attribute_blending" : opt
  vector_of_2_items "random_extra_variant_mutation_interval"
  vector_of_2_items "random_variant_mutation_interval"
  boolean "inherit_tamed" : opt
  boolean "require_full_health" : opt
  boolean "require_tame" : opt
  string "transform_to_item" : opt
}
allow_sittingboolean
If true, entities can breed while sitting.
blend_attributesboolean
If true, the entities will blend their attributes in the offspring after they breed.
breed_cooldownnumber
Time in seconds before the Entity can breed again.
breed_itemsarray
The list of items that can be used to get the entity into the love state.
breed_items
<any array element>descriptor
An item that can be used to get the entity into the love state.
identifier:
string
descriptor:
{
  identifier "item"
  object "item" : opt
  {
  }
  0 "tags"
  string "item_tag" : opt
}
itemidentifier
itemobject
An object that describes an item.
item
tags0
[UNDOCUMENTED] A Molang expression ran against item or block to match.
0:
string
item_tagstring
[UNDOCUMENTED] A tag to lookup item or block by.
descriptor:
{
  identifier "item"
  object "item" : opt
  {
    identifier "item"
    object "item" : opt
    {
    }
    0 "tags"
    string "item_tag" : opt
  }
}
itemidentifier
itemobject
An object that describes an item.
item
breed_itemsdescriptor
The list of items that can be used to get the entity into the love state.
breeds_withobject
An entity definitions that this entity can breed with.
breeds_with
baby_typestring
The entity definition of this entity's babies.
breed_eventevent_object
Event to run when this entity breeds.
event_object:
{
  string "event" : opt
  string "target" : opt
  filters "filters"
}
eventstring
The event to fire.
targetstring
The target of the event.
filtersfilters
一个过滤器组
mate_typestring
The entity definition of this entity's mate.
breeds_witharray
The list of entity definitions that this entity can breed with.
breeds_with
<any array element>object
An entity definitions that this entity can breed with.
<any array element>
causes_pregnancyboolean
If true, the entity will become pregnant instead of spawning a baby.
deny_parents_variantobject
Determines how likely the baby of parents with the same variant will deny that variant and take a random variant within the given range instead.
deny_parents_variant
chancenumber
The percentage chance of denying the parents` variant.
max_variantinteger
The inclusive maximum of the variant range.
min_variantinteger
The inclusive minimum of the variant range.
environment_requirementsobject
A nearby block requirements to get the entity into the love state.
environment_requirements
blocksarray
The block types required nearby for the entity to breed.
blocks
<any array element>reference
A block type required nearby for the entity to breed.
identifier:
string
reference:
{
  identifier "name"
  object "states" : opt
  {
    ['boolean', 'integer', 'string'] "\w*:?\w+" : opt
  }
  0 "tags"
}
nameidentifier
statesobject
states
\w*:?\w+['boolean', 'integer', 'string']
The key of property is the name of the block state/property, the value must be the same as the block properties accepted values.
tags0
A condition using Molang queries that results to true/false that can be used to query for blocks with certain tags.
blocksreference
A block type required nearby for the entity to breed.
countnumber
The number of the required block types nearby for the entity to breed.
radiusnumber
How many blocks radius from the mob's center to search in for the required blocks. Bounded between 0 and 16.
environment_requirementsarray
The list of nearby block requirements to get the entity into the love state.
environment_requirements
<any array element>object
A nearby block requirements to get the entity into the love state.
<any array element>
extra_baby_chancenumber
Chance that up to 16 babies will spawn between 0.0 and 1.0, where 1.0 is 100%.
love_filtersfilters
一个过滤器组。The filters to run when attempting to fall in love.
mutation_factorobject
Determines how likely the babies are to NOT inherit one of their parent's variances. Values are between 0.0 and 1.0, with a higher number meaning more likely to mutate.
mutation_factor
colornumber
The percentage chance of a mutation on the entity's color.
extra_variantnumber
The percentage chance of a mutation on the entity's extra variant type.
variantnumber
The percentage chance of a mutation on the entity's variant type.
mutation_strategystring
Strategy used for mutating variants and extra variants for offspring. Current valid alternatives are 'random' and 'none'.
parent_centric_attribute_blendingarray
[EXPERIMENTAL] List of attributes that should benefit from parent centric attribute blending. For example, horses blend their health, movement, and jump_strength in their offspring.
parent_centric_attribute_blending
random_extra_variant_mutation_intervalvector_of_2_items
Range used to determine random extra variant.
vector_of_2_items:
array
{
  number "0..0" : opt
  number "1..1" : opt
}
0..0number
The X component.
1..1number
The Y component.
random_variant_mutation_intervalvector_of_2_items
Range used to determine random variant.
inherit_tamedboolean
If true, the babies will be automatically tamed if its parents are.
require_full_healthboolean
If true, the entity needs to be at full health before it can breed.
require_tameboolean
If true, the entities need to be tamed first before they can breed.
transform_to_itemstring
The feed item used will transform to this item upon successful interaction. Format: itemName:auxValue