Bee Family

A bee family consists of four key pieces of information necessary for breeding a bee:

  • The first parent required

  • The second parent required

  • The weighting of how likely the child is to be selected among potential candidates

  • The chance the child is created if selected

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

Customization Options


weight

For all possible children these two parents can create how likely is it this one will be picked? Weight affects the result distribution among potential outcomes.

Calculating Weight Distributions:

A pair of parents has five different child options.

The weights are as follows:

Child 1: 20
Child 2: 10
Child 3: 30
Child 4: 60    
Child 5: 80

The chances each child has of being selected are as follows:

Child 1: 10%
Child 2: 5%
Child 3: 15%
Child 4: 30%
Child 5: 40%

To calculate the chance:

  1. Add up all the weights

  2. Divide the weight you wish to check by the total in step 1


Name: Weight

Key: weight

Type: Double

Range: ≥0.0

Default: 10

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

chance

Once this child has been chosen as the result type, what is the chance that it will be created?

Note: The value has a range of 0.0 - 1.0.

A value of 0.5 = a 50% chance of the child being created.


Name: Chance

Key: chance

Type: Double

Range: 0.0 - 1.0

Default: 1

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

parent1

The ID of the first parent.

If not provided family will be ignored!


Name: Parent 1

Key: parent1

Type: String

Default: 1

Required: If not provided family will be ignored.

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

parent2

The ID of the second parent.

If not provided family will be ignored!


Name: Parent 2

Key: parent2

Type: String

Default: 1

Required: If not provided family will be ignored.

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

Last updated