DEVELOPER ZONE

CONTRIBUTING GUIDE

Learn how to help build, test, and improve the W3NN Minecraft Command Hub. We welcome code contributions, bug reports, and database additions.

How to Help
  • Report Bugs: Open an issue or contact me via Discord/Email if you find any command syntax output issues.
  • Add New Commands: Help expand our interactive wiki database by adding new command structures in commands/commands.js.
  • Improve UI/UX: Suggest styles, animations, or performance improvements for our generator builders.
Local Development

To run the project locally, install dependencies and use the build script:

# Install node modules
npm install

# Build & Obfuscate scripts
npm run build

Note: The build script copies assets to `/dist` and runs the JavaScript obfuscator. Always run build before testing production.

Command Schema Structure

Commands in commands/commands.js follow a structured JSON schema. Below is a reference template:

{
  name: "/teleport",
  summary: "Teleport entities to targets/coordinates",
  desc: "Moves target entities to coordinate positions or other entity locations.",
  permission: "Level 2 (Operator)",
  sources: "Player, Command Block, Server Console",
  version: "Java 1.3",
  syntaxes: [
    { code: "/teleport <targets> <destination>", desc: "Teleport to entity destination." }
  ],
  arguments: [
    { name: "targets", desc: "The entities to teleport." }
  ],
  examples: [
    { code: "/teleport @a @p", note: "Teleports all players to the nearest player." }
  ]
}