Skip to content

Commit

Permalink
- Update effect command for 1.21.40
Browse files Browse the repository at this point in the history
  • Loading branch information
Xterionix committed Nov 17, 2024
1 parent 8218e35 commit 4042f3f
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/lib/data/vanilla/effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand All @@ -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 },
],
},
];

0 comments on commit 4042f3f

Please sign in to comment.