Breed Data

The breeding customization component is responsible for defining relationships between bees. Bees can have many different breeding relationships.

Template:
"resourcefulbees:breeding/v1": {
  "feedAmount": 2,
  "childGrowthDelay": -45000,
  "breedDelay": 2400,
  "parents": [
    {
      "parent1": "diamond",
      "parent2": "coal",
      "weight": 75.0,
      "chance": 0.67
    },
    {
      "parent1": "diamond",
      "parent2": "diamond",
      "weight": 24.0,
      "chance": 0.67
    }
  ],
  "feedItem": [
    "minecraft:poppy",
    "minecraft:carrot"
  ],
  "feedReturnItem": {
    "id": "minecraft:bucket",
    "count": 1,
    "nbt": {
      "this_is": "an_nbt_tag"
    }
  }
}

Identifier


The root JSON of the breeding customization component looks like this:

"resourcefulbees:breeding/v1": {
    ...
}

The identifier of the component is as such:

resourcefulbees:breeding/v1

Customization Options


parents

A list of bee pairs that can be used to breed this bee.


Name: Parents

Key: parents

Type: BeeFamily[]

Default: Empty List

Example
"resourcefulbees:breeding/v1": {
  "parents": [
    {
      "parent1": "diamond",
      "parent2": "coal",
      "weight": 75.0,
      "chance": 0.67
    }
  ]
}

feedItem

The item(s) which can be fed to the bee to trigger its love state.

Note: This value only applies when this bee is being used to breed another bee


Name: Feed Item

Key: feedItem

Default: minecraft:poppy

"resourcefulbees:breeding/v1": {
  "feedItem": "#minecraft:candles"
}

feedReturnItem

Item returned to the player after the feed item has been consumed. Useful for returning container-like items after consuming the contents.

Note: This value only applies when this bee is being used to breed another bee


Name: Feed Return Item

Key: feedReturnItem

Type: ItemStack

Default: Optional

Example
"resourcefulbees:breeding/v1": {
  "feedReturnItem": {
    "id": "minecraft:bucket",
    "count": 1,
    "nbt": {
      "this_is": "an_nbt_tag"
    }
  }
}

feedAmount

The amount of feed items required to be given to the bee to trigger its love state.

Note: This value only applies when this bee is being used to breed another bee


Name: Feed Return Item

Key: feedAmount

Type: Integer

Range: ≥1

Default: 1

Example
"resourcefulbees:breeding/v1": {
  "feedAmount": 2
}

childGrowthDelay

The time in ticks that a baby bee will stay a baby bee.


Name: Child Growth Delay

Key: childGrowthDelay

Type: Integer

Range: ≤0

Default: -24000

Example
"resourcefulbees:breeding/v1": {
  "childGrowthDelay": -45000
}

breedDelay

The time in ticks until the bee's love state can be triggered again.


Name: Breed Delay

Key: breedDelay

Type: Integer

Range: ≥1

Default: 6000

Example
"resourcefulbees:breeding/v1": {
  "breedDelay": 2400
}

Last updated