Skip to content

Commit

Permalink
Fixes Blockception#10 issue
Browse files Browse the repository at this point in the history
Add mod descriptions
  • Loading branch information
juankcl authored Oct 26, 2022
1 parent 8b4303c commit b874073
Show file tree
Hide file tree
Showing 59 changed files with 3,516 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Lib/Data/Vanilla/alwaysday.ts
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 },
],
},
];
51 changes: 51 additions & 0 deletions src/Lib/Data/Vanilla/camerashake.ts
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 },
},
],
},
];
22 changes: 22 additions & 0 deletions src/Lib/Data/Vanilla/clear.ts
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 },
],
},
];
23 changes: 23 additions & 0 deletions src/Lib/Data/Vanilla/clearspawnpoint.ts
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 },
},
],
},
];
104 changes: 104 additions & 0 deletions src/Lib/Data/Vanilla/clone.ts
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,
},
],
},
];
28 changes: 28 additions & 0 deletions src/Lib/Data/Vanilla/damage.ts
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 },
],
},
];
14 changes: 14 additions & 0 deletions src/Lib/Data/Vanilla/daylock.ts
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 },
],
},
];
19 changes: 19 additions & 0 deletions src/Lib/Data/Vanilla/deop.ts
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 },
},
],
},
];
48 changes: 48 additions & 0 deletions src/Lib/Data/Vanilla/dialogue.ts
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 },
},
],
},
];
14 changes: 14 additions & 0 deletions src/Lib/Data/Vanilla/difficulty.ts
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 },
],
},
];
31 changes: 31 additions & 0 deletions src/Lib/Data/Vanilla/effect.ts
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 },
],
},
];
Loading

0 comments on commit b874073

Please sign in to comment.