Developers
Landing Page
Custom Bees
Custom Bees
  • Creating A Custom Bee
    • The Custom Bee JSON
    • Core Data
    • Render Data
      • Layer Data
      • Color Data
    • Breed Data
      • Bee Family
    • Combat Data
    • Mutation Data
      • Mutation Recipe
        • Mutation Type
    • Trait Data
      • Bee Aura
      • Potion Effect
      • Damage Effect
      • Damage Type
    • Trade Data
Powered by GitBook
On this page
  • Identifier
  • Customization Options
  • isPassive
  • removeStingerOnAttack
  • inflictsPoison
  • isInvulnerable
  • attributes

Was this helpful?

Edit on GitHub
Export as PDF
  1. Creating A Custom Bee

Combat Data

The combat customization component is responsible for defining a bee's survival ability and hostility:

  • Is the bee passive?

  • Does it lose its stinger after attacking?

  • Does it inflict poison?

  • Can it take damage?

  • General attributes of the entity such as:

    • Max health

    • Armor

    • Attack damage

    • Knockback

    • Any registered attribute vanilla or modded can be customized

Template:
"resourcefulbees:combat/v1": {
  "removeStingerOnAttack": false,
  "inflictsPoison": false,
  "attributes": {
    "generic.attack_damage": 0,
    "generic.max_health": 2,
    "generic.armor": 5,
    "generic.armor_toughness": 10,
    "generic.attack_knockback": 3
  }
}

Identifier


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

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

The identifier of the component is as such:

resourcefulbees:combat/v1

Customization Options


isPassive

When true, the bee will not attack entities back.


Name: Passive

Key: isPassive

Type: Boolean

Default: false

Example
"resourcefulbees:combat/v1": {
  "isPassive": true
}

removeStingerOnAttack

When true, the bees stinger will be removed on attack. If a bees stinger is removed, it has a chance of randomly dying a bit after the stinger was removed.


Name: Remove Stinger

Key: removeStingerOnAttack

Type: Boolean

Default: true

Example
"resourcefulbees:combat/v1": {
  "removeStingerOnAttack": false
}

inflictsPoison

When true, the targeted entity will be inflicted with poison when attacked.


Name: Inflict Poison

Key: inflictsPoison

Type: Boolean

Default: true

Example
"resourcefulbees:combat/v1": {
  "inflictsPoison": false
}

isInvulnerable

When true, the bee will not take any damage.


Name: Invulnerable

Key: isInvulnerable

Type: Boolean

Default: false

Example
"resourcefulbees:combat/v1": {
  "attributes": {
    "generic.attack_damage": 0,
    "generic.max_health": 2,
    "generic.armor": 5,
    "generic.armor_toughness": 10,
    "generic.attack_knockback": 3
  }
}

attributes


Name: Invulnerable

Key: attributes

Default:

"generic.max_health": 10,
"generic.flying_speed": 0.6,
"generic.movement_speed": 0.3,
"generic.attack_damage": 1,
"generic.follow_range": 48,
"generic.armor": 0,
"generic.armor_toughness": 0,
"generic.attack_knockback": 0
Example
"resourcefulbees:combat/v1": {
  "attributes": {
    "generic.attack_damage": 0,
    "generic.max_health": 2,
    "generic.armor": 5,
    "generic.armor_toughness": 10,
    "generic.attack_knockback": 3
  }
}

PreviousBee FamilyNextMutation Data

Last updated 1 year ago

Was this helpful?

A map of and their values. The keys are the Attribute ID's and the values are the attribute value.

Type: Map<, Double>

attributes
Attribute