- TypeScript 87.1%
- JavaScript 9.8%
- CSS 1.7%
- HTML 1.3%
| chatParsers | ||
| commands | ||
| lang | ||
| plugins | ||
| util | ||
| .gitignore | ||
| eslint.config.mjs | ||
| index.ts | ||
| launch.cmd | ||
| launch.sh | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| settings_example.js | ||
| tsconfig.json | ||
| version.ts | ||
botv12
botv12 is a Minecraft bot originally designed for Kaboom and its clones.
It supports all Minecraft server versions from 1.20 to 1.21.11 that are supported by node-minecraft-protocol. It is primarily developed using Kaboom or clones, but it should work on other servers with reduced functionality. The mainline version will also soon function on version 26.1. To use botv12 on version 26.1, minecraft-data and node-minecraft-protocol need to be patched, since support for 26.1 isn't available in the stable releases. Currently there are several major issues with the 26.1 protocol that prevent the bot from working correctly.
- After installing required packages with npm, navigate to the
node_modulesdirectory, then tominecraft-data. - Remove the directory named
minecraft-datain that directory. Do not touchminecraft-datainnode_modules. - Download the version of minecraft-data with 26.1 protocol support. This can be done with Git by running:
git clone -b pc_26_1 https://github.com/PrismarineJS/minecraft-data --depth 1. - Run
node bin/generate_data.js. - Navigate back to
node_modules. - Remove the directory named
minecraft-protocol. - Download the version of minecraft-protocol with 26.1 protocol support. This can be done with Git by running:
git clone -b pc26_1 https://github.com/PrismarineJS/node-minecraft-protocol --depth 1 minecraft-protocol. At this point, the needed modules should have been replaced with versions that work on 26.1. - Replace
minecraftVersionin settings with26.1. Also remove any overrides for servers that you wish to connect to with a 26.1 protocol.
How to install?
- Install Node.js for your operating system.
- Download the latest release, or alternatively, download the latest development version using the latest source archive or running the command
git clone https://codeberg.org/7cc5c4f330d47060/botv12with Git installed. - Extract the files if necessary.
- Run
npm installin the bot's directory. If it doesn't work, try using the Node.js command prompt, or adding Node.js to your PATH. - Copy the reference configuration (
settings_example.jsin the root) tosettings.js, and adjust the settings to fit your needs. The secrets are also contained in this file as well. - (Optional) If you plan to use a database with the bot, set
dbEnabledinsettings.jsto true and fill in the appropriate fields. Currently, MySQL, MariaDB and SQLite are supported, with more to come. - Compile the TypeScript code to JavaScript by running
npx tsc. If it displays an error sayingnpxis not a command, please make sure Node.js is on your PATH. - Run ./launch.sh (macOS, Linux, FreeBSD) or ./launch.cmd (Windows). This will start a bot launcher, which will restart the bot when the process closes. Alternatively, you can run
node dist/index.jsto start the bot only once (it will still rejoin when kicked).
License
Copyright © 2020-2026 7cc5c4f330d47060. This project is free software licensed under the GNU Affero General Public License, version 3 or later. Using, modifying, and distributing this code is allowed, even for commercial purposes. If you make any copies of this software, you must link back to this repository. If you make any changes to the software, you must make your changes free as well. See the License file for the full terms and conditions.