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
"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
isPassive
When true
, the bee will not attack entities back.
removeStingerOnAttack
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.
inflictsPoison
inflictsPoison
When true
, the targeted entity will be inflicted with poison when attacked.
isInvulnerable
isInvulnerable
When true
, the bee will not take any damage.
attributes
attributes
A map of attributes and their values. The keys are the Attribute ID's and the values are the attribute value.
Last updated
Was this helpful?