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": {
|
2022-12-07 10:40:43 +01:00
|
|
|
"cause": {
|
|
|
|
|
"title": "Cause",
|
|
|
|
|
"$ref": "../../../../general/entity/damage_source.json",
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "The type of damage that is applied to entities that enter the damage range."
|
|
|
|
|
},
|
|
|
|
|
"damage_cooldown": {
|
2024-06-29 00:06:53 +05:00
|
|
|
"title": "Damage Cooldown",
|
2022-12-07 10:40:43 +01:00
|
|
|
"type": "number",
|
|
|
|
|
"default": 0,
|
|
|
|
|
"description": "Attack cooldown (in seconds) for how often this entity can attack a target."
|
|
|
|
|
},
|
2021-10-08 12:59:03 +02:00
|
|
|
"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",
|
2022-12-07 10:40:43 +01:00
|
|
|
"description": "The set of entities that are valid to apply the damage to when within range.",
|
2021-10-08 12:59:03 +02:00
|
|
|
"title": "Entity Filter"
|
|
|
|
|
},
|
2022-12-07 10:40:43 +01:00
|
|
|
"play_attack_sound": {
|
2024-06-29 00:06:53 +05:00
|
|
|
"title": "Play Attack Sound",
|
2022-12-07 10:40:43 +01:00
|
|
|
"type": "boolean",
|
|
|
|
|
"default": 4.94066e-324,
|
|
|
|
|
"description": "If the entity should play their attack sound when attacking a target."
|
2021-10-08 12:59:03 +02:00
|
|
|
}
|
2021-10-11 18:10:42 +02:00
|
|
|
},
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"damage_per_tick": 2,
|
|
|
|
|
"damage_range": 0.2,
|
|
|
|
|
"cause": "example"
|
|
|
|
|
}
|
|
|
|
|
]
|
2021-10-08 12:59:03 +02:00
|
|
|
}
|