Breeding Conditions (Data Type) - MerchantCalico/bovines-and-buttercups-archive GitHub Wiki
An Object that defines the conditions at which two cows need to be bred under to produce a newborn of this cow type.
The `radius`, `predicates`, and `includes_associated_blocks` fields are deprecated as of v1.3.0 and could be removed at any time, please avoid using them if necessary.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
radius |
[Float](/MerchantCalico/bovines-and-buttercups-archive/wiki/Float-(Data-Type)) | 6.0 |
The radius at which the predicates and includes_associated_blocks fields will check for blocks. This is a deprecated field and should be avoided. |
condition |
[Entity Condition](/MerchantCalico/bovines-and-buttercups-archive/wiki/Entity-Condition-Types-(Datapacking)) | optional | A condition to check for with the parent entity giving birth to the child. If not set, the check will be performed only on the other_condition field or fallback to the predicates and includes_associated_blocks fields. |
other_condition |
[Entity Condition](/MerchantCalico/bovines-and-buttercups-archive/wiki/Entity-Condition-Types-(Datapacking)) | optional | A condition to check for with the other parent. If not set, the check will be performed only on the condition field or fallback to the predicates and includes_associated_blocks fields. |
predicates |
[Array](/MerchantCalico/bovines-and-buttercups-archive/wiki/Array-(Data-Type)) of [Block Predicates](/MerchantCalico/bovines-and-buttercups-archive/wiki/Block-Predicates-(Data-Type)) | optional | A list of blocks to check for with an operator for each field. |
includes_associated_blocks |
[Boolean](/MerchantCalico/bovines-and-buttercups-archive/wiki/Boolean-(Data-Type)) | true |
If using the predicates field, whether this Moobloom/Mooshroom's associated blocks (Flower/Potted Flower and Mushroom/Mushroom Block/Potted Mushroom respectively) should allow the baby to be set to this type. |
Example
"breeding_conditions": {
"condition": {
"type": "bovinesandbuttercups:or",
"conditions": [
{
"type": "bovinesandbuttercups:blocks_in_radius",
"radius": 6.0,
"offset": [
0,
4,
0
],
"block_conditions": [
{
"type": "bovinesandbuttercups:block_state",
"state": {
"Name": "minecraft:rose_bush",
"Properties": {
"half": "upper"
}
}
},
{
"type": "bovinesandbuttercups:or",
"conditions": [
{
"type": "bovinesandbuttercups:block_location",
"location": "minecraft:cornflower"
},
{
"type": "bovinesandbuttercups:block_location",
"location": "minecraft:potted_cornflower"
}
]
},
{
"type": "bovinesandbuttercups:or",
"conditions": [
{
"type": "bovinesandbuttercups:block_location",
"location": "minecraft:dark_oak_log"
},
{
"type": "bovinesandbuttercups:block_location",
"location": "minecraft:dark_oak_wood"
},
{
"type": "bovinesandbuttercups:block_location",
"location": "minecraft:dark_oak_sapling"
},
{
"type": "bovinesandbuttercups:block_location",
"location": "minecraft:potted_dark_oak_sapling"
}
]
}
]
},
{
"type": "bovinesandbuttercups:blocks_in_radius",
"radius": 6.0,
"offset": [
0,
4,
0
],
"block_conditions": [
{
"type": "bovinesandbuttercups:or",
"conditions": [
{
"type": "bovinesandbuttercups:block_location",
"location": "bovinesandbuttercups:hyacinth"
},
{
"type": "bovinesandbuttercups:block_location",
"location": "bovinesandbuttercups:potted_hyacinth"
}
]
}
]
}
]
}
}
This Breeding Conditions is defined to work when the main parent entity is near the top of a Rose Bush, a Cornflower or Potted Cornflower, and a Dark Oak Wood, Dark Oak Log, Dark Oak Sapling or a Potted Dark Oak Sapling within a radius of 6.0 or if the entity is near a Hyacinth or a Potted Hyacinth within a radius of 6.0.