https://github.com/marshallovski/minecraft-bot
Simple Minecraft bot with commands (1.7.10-1.24.1)
https://github.com/marshallovski/minecraft-bot
bot game java javascript js mc mc-bot minecraft minecraft-bot node nodejs
Last synced: 3 months ago
JSON representation
Simple Minecraft bot with commands (1.7.10-1.24.1)
- Host: GitHub
- URL: https://github.com/marshallovski/minecraft-bot
- Owner: marshallovski
- License: mit
- Created: 2025-03-16T19:32:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-22T16:03:02.000Z (over 1 year ago)
- Last Synced: 2025-10-03T16:40:31.455Z (9 months ago)
- Topics: bot, game, java, javascript, js, mc, mc-bot, minecraft, minecraft-bot, node, nodejs
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# minecraft-bot
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).
# Commands
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!
# Command Example
Create `command.js` file and place it in `commands` folder.
```js
export default {
name: "test",
run: async (client, ev) => {
client.chat("Yo! A custom command!");
}
}
```
# Installation
1. Clone this repo: `git clone https://github.com/marshallovski/minecraft-bot`
2. Open your terminal in folder `minecraft-bot`
3. Install packages: `npm i`
4. Execute `npm run test` (for developing purposes; for stable mode: `node .`)