1. Wiki
  2. /实体
  3. /minecraft:offspring

minecraft:offspring

不想手写?在 GodCraft 里打开一个开关,就能帮你设置好 minecraft:offspring。Get GodCraft

概览

minecraft:offspring 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 控制两个这种实体繁殖时生下的幼崽:是哪种实体,以及从父母那里继承什么。请和繁殖组件一起使用。

字段

字段类型默认值说明
blend_attributesBoolean"true"为 true 时,幼崽会混合父母双方的属性,比如生命值。
deny_parents_variantJSON Object无两个同变种的父母生下的幼崽改为从某个范围中随机选择变种的概率。
inherit_tamedBoolean"true"为 true 时,已驯服父母的幼崽一出生就是驯服状态。
mutation_factorJSON Object无幼崽外观与父母不同的概率(0.0 到 1.0);数值越大惊喜越多。
offspring_pairsList无这个生物可以和哪些伴侣实体繁殖,以及每一对会生下什么幼崽。
parent_centric_attribute_blendingList无围绕父母数值进行混合的属性,比如马的速度和跳跃力。
property_inheritanceList无幼崽从父母那里复制的实体属性,并有一定概率发生变化。
random_extra_variant_mutation_intervalRange [a, b]"0"发生变异时用来随机选择额外变种的范围。
random_variant_mutation_intervalRange [a, b]"0"发生变异时用来随机选择变种的范围。

示例

写在 BP/entities/<name>.json 的 components 对象中(值为默认值或占位值):

BP/entities/<name>.json
{
  "minecraft:offspring": {
    "blend_attributes": "true",
    "deny_parents_variant": {},
    "inherit_tamed": "true",
    "mutation_factor": {},
    "offspring_pairs": {},
    "parent_centric_attribute_blending": {},
    "property_inheritance": {},
    "random_extra_variant_mutation_interval": "0"
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more