* - Add crafting item catalogs * - Removed experimental warning for item visual * - Added renders_when_invisible entity component * - Removed experimental warning for liquid detection * - Added property inheritance to breedable * - Added min_looked_at_duration field to look_at component * - Added combine_parent_colors to breedable * - Update catalog file schema * - Split storage item components * - Added new entity filters * - Added surface opacity to water appearance biome component * - Remove actor_id loot table example as it is no longer the standard * - Add set_armor_trim trim loot table function * - Added match_tool loot table condition * - Added creature_spawn_probability component * - Added verticalFlySpeed to has_ability * - Update descriptions and default values * - Add base field to block_sounds * - Removed block sounds enum as creators can specify custom ones too * - Change default format version
52 lines
1.6 KiB
JSON
52 lines
1.6 KiB
JSON
{
|
|
"$id": "blockception.minecraft.behavior.entities.minecraft.area_attack",
|
|
"type": "object",
|
|
"title": "Area Attack",
|
|
"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."
|
|
},
|
|
"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.",
|
|
"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."
|
|
}
|
|
},
|
|
"examples": [
|
|
{
|
|
"damage_per_tick": 2,
|
|
"damage_range": 0.2,
|
|
"cause": "example"
|
|
}
|
|
]
|
|
}
|