Minecraft Mining Bot
This repository contains a Minecraft bot programmed in JavaScript using Mineflayer to automate mining tasks in the game.
Setup
Prerequisites
- Git intalled (Download Git)
- Node.js installed (Download Node.js)
- Minecraft Java Edition installed
Installation
Clone the repository:
git clone https://github.com/Yuwen-0/mineflayer-minebot.gitNavigate to the project directory:
cd minecraft-mining-botInstall dependencies:
npm installUpdate
settings.json:
- Open `settings.json` and fill in the necessary server IP, port, bot username, and other configuration details.
Usage
Start the bot:
npm startIn Minecraft, ensure the server is running and take bot to the place you want it to start mineing at.
give the bot pickacke and torches as much as you can leave for coice 9 pick and 9 stack torch would be enough for some time bot crashes when there is no pick available
To activate the bot, use the following command in the Minecraft chat:
startMining <startPoint:x> <startPoint:y> <startPoint:z> <mineBlocksRow> <mineBlocksColumn>Replace
<startPoint:x>,<startPoint:y>,<startPoint:z>,<mineBlocksRow>, and<mineBlocksColumn>with the desired starting coordinates and dimensions for mining.
Features
- Automatic mining of various ores
- Torch placement for illumination during mining
- Inventory management (dropping items, storing in chests)
- Handling of obstacles such as lava, water, and gravel
Configuration
- Modify
settings.jsonto adjust bot credentials, server details, and behavior settings.
Dependencies
mineflayer: JavaScript library for creating Minecraft botsmineflayer-pathfinder: Pathfinding plugin for Mineflayer botsprismarine-viewer: Viewer for visualizing the bot's activities in a browser
Contributing
Feel free to contribute to this project by submitting issues or pull requests.
License
This project is licensed under the GNU License.
Built With
- javascript
- mineflayer
Log in or sign up for Devpost to join the conversation.