2021-10-08 12:59:03 +02:00
|
|
|
{
|
2021-10-08 13:04:13 +02:00
|
|
|
"$id": "blockception.minecraft.behavior.entities.minecraft.area_attack",
|
2021-10-08 12:59:03 +02:00
|
|
|
"type": "object",
|
2021-10-08 13:04:13 +02:00
|
|
|
"title": "Area Attack",
|
2021-10-08 12:59:03 +02:00
|
|
|
"description": "A component that does damage to entities that get within range.",
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"damage_per_tick": {
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"default": 2,
|
|
|
|
|
"description": "How much damage per tick is applied to entities that enter the damage range.",
|
|
|
|
|
"title": "Damage Per Tick"
|
|
|
|
|
},
|
|
|
|
|
"damage_range": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": 0.2,
|
|
|
|
|
"description": "How close a hostile entity must be to have the damage applied.",
|
|
|
|
|
"title": "Damage Range"
|
|
|
|
|
},
|
|
|
|
|
"entity_filter": {
|
|
|
|
|
"$ref": "../../filters/filters.json",
|
|
|
|
|
"description": "Filter to see which entities can be affected by the attack",
|
|
|
|
|
"title": "Entity Filter"
|
|
|
|
|
},
|
|
|
|
|
"cause": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "what causes the attack to occur",
|
|
|
|
|
"title": "Cause",
|
|
|
|
|
"$ref": "../../../../general/entity/damage_source.json"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|