Minecraft bot made for SMP
bot
Find a file
2025-04-26 17:39:49 +02:00
lang first commit 2024-08-17 17:59:25 +02:00
.gitignore first commit 2024-08-17 17:59:25 +02:00
config.json.example initialPos.onSpawn to false by default 2024-08-17 18:02:02 +02:00
demo.mp4 Upload files to "/" 2025-04-26 17:38:06 +02:00
index.js first commit 2024-08-17 17:59:25 +02:00
LICENSE Create LICENSE 2024-08-17 18:07:32 +02:00
package.json first commit 2024-08-17 17:59:25 +02:00
README.md Update README.md 2025-04-26 17:39:49 +02:00
utils.js first commit 2024-08-17 17:59:25 +02:00

Warning

This is an early project, expect breaking changes everywhere.

Initially made this for my SMP, but I'm uploading it for anyone that wants to use it or anything.

Current features:

  • Storing and searching stuff in a storage.
  • Going to places.

Adding more stuff in the future, don't worry.

Usage

Rename config.json.example to config.json and modify it to your needs:

Setting Description
authType How your bot authenticates. Available options: microsoft, mojang (deprecated), offline.
offlineUsername Username used by the bot when login. This is only used for offline mode.
initialPos.onSpawn Walk to the initial position on spawn.
initialPos.coords Resting position for the bot after spawning or finishing actions.
server.host IP of the server to connect.
server.port Port of the server to connect.
server.version Version of the server to connect. You can set this to any version supported officially by Mineflayer.
chat.lang Specify language file for chat messages. Available options: en, es.
chat.onLogin List of messages to chat after logging in.
chat.sleepTime Wait time between messages on ticks.
validStorageChests Region of storage to get and put items. Currently only 1, more in the future. Has two parameters, "corner1" and "corner2".
npm install
node index.js

Whisper to the bot any command you want with /w.

Available commands:

  • find <item>: Search for items in the storage and drop them.
  • deposit: Deposit all items on the bot's inventory in the storage.
  • stop: Stop anything the bot is doing.
  • savepos: Change the initial position to current bot position.
  • goto <x> <y> <z>: Set goal to said position.
  • tossall: Drop all items on the bot's inventory to the floor.

Demo