手冊:minecraft:breedable

出自Minecraft基岩版开发Wiki
數據驅動 實體 > minecraft:breedable
minecraft:breedable
附加包元件
元件所屬
元件型別
元件ID
-1616430100
加入版本
?

控制一個實體在餵食之後進入love狀態。

模式[編輯]

object "minecraft:breedable": opt
{
bool "allow_sitting": opt
bool "blend_attributes": opt
int "breed_cooldown": opt
array "breed_items": opt
array "breeds_with": opt
{
  string "baby_type": opt
  string "breed_event": opt
  string "mate_type": opt
}
array "causes_pregnancy": opt
object "deny_parents_variant": opt
{
  int "chance": opt
  int "max_variant": opt
  int "min_variant": opt
}
object "environment_requirements": opt
[
  array "blocks": opt
  int "count": opt
  int "radius" <0-32> : opt
]
int "extra_baby_chance" <0.0-1.0> : opt
bool "inherit_tamed": opt
minecraft_filter "love_filters": opt
object "mutation_factor": opt
{
  int "color": opt
  int "extra_baby_chance" <0.0-1.0> : opt
  int "extra_variant": opt
  bool "inherit_tamed": opt
  int "variant": opt
}
string "mutation_strategy": opt
array "parent_centric_attribute_blending": opt
array "random_extra_variant_mutation_interval": opt
array "random_variant_mutation_interval": opt
bool "require_full_health": opt
bool "require_tame": opt
}

結構[編輯]

  •  minecraft:breedable:根物件。
    •  allow_sitting:如果為true,實體可以在坐着時繁殖。
    •  blend_attributes: 如果為true,則實體將在其後代中混合其屬性。
    •  breed_items:可用於使實體進入love狀態的項列表
    •  breed_cooldown:實體可以再次繁殖的CD時間(以秒為單位)
    •  breed_with:實體可以與可與之繁殖的實體進行定義的列表。
      •  baby_type: 實體嬰兒的實體定義。
      •  breed_event: 實體繁殖時要執行的事件。
      •  mate_type: 實體配偶的實體定義。
    •  causes_pregnancy:如果為true,則該實體將懷孕而不是生成子嗣。
    •  deny_parents_variant:確定具有相同變體的父母的嬰兒拒絕該變體並在給定範圍內採用隨機變體的可能性。
      •  chance: 拒絕父母變體的百分比機率。
      •  min_variant: 變體範圍的包含最小值。
      •  max_variant: 變體範圍的包含最大值。
    •  environment_requirements
      •  blocks: 實體繁殖所需的附近區塊型別。
      •  count: 實體繁殖所需的附近塊型別的數量。
      •  radius: 從生物中心開始方圓多少方塊,以搜尋所需的方塊。邊界介於0和16之間。
    •  extra_baby_chance:在 0.0 到 1.0 之間,最多生成 16 個嬰兒的機率,其中 1.0 是 100%。
    •  inherit_tamed:如果是true,被馴服的父母的嬰兒將被自動馴服。
    •  love_filters:嘗試love時要執行的過濾器。
    •  mutation_factor
      •  color: 實體顏色發生突變的百分比機率。
      •  extra_baby_chance: 在0.0到1.0之間,最多生成16個嬰兒的機率,其中1.0是100%。
      •  extra_variant: 實體的額外變體型別發生突變的百分比機率。
      •  inherit_tamed: 如果是true,被馴服的父母的嬰兒將被自動馴服。
      •  variant: 實體的變型型別發生突變的百分比機率。
    •  mutation_strategy:用於突變變體和後代額外變體的策略。目前有效的替代方案是「隨機」和「無」。
    •  parent_centric_attribute_blending:[實驗性]應從以父級為中心的屬性混合中受益的屬性列表。例如,馬在後代中融合了他們的生命值、速度和跳躍能力。
    •  random_variant_mutation_interval:用於確定隨機變體的範圍。
    •  random_extra_variant_mutation_interval:用於確定隨機額外變體的範圍。
    •  require_full_health:如果為true,則實體需要處於生命值滿的狀態才能繁殖。
    •  require_tame:如果為true,則實體需要被馴服才能繁殖。

範例[編輯]

字串型
"minecraft:breedable": {
    "breed_items": [
        "golden_carrot",
        "carrot",
        "yellow_flower"
    ],
    "breeds_with": {
        "mate_type": "minecraft:rabbit",
        "baby_type": "minecraft:rabbit"
    },
    "require_tame": false,
    "mutation_factor": {
        "variant": 0.2
    }
}