From 85a366aa3b0b869b7f24d6655374d402984c4ad3 Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Fri, 14 Feb 2025 13:46:00 +0500 Subject: [PATCH] Updated for 1.21.50 again (#173) * Create aimassist.ts * Update command-data with aimassist command * Added timeInTicks documentation * Added timeInTicks parameter * Added timeInTicks to Matches * Update /schedule * Update /loot for mine * Update loot.ts --- src/lib/data/command-data.ts | 2 + src/lib/data/vanilla/aimassist.ts | 56 +++++ src/lib/data/vanilla/loot.ts | 258 +++++++++++++++++++++++- src/lib/data/vanilla/schedule.ts | 71 ++++++- src/lib/documentation/parameter-type.ts | 4 + src/lib/types/command/functions.ts | 1 + src/lib/types/parameter-type.ts | 2 + 7 files changed, 384 insertions(+), 10 deletions(-) create mode 100644 src/lib/data/vanilla/aimassist.ts diff --git a/src/lib/data/command-data.ts b/src/lib/data/command-data.ts index c9cf6e1..0a1ada3 100644 --- a/src/lib/data/command-data.ts +++ b/src/lib/data/command-data.ts @@ -69,6 +69,7 @@ import { tp } from "./vanilla/tp"; import { w } from "./vanilla/w"; import { weather } from "./vanilla/weather"; import { xp } from "./vanilla/xp"; +import { aimassist } from './vanilla/aimassist'; /** The minecraft command data set */ export namespace CommandData { @@ -83,6 +84,7 @@ export namespace CommandData { /** The vanilla command data set */ export const Vanilla: CommandContainer = { + aimassist, alwaysday, camera, camerashake, diff --git a/src/lib/data/vanilla/aimassist.ts b/src/lib/data/vanilla/aimassist.ts new file mode 100644 index 0000000..4217c5c --- /dev/null +++ b/src/lib/data/vanilla/aimassist.ts @@ -0,0 +1,56 @@ +import { ParameterType } from "../../types/parameter-type"; +import { CommandInfo } from "../command-info"; + +/**The aimassist command */ +export const aimassist: CommandInfo[] = [ + { + name: "aimassist", + documentation: "Enable Aim Assit", + parameters: [ + { text: "aimassist", type: ParameterType.keyword, required: true }, + { + text: "player", + type: ParameterType.selector, + required: true, + options: { playerOnly: true }, + }, + { text: "clear", type: ParameterType.keyword, required: true }, + ], + }, + { + name: "aimassist", + documentation: "Enable Aim Assit", + parameters: [ + { text: "aimassist", type: ParameterType.keyword, required: true }, + { + text: "player", + type: ParameterType.selector, + required: true, + options: { playerOnly: true }, + }, + { text: "set", type: ParameterType.keyword, required: true }, + { text: "x angle", type: ParameterType.float, required: false, options: { minimum: 10, maximum: 90 } }, + { text: "y angle", type: ParameterType.float, required: false, options: { minimum: 10, maximum: 90 } }, + { text: "max distance", type: ParameterType.float, required: false, options: { minimum: 1, maximum: 16 } }, + { text: "angle", type: ParameterType.keyword, required: false } + ], + }, + { + name: "aimassist", + documentation: "Enable Aim Assit", + parameters: [ + { text: "aimassist", type: ParameterType.keyword, required: true }, + { + text: "player", + type: ParameterType.selector, + required: true, + options: { playerOnly: true }, + }, + { text: "set", type: ParameterType.keyword, required: true }, + { text: "x angle", type: ParameterType.float, required: false, options: { minimum: 10, maximum: 90 } }, + { text: "y angle", type: ParameterType.float, required: false, options: { minimum: 10, maximum: 90 } }, + { text: "max distance", type: ParameterType.float, required: false, options: { minimum: 1, maximum: 16 } }, + { text: "distance", type: ParameterType.keyword, required: false } + ], + }, +]; diff --git a/src/lib/data/vanilla/loot.ts b/src/lib/data/vanilla/loot.ts index 36d13b9..dccc6e7 100644 --- a/src/lib/data/vanilla/loot.ts +++ b/src/lib/data/vanilla/loot.ts @@ -52,6 +52,34 @@ export const loot: CommandInfo[] = [ { text: "tool", type: ParameterType.handType, required: false }, ], }, + { + name: "loot", + documentation: "Drops the given loot table into the world", + parameters: [ + { text: "loot", type: ParameterType.keyword, required: true }, + { text: "give", type: ParameterType.keyword, required: true }, + { text: "players", type: ParameterType.selector, required: true, options: { playerOnly: true } }, + { text: "mine", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "item", type: ParameterType.item, required: false }, + ], + }, + { + name: "loot", + documentation: "Drops the given loot table into the world", + parameters: [ + { text: "loot", type: ParameterType.keyword, required: true }, + { text: "give", type: ParameterType.keyword, required: true }, + { text: "players", type: ParameterType.selector, required: true, options: { playerOnly: true } }, + { text: "mine", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "tool", type: ParameterType.handType, required: false }, + ], + }, /**insert */ { name: "loot", @@ -109,6 +137,38 @@ export const loot: CommandInfo[] = [ { text: "tool", type: ParameterType.handType, required: false }, ], }, + { + name: "loot", + documentation: "Drops the given loot table into the world", + parameters: [ + { text: "loot", type: ParameterType.keyword, required: true }, + { text: "insert", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "mine", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "item", type: ParameterType.item, required: false }, + ], + }, + { + name: "loot", + documentation: "Drops the given loot table into the world", + parameters: [ + { text: "loot", type: ParameterType.keyword, required: true }, + { text: "insert", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "mine", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "tool", type: ParameterType.handType, required: false }, + ], + }, /**replace block */ { name: "loot", @@ -120,7 +180,7 @@ export const loot: CommandInfo[] = [ { text: "x", type: ParameterType.coordinate, required: true }, { text: "y", type: ParameterType.coordinate, required: true }, { text: "z", type: ParameterType.coordinate, required: true }, - { text: "slot type", type: ParameterType.slotType, required: true, options:{acceptedValues:["slot.container"]} }, + { text: "slot type", type: ParameterType.slotType, required: true, options: { acceptedValues: ["slot.container"] } }, { text: "slot id", type: ParameterType.slotID, required: true }, { text: "kill", type: ParameterType.keyword, required: true }, { text: "entity target", type: ParameterType.selector, required: true }, @@ -137,7 +197,7 @@ export const loot: CommandInfo[] = [ { text: "x", type: ParameterType.coordinate, required: true }, { text: "y", type: ParameterType.coordinate, required: true }, { text: "z", type: ParameterType.coordinate, required: true }, - { text: "slot type", type: ParameterType.slotType, required: true, options:{acceptedValues:["slot.container"]} }, + { text: "slot type", type: ParameterType.slotType, required: true, options: { acceptedValues: ["slot.container"] } }, { text: "slot id", type: ParameterType.slotID, required: true }, { text: "kill", type: ParameterType.keyword, required: true }, { text: "entity target", type: ParameterType.selector, required: true }, @@ -154,7 +214,7 @@ export const loot: CommandInfo[] = [ { text: "x", type: ParameterType.coordinate, required: true }, { text: "y", type: ParameterType.coordinate, required: true }, { text: "z", type: ParameterType.coordinate, required: true }, - { text: "slot type", type: ParameterType.slotType, required: true, options:{acceptedValues:["slot.container"]} }, + { text: "slot type", type: ParameterType.slotType, required: true, options: { acceptedValues: ["slot.container"] } }, { text: "slot id", type: ParameterType.slotID, required: true }, { text: "count", type: ParameterType.integer, required: true }, { text: "kill", type: ParameterType.keyword, required: true }, @@ -172,7 +232,7 @@ export const loot: CommandInfo[] = [ { text: "x", type: ParameterType.coordinate, required: true }, { text: "y", type: ParameterType.coordinate, required: true }, { text: "z", type: ParameterType.coordinate, required: true }, - { text: "slot type", type: ParameterType.slotType, required: true, options:{acceptedValues:["slot.container"]} }, + { text: "slot type", type: ParameterType.slotType, required: true, options: { acceptedValues: ["slot.container"] } }, { text: "slot id", type: ParameterType.slotID, required: true }, { text: "count", type: ParameterType.integer, required: true }, { text: "kill", type: ParameterType.keyword, required: true }, @@ -190,7 +250,7 @@ export const loot: CommandInfo[] = [ { text: "x", type: ParameterType.coordinate, required: true }, { text: "y", type: ParameterType.coordinate, required: true }, { text: "z", type: ParameterType.coordinate, required: true }, - { text: "slot type", type: ParameterType.slotType, required: true, options:{acceptedValues:["slot.container"]} }, + { text: "slot type", type: ParameterType.slotType, required: true, options: { acceptedValues: ["slot.container"] } }, { text: "slot id", type: ParameterType.slotID, required: true }, { text: "loot", type: ParameterType.keyword, required: true }, { text: "loot table", type: ParameterType.lootTable, required: true }, @@ -207,7 +267,7 @@ export const loot: CommandInfo[] = [ { text: "x", type: ParameterType.coordinate, required: true }, { text: "y", type: ParameterType.coordinate, required: true }, { text: "z", type: ParameterType.coordinate, required: true }, - { text: "slot type", type: ParameterType.slotType, required: true, options:{acceptedValues:["slot.container"]} }, + { text: "slot type", type: ParameterType.slotType, required: true, options: { acceptedValues: ["slot.container"] } }, { text: "slot id", type: ParameterType.slotID, required: true }, { text: "loot", type: ParameterType.keyword, required: true }, { text: "loot table", type: ParameterType.lootTable, required: true }, @@ -224,7 +284,7 @@ export const loot: CommandInfo[] = [ { text: "x", type: ParameterType.coordinate, required: true }, { text: "y", type: ParameterType.coordinate, required: true }, { text: "z", type: ParameterType.coordinate, required: true }, - { text: "slot type", type: ParameterType.slotType, required: true, options:{acceptedValues:["slot.container"]} }, + { text: "slot type", type: ParameterType.slotType, required: true, options: { acceptedValues: ["slot.container"] } }, { text: "slot id", type: ParameterType.slotID, required: true }, { text: "count", type: ParameterType.integer, required: true }, { text: "loot", type: ParameterType.keyword, required: true }, @@ -242,7 +302,7 @@ export const loot: CommandInfo[] = [ { text: "x", type: ParameterType.coordinate, required: true }, { text: "y", type: ParameterType.coordinate, required: true }, { text: "z", type: ParameterType.coordinate, required: true }, - { text: "slot type", type: ParameterType.slotType, required: true, options:{acceptedValues:["slot.container"]} }, + { text: "slot type", type: ParameterType.slotType, required: true, options: { acceptedValues: ["slot.container"] } }, { text: "slot id", type: ParameterType.slotID, required: true }, { text: "count", type: ParameterType.integer, required: true }, { text: "loot", type: ParameterType.keyword, required: true }, @@ -250,6 +310,84 @@ export const loot: CommandInfo[] = [ { text: "tool", type: ParameterType.handType, required: false }, ], }, + { + name: "loot", + documentation: "Drops the given loot table into the world", + parameters: [ + { text: "loot", type: ParameterType.keyword, required: true }, + { text: "replace", type: ParameterType.keyword, required: true }, + { text: "block", type: ParameterType.keyword, required: true }, + { text: "x", type: ParameterType.coordinate, required: true }, + { text: "y", type: ParameterType.coordinate, required: true }, + { text: "z", type: ParameterType.coordinate, required: true }, + { text: "slot type", type: ParameterType.slotType, required: true, options: { acceptedValues: ["slot.container"] } }, + { text: "slot id", type: ParameterType.slotID, required: true }, + { text: "mine", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "item", type: ParameterType.item, required: false }, + ], + }, + { + name: "loot", + documentation: "Drops the given loot table into the world", + parameters: [ + { text: "loot", type: ParameterType.keyword, required: true }, + { text: "replace", type: ParameterType.keyword, required: true }, + { text: "block", type: ParameterType.keyword, required: true }, + { text: "x", type: ParameterType.coordinate, required: true }, + { text: "y", type: ParameterType.coordinate, required: true }, + { text: "z", type: ParameterType.coordinate, required: true }, + { text: "slot type", type: ParameterType.slotType, required: true, options: { acceptedValues: ["slot.container"] } }, + { text: "slot id", type: ParameterType.slotID, required: true }, + { text: "mine", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "tool", type: ParameterType.handType, required: false }, + ], + }, + { + name: "loot", + documentation: "Drops the given loot table into the world", + parameters: [ + { text: "loot", type: ParameterType.keyword, required: true }, + { text: "replace", type: ParameterType.keyword, required: true }, + { text: "block", type: ParameterType.keyword, required: true }, + { text: "x", type: ParameterType.coordinate, required: true }, + { text: "y", type: ParameterType.coordinate, required: true }, + { text: "z", type: ParameterType.coordinate, required: true }, + { text: "slot type", type: ParameterType.slotType, required: true, options: { acceptedValues: ["slot.container"] } }, + { text: "slot id", type: ParameterType.slotID, required: true }, + { text: "count", type: ParameterType.integer, required: true }, + { text: "mine", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "item", type: ParameterType.item, required: false }, + ], + }, + { + name: "loot", + documentation: "Drops the given loot table into the world", + parameters: [ + { text: "loot", type: ParameterType.keyword, required: true }, + { text: "replace", type: ParameterType.keyword, required: true }, + { text: "block", type: ParameterType.keyword, required: true }, + { text: "x", type: ParameterType.coordinate, required: true }, + { text: "y", type: ParameterType.coordinate, required: true }, + { text: "z", type: ParameterType.coordinate, required: true }, + { text: "slot type", type: ParameterType.slotType, required: true, options: { acceptedValues: ["slot.container"] } }, + { text: "slot id", type: ParameterType.slotID, required: true }, + { text: "count", type: ParameterType.integer, required: true }, + { text: "mine", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "tool", type: ParameterType.handType, required: false }, + ], + }, /**replace entity */ { name: "loot", @@ -375,6 +513,76 @@ export const loot: CommandInfo[] = [ { text: "tool", type: ParameterType.handType, required: false }, ], }, + { + name: "loot", + documentation: "Drops the given loot table into the world", + parameters: [ + { text: "loot", type: ParameterType.keyword, required: true }, + { text: "replace", type: ParameterType.keyword, required: true }, + { text: "entity", type: ParameterType.keyword, required: true }, + { text: "target", type: ParameterType.selector, required: true }, + { text: "slot type", type: ParameterType.slotType, required: true }, + { text: "slot id", type: ParameterType.slotID, required: true }, + { text: "mine", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "item", type: ParameterType.item, required: false }, + ], + }, + { + name: "loot", + documentation: "Drops the given loot table into the world", + parameters: [ + { text: "loot", type: ParameterType.keyword, required: true }, + { text: "replace", type: ParameterType.keyword, required: true }, + { text: "entity", type: ParameterType.keyword, required: true }, + { text: "target", type: ParameterType.selector, required: true }, + { text: "slot type", type: ParameterType.slotType, required: true }, + { text: "slot id", type: ParameterType.slotID, required: true }, + { text: "mine", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "tool", type: ParameterType.handType, required: false }, + ], + }, + { + name: "loot", + documentation: "Drops the given loot table into the world", + parameters: [ + { text: "loot", type: ParameterType.keyword, required: true }, + { text: "replace", type: ParameterType.keyword, required: true }, + { text: "entity", type: ParameterType.keyword, required: true }, + { text: "target", type: ParameterType.selector, required: true }, + { text: "slot type", type: ParameterType.slotType, required: true }, + { text: "slot id", type: ParameterType.slotID, required: true }, + { text: "count", type: ParameterType.integer, required: true }, + { text: "mine", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "item", type: ParameterType.item, required: false }, + ], + }, + { + name: "loot", + documentation: "Drops the given loot table into the world", + parameters: [ + { text: "loot", type: ParameterType.keyword, required: true }, + { text: "replace", type: ParameterType.keyword, required: true }, + { text: "entity", type: ParameterType.keyword, required: true }, + { text: "target", type: ParameterType.selector, required: true }, + { text: "slot type", type: ParameterType.slotType, required: true }, + { text: "slot id", type: ParameterType.slotID, required: true }, + { text: "count", type: ParameterType.integer, required: true }, + { text: "mine", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "tool", type: ParameterType.handType, required: false }, + ], + }, /** spawn */ { name: "loot", @@ -432,4 +640,36 @@ export const loot: CommandInfo[] = [ { text: "tool", type: ParameterType.handType, required: false }, ], }, -]; \ No newline at end of file + { + name: "loot", + documentation: "Drops the given loot table into the world", + parameters: [ + { text: "loot", type: ParameterType.keyword, required: true }, + { text: "spawn", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "mine", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "item", type: ParameterType.item, required: false }, + ], + }, + { + name: "loot", + documentation: "Drops the given loot table into the world", + parameters: [ + { text: "loot", type: ParameterType.keyword, required: true }, + { text: "spawn", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "mine", type: ParameterType.keyword, required: true }, + { text: "position x", type: ParameterType.coordinate, required: true }, + { text: "position y", type: ParameterType.coordinate, required: true }, + { text: "position z", type: ParameterType.coordinate, required: true }, + { text: "tool", type: ParameterType.handType, required: false }, + ], + }, +]; diff --git a/src/lib/data/vanilla/schedule.ts b/src/lib/data/vanilla/schedule.ts index 1fce09b..a0794dc 100644 --- a/src/lib/data/vanilla/schedule.ts +++ b/src/lib/data/vanilla/schedule.ts @@ -50,4 +50,73 @@ export const schedule: CommandInfo[] = [ { text: "function", type: ParameterType.function, required: true }, ], }, -]; \ No newline at end of file + { + name: "schedule", + documentation: "Schedules an action to be executed once an area is loaded, or after a certain amount of time", + parameters: [ + { text: "schedule", type: ParameterType.keyword, required: true }, + { text: "on_area_loaded", type: ParameterType.keyword, required: true }, + { text: "clear", type: ParameterType.keyword, required: true }, + { text: "function", type: ParameterType.function, required: true }, + ], + }, + { + name: "schedule", + documentation: "Schedules an action to be executed once an area is loaded, or after a certain amount of time", + parameters: [ + { text: "schedule", type: ParameterType.keyword, required: true }, + { text: "on_area_loaded", type: ParameterType.keyword, required: true }, + { text: "clear", type: ParameterType.keyword, required: true }, + { text: "tickingarea", type: ParameterType.keyword, required: true }, + { + text: "tickingarea name", + type: ParameterType.tickingarea, + required: true, + }, + { text: "function", type: ParameterType.function, required: true }, + ], + }, + { + name: "schedule", + documentation: "Schedules an action to be executed once an area is loaded, or after a certain amount of time", + parameters: [ + { text: "schedule", type: ParameterType.keyword, required: true }, + { text: "clear", type: ParameterType.keyword, required: true }, + { text: "function", type: ParameterType.function, required: true }, + ], + }, + { + name: "schedule", + documentation: "Schedules an action to be executed once an area is loaded, or after a certain amount of time", + parameters: [ + { text: "schedule", type: ParameterType.keyword, required: true }, + { text: "delay", type: ParameterType.keyword, required: true }, + { text: "clear", type: ParameterType.keyword, required: true }, + { text: "function", type: ParameterType.function, required: true }, + ], + }, + { + name: "schedule", + documentation: "Schedules an action to be executed once an area is loaded, or after a certain amount of time", + parameters: [ + { text: "schedule", type: ParameterType.keyword, required: true }, + { text: "delay", type: ParameterType.keyword, required: true }, + { text: "add", type: ParameterType.keyword, required: true }, + { text: "function", type: ParameterType.function, required: true }, + { text: "time", type: ParameterType.timeInTicks, required: true }, + { text: "append", type: ParameterType.keyword, required: false }, + ], + }, + { + name: "schedule", + documentation: "Schedules an action to be executed once an area is loaded, or after a certain amount of time", + parameters: [ + { text: "schedule", type: ParameterType.keyword, required: true }, + { text: "delay", type: ParameterType.keyword, required: true }, + { text: "add", type: ParameterType.keyword, required: true }, + { text: "function", type: ParameterType.function, required: true }, + { text: "time", type: ParameterType.timeInTicks, required: true }, + { text: "replace", type: ParameterType.keyword, required: false }, + ], + }, +]; diff --git a/src/lib/documentation/parameter-type.ts b/src/lib/documentation/parameter-type.ts index 4407801..5e2bda4 100644 --- a/src/lib/documentation/parameter-type.ts +++ b/src/lib/documentation/parameter-type.ts @@ -221,6 +221,10 @@ The identifier of a ticking area.`, [ParameterType.time]: `## Time A value representing the time of the game.`, + + [ParameterType.timeInTicks]: `## Time in ticks +A value representing the time of the game (20D, 3S, 15T, 4).`, + //[ParameterType.unknown]:``, [ParameterType.xp]: `## XP diff --git a/src/lib/types/command/functions.ts b/src/lib/types/command/functions.ts index 30f1f8a..d464e95 100644 --- a/src/lib/types/command/functions.ts +++ b/src/lib/types/command/functions.ts @@ -127,6 +127,7 @@ const Matches: Partial boolean>> = { [ParameterType.structureAnimationMode]: (item) => Modes.StructureAnimation.isValue(item), [ParameterType.teleportRules]: (item) => Modes.TeleportRules.isValue(item), [ParameterType.time]: (item) => Modes.Time.isValue(item), + [ParameterType.timeInTicks]: (item) => Modes.Time.isValue(item), [ParameterType.xp]: (item) => Minecraft.XP.is(item), }; diff --git a/src/lib/types/parameter-type.ts b/src/lib/types/parameter-type.ts index 042edd4..ef7c64f 100644 --- a/src/lib/types/parameter-type.ts +++ b/src/lib/types/parameter-type.ts @@ -116,6 +116,8 @@ export enum ParameterType { tickingarea, /** Time mode */ time, + /** Time in ticks */ + timeInTicks, /** Unknown */ unknown, /** XP */