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

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


Name: Invulnerable

Key: attributes

Type: Map<Attribute, Double>

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
  }
}

Last updated