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

83 lines
3.2 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",
2022-07-22 19:41:04 +02:00
"description": "List of effects to add to this entity after adding this component.",
2021-10-08 12:59:03 +02:00
"items": {
"oneOf": [
{ "$ref": "../../../../general/vanilla/effect.json" },
2021-10-08 12:59:03 +02:00
{
"type": "object",
2022-01-12 12:56:20 +01:00
"additionalProperties": false,
2021-10-11 18:10:42 +02:00
"properties": {
2022-01-12 12:56:20 +01:00
"amplifier": {
"type": "integer",
"title": "Amplifier",
2022-09-12 21:00:01 +02:00
"description": "The level of the effect, same as used in the /effect command (0 for level I, 1 for level II, etc). Defaults to 0. NOTE: Values can be negative but its not an intentional feature",
2022-01-12 12:56:20 +01:00
"default": 0,
"minimum": 0
},
"ambient": {
"title": "Ambient",
"description": "Boolean value that should cause the particles emitted by the entity to be partially transparent. This does not work properly, resulting in this property having no effect. Defaults to false.",
"default": false,
2021-10-11 18:10:42 +02:00
"type": "boolean"
2022-01-12 12:56:20 +01:00
},
2022-02-09 13:49:18 +01:00
"duration": {
"title": "Duration",
"description": "The amount of time in seconds the effect should last. This allows for fractional numbers. For example, instant effects should be set to 0.05 seconds (one tick).",
"type": "number",
"minimum": 0
},
2022-01-12 12:56:20 +01:00
"display_on_screen_animation": {
"type": "boolean",
"title": "Display On Screen Animation",
"description": "Boolean value. When set to true, applying this effect displays an animated graphic on-screen similar to the totem of undying effect. Obviously, this only works for players. Defaults to false."
2022-02-09 13:49:18 +01:00
},
"effect": {
"$ref": "../../../../general/vanilla/effect.json",
2022-02-09 13:49:18 +01:00
"title": "Effect",
"description": "The string identifier of the status effect to add. These are the same as used in the /effect command."
},
"visible": {
"type": "boolean",
"title": "Visible",
"description": "Boolean value. When set to true, the effect will be visible to the player. Defaults to true."
2021-10-11 18:10:42 +02:00
}
}
2021-10-08 12:59:03 +02:00
}
]
},
"title": "Add Effects"
},
"remove_effects": {
"title": "Remove Effects",
2022-07-22 19:41:04 +02:00
"description": "List of identifiers of effects to be removed from this entity after adding this component.",
2021-10-08 12:59:03 +02:00
"oneOf": [
{
"type": "array",
"items": {
"type": ["string"],
"title": "Spell Effect ID",
2022-07-22 19:41:04 +02:00
"description": "identifier of the effect to be removed from this entity after adding this component."
2021-10-08 12:59:03 +02:00
}
},
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
}