Attack
The actor entity will damage the target enemy as if they had just been hit with the weapon in the actors hand.
Type ID: ra_additions:attack
Fields
| Field | Type | Default | Description |
|---|---|---|---|
source |
Damage Source Description | optional | |
damage_type |
Damage Type | optional | |
allow_enchants |
Boolean | optional | Should enchantments be taken into account in the attack. |
allow_weapons |
Boolean | optional | Should weapons/tools be taken into account in the attack. |
allow_effects |
Boolean | optional | Should effects be taken into account in the attack. |
allow_attributes |
Boolean | optional | Should attributes be taken into account in the attack. |
Example
{
"type": "ra_additions:attack",
"allow_enchants": true,
"allow_weapons": true,
"allow_effects": true,
"allow_attributes": true,
"source": {
"name": "player",
"bypasses_armor": true
}
}
This example will attack the target using the targets weapons, enchants, status effects and attributes, whilst ignoring the targets armour.