A simple bot for Minecraft built with Mineflayer. This bot can move, break blocks, and interact with players in the game.
- Responds to player chat messages.
- Moves forward for a specified time.
- Breaks blocks.
- Can be expanded to include pathfinding, inventory management, and more.
- Node.js: Install from Node.js official website.
- Minecraft Java Edition: A server to connect the bot.
-
Clone the repository:
git clone https://github.com/PgNetwork01/minecraft-bot-creation.git cd minecraft-bot-creation
-
Install dependencies:
npm install
-
Configure the bot: Open the
bot.js
file and update thehost
andport
fields to match your Minecraft server settings. -
Run the bot:
node bot.js
- Start your Minecraft server and connect your player.
- Run the bot using the command above.
- Interact with the bot by sending chat messages in the game.
This bot is built with the Mineflayer library, which allows for additional features like:
- Advanced movement with
mineflayer-pathfinder
. - Inventory management.
- Automated tasks like farming, mining, or crafting.
To add these features, install and configure relevant plugins:
npm install mineflayer-pathfinder
- Ensure the Minecraft server is running and accessible.
- Check the bot's
host
andport
configuration. - Use
console.log
statements inbot.js
to debug issues.
- Mineflayer Documentation: https://github.com/PrismarineJS/mineflayer
- Pathfinding Plugin: mineflayer-pathfinder
- Minecraft Server Setup: Minecraft Wiki
This project is licensed under the MIT License. See the LICENSE file for details.
Created by Pg Network.