forked from Blockception/BC-Minecraft-Bedrock-Command
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mod descriptions
- Loading branch information
Showing
59 changed files
with
3,516 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ParameterType } from "../../Types"; | ||
import { CommandInfo } from "../CommandInfo"; | ||
|
||
/**The alwaysday command */ | ||
export const alwaysday: CommandInfo[] = [ | ||
{ | ||
name: "alwaysday", | ||
documentation: "Sets /gamerule dodaylightcycle to false, and sets /time to 5000. This is the same as the Always Day slider in the Game Settings. The command can also be given as daylock.", | ||
parameters: [ | ||
{ text: "alwaysday", type: ParameterType.keyword, required: true }, | ||
{ text: "lock", type: ParameterType.boolean, required: false }, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { ParameterType } from "../../Types"; | ||
import { CommandInfo } from "../CommandInfo"; | ||
|
||
/**The camerashake command */ | ||
export const camerashake: CommandInfo[] = [ | ||
{ | ||
name: "camerashake", | ||
documentation: "Applies shaking to the players' camera with specified intensity and duration", | ||
parameters: [ | ||
{ text: "camerashake", type: ParameterType.keyword, required: true }, | ||
{ text: "add", type: ParameterType.keyword, required: true }, | ||
{ | ||
text: "player", | ||
type: ParameterType.selector, | ||
required: true, | ||
options: { playerOnly: true }, | ||
}, | ||
{ | ||
text: "intensity", | ||
type: ParameterType.float, | ||
required: false, | ||
options: { minimum: 0, maximum: 4 }, | ||
}, | ||
{ | ||
text: "seconds", | ||
type: ParameterType.float, | ||
required: false, | ||
options: { minimum: 0 }, | ||
}, | ||
{ | ||
text: "shake type", | ||
type: ParameterType.cameraShakeType, | ||
required: false, | ||
}, | ||
], | ||
}, | ||
{ | ||
name: "camerashake", | ||
documentation: "Stops shaking to the players' camera with specified intensity and duration", | ||
parameters: [ | ||
{ text: "camerashake", type: ParameterType.keyword, required: true }, | ||
{ text: "stop", type: ParameterType.keyword, required: true }, | ||
{ | ||
text: "player", | ||
type: ParameterType.selector, | ||
required: false, | ||
options: { playerOnly: true }, | ||
}, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ParameterType } from "../../Types"; | ||
import { CommandInfo } from "../CommandInfo"; | ||
|
||
/**The clear command */ | ||
export const clear: CommandInfo[] = [ | ||
{ | ||
name: "clear", | ||
documentation: "Clears items from player inventory.", | ||
parameters: [ | ||
{ text: "clear", type: ParameterType.keyword, required: true }, | ||
{ | ||
text: "player", | ||
type: ParameterType.selector, | ||
required: false, | ||
options: { playerOnly: true }, | ||
}, | ||
{ text: "item name", type: ParameterType.item, required: false }, | ||
{ text: "data", type: ParameterType.integer, required: false }, | ||
{ text: "max count", type: ParameterType.integer, required: false }, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ParameterType } from "../../Types"; | ||
import { CommandInfo } from "../CommandInfo"; | ||
|
||
/**The clearspawnpoint command */ | ||
export const clearspawnpoint: CommandInfo[] = [ | ||
{ | ||
name: "clearspawnpoint", | ||
documentation: "Specifies the player whose spawn point should be removed. If not specified, defaults to the command's executor (@s). Must be a player name or a target selector. And the target selector should be of player type.", | ||
parameters: [ | ||
{ | ||
text: "clearspawnpoint", | ||
type: ParameterType.keyword, | ||
required: true, | ||
}, | ||
{ | ||
text: "player", | ||
type: ParameterType.selector, | ||
required: false, | ||
options: { playerOnly: true }, | ||
}, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
import { ParameterType } from "../../Types"; | ||
import { CommandInfo } from "../CommandInfo"; | ||
|
||
/**The clone command */ | ||
export const clone: CommandInfo[] = [ | ||
{ | ||
name: "clone", | ||
documentation: "Clones blocks from the cube defined by begin and end into the destination. ", | ||
parameters: [ | ||
{ text: "clone", type: ParameterType.keyword, required: true }, | ||
{ text: "begin x", type: ParameterType.coordinate, required: true }, | ||
{ text: "begin y", type: ParameterType.coordinate, required: true }, | ||
{ text: "begin z", type: ParameterType.coordinate, required: true }, | ||
{ text: "end x", type: ParameterType.coordinate, required: true }, | ||
{ text: "end y", type: ParameterType.coordinate, required: true }, | ||
{ text: "end z", type: ParameterType.coordinate, required: true }, | ||
{ | ||
text: "destination x", | ||
type: ParameterType.coordinate, | ||
required: true, | ||
}, | ||
{ | ||
text: "destination y", | ||
type: ParameterType.coordinate, | ||
required: true, | ||
}, | ||
{ | ||
text: "destination z", | ||
type: ParameterType.coordinate, | ||
required: true, | ||
}, | ||
{ text: "mask", type: ParameterType.maskMode, required: false }, | ||
{ text: "clone mode", type: ParameterType.cloneMode, required: true }, | ||
], | ||
}, | ||
{ | ||
name: "clone", | ||
documentation: "Copies blocks from one place to another.", | ||
parameters: [ | ||
{ text: "clone", type: ParameterType.keyword, required: true }, | ||
{ text: "begin x", type: ParameterType.coordinate, required: true }, | ||
{ text: "begin y", type: ParameterType.coordinate, required: true }, | ||
{ text: "begin z", type: ParameterType.coordinate, required: true }, | ||
{ text: "end x", type: ParameterType.coordinate, required: true }, | ||
{ text: "end y", type: ParameterType.coordinate, required: true }, | ||
{ text: "end z", type: ParameterType.coordinate, required: true }, | ||
{ | ||
text: "destination x", | ||
type: ParameterType.coordinate, | ||
required: true, | ||
}, | ||
{ | ||
text: "destination y", | ||
type: ParameterType.coordinate, | ||
required: true, | ||
}, | ||
{ | ||
text: "destination z", | ||
type: ParameterType.coordinate, | ||
required: true, | ||
}, | ||
{ text: "filtered", type: ParameterType.keyword, required: true }, | ||
{ text: "clone mode", type: ParameterType.cloneMode, required: true }, | ||
{ text: "tile name", type: ParameterType.block, required: true }, | ||
{ text: "tile data", type: ParameterType.integer, required: false }, | ||
], | ||
}, | ||
{ | ||
name: "clone", | ||
documentation: "Copies blocks from one place to another.", | ||
parameters: [ | ||
{ text: "clone", type: ParameterType.keyword, required: true }, | ||
{ text: "begin x", type: ParameterType.coordinate, required: true }, | ||
{ text: "begin y", type: ParameterType.coordinate, required: true }, | ||
{ text: "begin z", type: ParameterType.coordinate, required: true }, | ||
{ text: "end x", type: ParameterType.coordinate, required: true }, | ||
{ text: "end y", type: ParameterType.coordinate, required: true }, | ||
{ text: "end z", type: ParameterType.coordinate, required: true }, | ||
{ | ||
text: "destination x", | ||
type: ParameterType.coordinate, | ||
required: true, | ||
}, | ||
{ | ||
text: "destination y", | ||
type: ParameterType.coordinate, | ||
required: true, | ||
}, | ||
{ | ||
text: "destination z", | ||
type: ParameterType.coordinate, | ||
required: true, | ||
}, | ||
{ text: "filtered", type: ParameterType.keyword, required: true }, | ||
{ text: "clone mode", type: ParameterType.cloneMode, required: true }, | ||
{ text: "tile name", type: ParameterType.block, required: true }, | ||
{ | ||
text: "block states", | ||
type: ParameterType.blockStates, | ||
required: false, | ||
}, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { ParameterType } from "../../Types"; | ||
import { CommandInfo } from "../CommandInfo"; | ||
|
||
/**The damage command */ | ||
export const damage: CommandInfo[] = [ | ||
{ | ||
name: "damage", | ||
documentation: "When damaged, the entity may react accordingly, such as being knocked back, becoming angry, etc. The damager entity may also react in certain ways, such as the arrow's disappearing.", | ||
parameters: [ | ||
{ text: "damage", type: ParameterType.keyword, required: true }, | ||
{ text: "target", type: ParameterType.selector, required: true }, | ||
{ text: "amount", type: ParameterType.integer, required: true }, | ||
{ text: "cause", type: ParameterType.causeType, required: false }, | ||
], | ||
}, | ||
{ | ||
name: "damage", | ||
documentation: "Apply damage to the specified entity.", | ||
parameters: [ | ||
{ text: "damage", type: ParameterType.keyword, required: true }, | ||
{ text: "target", type: ParameterType.selector, required: true }, | ||
{ text: "amount", type: ParameterType.integer, required: true }, | ||
{ text: "cause", type: ParameterType.causeType, required: true }, | ||
{ text: "entity", type: ParameterType.keyword, required: true }, | ||
{ text: "damager", type: ParameterType.selector, required: true }, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ParameterType } from "../../Types"; | ||
import { CommandInfo } from "../CommandInfo"; | ||
|
||
/**The daylock command */ | ||
export const daylock: CommandInfo[] = [ | ||
{ | ||
name: "daylock", | ||
documentation: "Specifies whether the eternal daytime is locked or not. If not specified, defaults to true. ", | ||
parameters: [ | ||
{ text: "daylock", type: ParameterType.keyword, required: true }, | ||
{ text: "lock", type: ParameterType.boolean, required: false }, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { ParameterType } from "../../Types"; | ||
import { CommandInfo } from "../CommandInfo"; | ||
|
||
/**The deop command */ | ||
export const deop: CommandInfo[] = [ | ||
{ | ||
name: "deop", | ||
documentation: "Removes operator status from a player. Specified the player to be deopped. Must be a player name or a target selector. And the target selector should be of player type.", | ||
parameters: [ | ||
{ text: "deop", type: ParameterType.keyword, required: true }, | ||
{ | ||
text: "player", | ||
type: ParameterType.selector, | ||
required: true, | ||
options: { allowFakePlayers: true, playerOnly: true }, | ||
}, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { ParameterType } from "../../Types"; | ||
import { CommandInfo } from "../CommandInfo"; | ||
|
||
/**The dialogue command */ | ||
export const dialogue: CommandInfo[] = [ | ||
{ | ||
name: "dialogue", | ||
documentation: "Forces open the targeted NPC's dialogue box to the targeted player(s), simulating the experience of clicking on an NPC", | ||
parameters: [ | ||
{ text: "dialogue", type: ParameterType.keyword, required: true }, | ||
{ text: "open", type: ParameterType.keyword, required: true }, | ||
{ | ||
text: "npc", | ||
type: ParameterType.selector, | ||
required: true, | ||
options: { allowFakePlayers: false, playerOnly: false }, | ||
}, | ||
{ | ||
text: "player receiver", | ||
type: ParameterType.selector, | ||
required: true, | ||
options: { playerOnly: true, allowFakePlayers: false }, | ||
}, | ||
{ text: "scene name", type: ParameterType.string, required: false }, | ||
], | ||
}, | ||
{ | ||
name: "dialogue", | ||
documentation: "Direct an NPC to use the dialogue provided in a specifically designated scene file", | ||
parameters: [ | ||
{ text: "dialogue", type: ParameterType.keyword, required: true }, | ||
{ text: "change", type: ParameterType.keyword, required: true }, | ||
{ | ||
text: "npc", | ||
type: ParameterType.selector, | ||
required: true, | ||
options: { allowFakePlayers: false, playerOnly: false }, | ||
}, | ||
{ text: "scene name", type: ParameterType.string, required: true }, | ||
{ | ||
text: "player receiver", | ||
type: ParameterType.selector, | ||
required: false, | ||
options: { playerOnly: true, allowFakePlayers: false }, | ||
}, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ParameterType } from "../../Types"; | ||
import { CommandInfo } from "../CommandInfo"; | ||
|
||
/**The difficulty command */ | ||
export const difficulty: CommandInfo[] = [ | ||
{ | ||
name: "difficulty", | ||
documentation: "Sets the difficulty level (peaceful, easy, etc.).", | ||
parameters: [ | ||
{ text: "difficulty", type: ParameterType.keyword, required: true }, | ||
{ text: "mode", type: ParameterType.difficulty, required: true }, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { ParameterType } from "../../Types"; | ||
import { CommandInfo } from "../CommandInfo"; | ||
|
||
/**The effect command */ | ||
export const effect: CommandInfo[] = [ | ||
{ | ||
name: "effect", | ||
documentation: "Add or remove 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: "seconds", type: ParameterType.integer, required: false }, | ||
{ text: "amplifier", type: ParameterType.integer, required: false }, | ||
{ | ||
text: "hide particles", | ||
type: ParameterType.boolean, | ||
required: false, | ||
}, | ||
], | ||
}, | ||
{ | ||
name: "effect", | ||
documentation: "Sets the difficulty level.", | ||
parameters: [ | ||
{ text: "effect", type: ParameterType.keyword, required: true }, | ||
{ text: "player", type: ParameterType.selector, required: true }, | ||
{ text: "clear", type: ParameterType.keyword, required: true }, | ||
], | ||
}, | ||
]; |
Oops, something went wrong.