From 4042f3f9bc0fb36390c64a90e131f81106326313 Mon Sep 17 00:00:00 2001 From: Xterionix Date: Sun, 17 Nov 2024 22:01:23 +0500 Subject: [PATCH] - Update effect command for 1.21.40 --- src/lib/data/vanilla/effect.ts | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/lib/data/vanilla/effect.ts b/src/lib/data/vanilla/effect.ts index 2c86787..62c8305 100644 --- a/src/lib/data/vanilla/effect.ts +++ b/src/lib/data/vanilla/effect.ts @@ -5,7 +5,7 @@ import { CommandInfo } from "../command-info"; export const effect: CommandInfo[] = [ { name: "effect", - documentation: "Sets the difficulty level.", + documentation: "Adds status effects on players and other entities.", parameters: [ { text: "effect", type: ParameterType.keyword, required: true }, { text: "player", type: ParameterType.selector, required: true }, @@ -21,11 +21,28 @@ export const effect: CommandInfo[] = [ }, { name: "effect", - documentation: "Sets the difficulty level.", + documentation: "Adds status effects on players and other entities.", + parameters: [ + { text: "effect", type: ParameterType.keyword, required: true }, + { text: "player", type: ParameterType.selector, required: true }, + { text: "effect", type: ParameterType.effect, required: true }, + { text: "infinite", type: ParameterType.keyword, required: false }, + { text: "amplifier", type: ParameterType.integer, required: false }, + { + text: "hide particles", + type: ParameterType.boolean, + required: false, + }, + ], + }, + { + name: "effect", + documentation: "Removes all status effects on players and other entities.", parameters: [ { text: "effect", type: ParameterType.keyword, required: true }, { text: "player", type: ParameterType.selector, required: true }, { text: "clear", type: ParameterType.keyword, required: true }, + { text: "effect", type: ParameterType.effect, required: false }, ], }, ];