minecraft:breedable¶
文档版本:1.21.0.24
Defines the way an entity can get into the 'love' state.
架构¶
minecraft:breedable:
{
boolean "allow_sitting" : opt
boolean "blend_attributes" : opt
number "blend_cooldown" : opt
array "breeds_with" : opt
{
object "<any array element>" : opt
{
string "baby_type" : opt
definition_trigger_no_condition "breed_event"
string "mate_type" : opt
}
}
boolean "causes_pregnancy" : opt
object "deny_parents_variant" : opt
{
number "chance" : opt
integer "max_variant" : opt
integer "min_variant" : opt
}
array "environment_requirements" : opt
{
object "<any array element>" : opt
{
block_descriptor "blocks"
integer "count" : opt
integer "radius" : opt
}
}
number "extra_baby_chance" : opt
boolean "inherit_tamed" : opt
entity_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
{
string "<any array element>" : opt
}
array "random_extra_variant_mutation_interval" : opt
{
integer "<any array element>" : opt
}
array "random_variant_mutation_interval" : opt
{
integer "<any array element>" : opt
}
boolean "require_full_health" : opt
boolean "require_tame" : opt
item_descriptor "transform_to_item"
}
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.
blend_cooldown
:number- Time in seconds before the Entity can breed again.
breeds_with
:array- The list of entity definitions that this entity can breed with.
breeds_with
<any array element>
:object
<any array element>
baby_type
:string- The entity definition of this entity's babies.
breed_event
:definition_trigger_no_condition- Event to run when this entity breeds.
event
:string
target
:string
mate_type
:string- The entity definition of this entity's mate.
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_variant
chance
: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
:array- The list of nearby block requirements to get the entity into the 'love' state.
environment_requirements
<any array element>
:object
<any array element>
blocks
:block_descriptor- The block types required nearby for the entity to breed.
block_descriptor:
{
string "name" : opt
object "states" : opt
{
string "<any object property>" : opt
integer "<any object property>" : opt
}
expression_node_string "tags"
}
name
:string
states
:object
states
<any object property>
:string
<any object property>
:integer
tags
:expression_node_string
count
:integer- The number of the required block types nearby for the entity to breed.
radius
:integer- How many blocks radius from the mob's center to search in for the required blocks. Bounded between 0 and 16.
extra_baby_chance
:number- Chance that up to 16 babies will spawn between 0.0 and 1.0, where 1.0 is 100%.
inherit_tamed
:boolean- If true, the babies will be automatically tamed if its parents are.
love_filters
:entity_filters- The filters to run when attempting to fall in love.
any_of
:sub_filter
sub_filter:
{
string "test" : opt
string "subject" : opt
string "operator" : opt
string "value" : opt
}
test
:string
subject
:string
operator
:string
value
:string
sub_filter:
array
{
object "<any array element>" : opt
{
string "test" : opt
string "subject" : opt
string "operator" : opt
string "value" : opt
}
}
<any array element>
:object
<any array element>
test
:string
subject
:string
operator
:string
value
:string
all_of
:sub_filter
none_of
:sub_filter
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_factor
color
: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_blending
<any array element>
:string
random_extra_variant_mutation_interval
:array- Range used to determine random extra variant.
random_extra_variant_mutation_interval
<any array element>
:integer
random_variant_mutation_interval
:array- Range used to determine random variant.
random_variant_mutation_interval
<any array element>
:integer
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
:item_descriptor- The breed item used will transform to this item upon successful interaction. Format: itemName:auxValue
<any object property>
:string