Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/attack.json
Xterionix 822ed538f9 Some more misc fixes (#295)
* - Add mob effects enum

* - Add biome and biome tags to enum

* - Fix feature rules only showing with 1.13.0 format version

* - Replace 1.20.41 -> 1.20.80
- Make certain format versions restricted to 1.10.0

* - Remove example stick (having this here was annoying)

* - Fix

* - Remove empty sounds example

* - Misc fixes for entity components
2024-06-28 21:06:53 +02:00

29 lines
1.1 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.attack",
"type": "object",
"additionalProperties": false,
"title": "Attack",
"description": "Defines an entity's melee attack and any additional effects on it.",
"required": ["damage"],
"properties": {
"damage": {
"title": "Damage",
"$ref": "../types/range_number_type.json",
"description": "Range of the random amount of damage the melee attack deals. A negative value can heal the entity instead of hurting it."
},
"effect_name": {
"type": "string",
"$ref": "../../../../general/vanilla/effect.json",
"description": "Identifier of the status ailment to apply to an entity attacked by this entity's melee attack.",
"title": "Effect Name"
},
"effect_duration": {
"type": "number",
"default": 1,
"description": "Duration in seconds of the status ailment applied to the damaged entity.",
"title": "Effect Duration"
}
},
"examples": [{ "damage": 1 }, { "damage": 1, "effect_name": "example", "effect_duration": 1 }]
}