Welcome to the installation guide for our custom command handler. Depending on whether you’re using TypeScript or JavaScript for your Minecraft addon, follow the steps below to get started quickly.
If you are using TypeScript to build your Minecraft addon, follow these steps:
.ts) for our custom command handler.src or a folder of your choice for TypeScript source files.tsc) is configured to include the file
in your project build. You can do this by adding the file’s path to your
tsconfig.json under the include or files section.tsc. This will compile your project,
including our custom command handler.If you are using JavaScript for your Minecraft addon, follow these steps:
.js) for our custom command handler.Import the module in your JavaScript code as shown below:
// Import the module
import { CommandRegistry } from "./path/to/your/script/folder/commands.js";
Remember to replace "./path/to/your/script/folder/commands.js" with the actual path to the JavaScript file in your project.