Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/area_attack.json

52 lines
1.6 KiB
JSON
Raw Normal View History

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": {
"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": {
"title": "Damage Cooldown",
"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",
"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"
},
"play_attack_sound": {
"title": "Play Attack Sound",
"type": "boolean",
"default": true,
"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
}