From a8919cc7bcf328345effc0714c620baee3accd0b Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Wed, 12 Jan 2022 12:56:20 +0100 Subject: [PATCH] Updated spell_effects --- .../format/components/spell_effects.json | 31 +++++++++++++++---- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/source/behavior/entities/format/components/spell_effects.json b/source/behavior/entities/format/components/spell_effects.json index d5999ee7..f86646b7 100644 --- a/source/behavior/entities/format/components/spell_effects.json +++ b/source/behavior/entities/format/components/spell_effects.json @@ -11,20 +11,39 @@ "description": "List of effects to add to this entity after adding this component", "items": { "oneOf": [ - { - "type": "string" - }, + { "type": "string" }, { "type": "object", + "additionalProperties": false, "properties": { "effect": { - "type": "string" + "type": "string", + "title": "Effect", + "description": "The string identifier of the status effect to add. These are the same as used in the /effect command." }, "duration": { - "type": "integer" + "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 + }, + "amplifier": { + "type": "integer", + "title": "Amplifier", + "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.", + "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, + "type": "boolean" }, "display_on_screen_animation": { - "type": "boolean" + "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." } } }