Breedable¶
文档版本:1.21.50.25
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_sitting:boolean- If true, entities can breed while sitting.
blend_attributes:boolean- If true, the entities will blend their attributes in the offspring after they breed.
breed_cooldown:number- Time in seconds before the Entity can breed again.
breed_items:array- The list of items that can be used to get the entity into the
lovestate.
breed_items<any array element>:descriptor- An item that can be used to get the entity into the
lovestate.
item:identifier
item:object- An object that describes an item.
itemtags:0- [UNDOCUMENTED] A Molang expression ran against item or block to match.
item_tag:string- [UNDOCUMENTED] A tag to lookup item or block by.
breed_items:descriptor- The list of items that can be used to get the entity into the
lovestate.
breeds_with:object- An entity definitions that this entity can breed with.
breeds_withbaby_type:string- The entity definition of this entity's babies.
breed_event:event_object- Event to run when this entity breeds.
mate_type:string- The entity definition of this entity's mate.
breeds_with:array- 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_pregnancy:boolean- If true, the entity will become pregnant instead of spawning a baby.
deny_parents_variant:object- 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_variantchance:number- The percentage chance of denying the parents` variant.
max_variant:integer- The inclusive maximum of the variant range.
min_variant:integer- The inclusive minimum of the variant range.
environment_requirements:object- A nearby block requirements to get the entity into the
lovestate.
environment_requirementsblocks:array- 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.
reference:
{
identifier "name"
object "states" : opt
{
['boolean', 'integer', 'string'] "\w*:?\w+" : opt
}
0 "tags"
}
name:identifier
states:object
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.
tags:0- A condition using Molang queries that results to true/false that can be used to query for blocks with certain tags.
blocks:reference- A block type required nearby for the entity to breed.
count:number- The number of the required block types nearby for the entity to breed.
radius:number- How many blocks radius from the mob's center to search in for the required blocks. Bounded between 0 and 16.
environment_requirements:array- The list of nearby block requirements to get the entity into the
lovestate.
environment_requirements<any array element>:object- A nearby block requirements to get the entity into the
lovestate.
<any array element>extra_baby_chance:number- Chance that up to 16 babies will spawn between 0.0 and 1.0, where 1.0 is 100%.
love_filters:filters- 一个过滤器组。The filters to run when attempting to fall in love.
mutation_factor:object- 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_factorcolor:number- The percentage chance of a mutation on the entity's color.
extra_variant:number- The percentage chance of a mutation on the entity's extra variant type.
variant:number- The percentage chance of a mutation on the entity's variant type.
mutation_strategy:string- Strategy used for mutating variants and extra variants for offspring. Current valid alternatives are 'random' and 'none'.
parent_centric_attribute_blending:array- [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_blendingrandom_extra_variant_mutation_interval:vector_of_2_items- Range used to determine random extra variant.
0..0:number- The X component.
1..1:number- The Y component.
random_variant_mutation_interval:vector_of_2_items- Range used to determine random variant.
inherit_tamed:boolean- If true, the babies will be automatically tamed if its parents are.
require_full_health:boolean- If true, the entity needs to be at full health before it can breed.
require_tame:boolean- If true, the entities need to be tamed first before they can breed.
transform_to_item:string- The feed item used will transform to this item upon successful interaction. Format: itemName:auxValue