Minecraft bots that build cactus farms in Minecraft Survival Mode. Created using Javascript (Node) and the Mineflayer library.
Note: The bots will dig down the pillars below them after they build up to the top
Clone this repository and run
npm install
-
Update
config.json
. An example of one is in the examples folder. -
In the terminal, run
node index.js
This will spawn all the bots one by one. Wait for all of them to spawn.
-
Create a flat land without any blocks in the air to let the bots build the cactus farm.
-
Run the following command to move the bots to their initial positions to build.
cactus goto X Y Z
The bots will be positioned in the following format and order.
X
,Y
,Z
indicate the Minecraft coordinates of the bot located at1
in the diagram.While choosing
numOfBots: "4"
inconfig.json
cactus goto 5.5 -60 3.5
-
Supply the bots with materials to build the cactus farm. Run the following command to start building the cactus farm from the bot's current Y coordinate upwards to the Y coordinate
Y
.cactus build Y
cactus build 60
If any of the bots have insufficient number of items to finish this build, this command fails and the bots with insufficient items will announce how much items they need in the chat.
👤 TakumiXD
- Github: @TakumiXD
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator