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

59 lines
1.5 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.spell_effects",
2021-10-08 12:59:03 +02:00
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Spell Effects",
2021-10-08 12:59:03 +02:00
"additionalProperties": false,
"description": "Defines what mob effects to add and remove to the entity when adding this component.",
"required": [],
"properties": {
"add_effects": {
"type": "array",
"description": "List of effects to add to this entity after adding this component",
"items": {
"oneOf": [
2021-10-11 18:10:42 +02:00
{
"type": "string"
},
2021-10-08 12:59:03 +02:00
{
"type": "object",
2021-10-11 18:10:42 +02:00
"properties": {
"effect": {
"type": "string"
},
"duration": {
"type": "integer"
},
"display_on_screen_animation": {
"type": "boolean"
}
}
2021-10-08 12:59:03 +02:00
}
]
},
"title": "Add Effects"
},
"remove_effects": {
"title": "Remove Effects",
"description": "List of identifiers of effects to be removed from this entity after adding this component",
"oneOf": [
{
"type": "array",
"items": {
"type": ["string"],
"title": "Spell Effect ID",
"description": "identifier of the effect to be removed from this entity after adding this component"
}
},
2021-10-11 18:10:42 +02:00
{
"type": "string"
}
2021-10-08 12:59:03 +02:00
]
}
2021-10-11 18:10:42 +02:00
},
"examples": [
{
"add_effects": []
}
]
2021-10-08 12:59:03 +02:00
}