Skip to content

This project demonstrates how to create a Minecraft bot using the Mineflayer library. The bot can perform automated tasks such as moving, breaking blocks, placing blocks, and responding to in-game chat commands.

Notifications You must be signed in to change notification settings

PgNetwork01/minecraft-bot-creation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Minecraft Bot using Mineflayer

A simple bot for Minecraft built with Mineflayer. This bot can move, break blocks, and interact with players in the game.


Features

  • Responds to player chat messages.
  • Moves forward for a specified time.
  • Breaks blocks.
  • Can be expanded to include pathfinding, inventory management, and more.

Prerequisites


Setup Instructions

  1. Clone the repository:

    git clone https://github.com/PgNetwork01/minecraft-bot-creation.git
    cd minecraft-bot-creation
  2. Install dependencies:

    npm install
  3. Configure the bot: Open the bot.js file and update the host and port fields to match your Minecraft server settings.

  4. Run the bot:

    node bot.js

How to Use

  1. Start your Minecraft server and connect your player.
  2. Run the bot using the command above.
  3. Interact with the bot by sending chat messages in the game.

Extending Functionality

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

Troubleshooting

  • Ensure the Minecraft server is running and accessible.
  • Check the bot's host and port configuration.
  • Use console.log statements in bot.js to debug issues.

Resources


License

This project is licensed under the MIT License. See the LICENSE file for details.


Author

Created by Pg Network.

About

This project demonstrates how to create a Minecraft bot using the Mineflayer library. The bot can perform automated tasks such as moving, breaking blocks, placing blocks, and responding to in-game chat commands.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published