Simple Minecraft bot with commands and command handler.
Supported Minecraft versions: 1.7.10-1.24.1 (and possibly newer, depends on a minecraft-protocol library).
Default command prefix is !, but you can change it in config.json file.
Available commands: !hello, !disconnect, !clientSpammer.
But, of course, you can write your own commands!
Create command.js file and place it in commands folder.
export default {
name: "test",
run: async (client, ev) => {
client.chat("Yo! A custom command!");
}
}- Clone this repo:
git clone https://github.com/marshallovski/minecraft-bot - Open your terminal in folder
minecraft-bot - Install packages:
npm i - Execute
npm run test(for developing purposes; for stable mode:node .)