Skip to main content

๐Ÿค–๐Ÿ“ฆ Deliver anything, anywere! powered by MineFlayer.

Project description


YouAgent

Open Delivery Bot ๐Ÿ“ฆ

๐Ÿค–๐Ÿ“ฆ Deliver anything, anywere! powered by MineFlayer.

Node version Python javascript Hungarian

About โ€ข Key Features โ€ข How To Use โ€ข Install โ€ข Credits โ€ข License

About ๐Ÿ“ฌ

Welcome to the Open Delivery Bot project! This open-source initiative empowers users to deploy a self-hosted delivery bot, offering an array of advanced functionalities. Our command-line interface (CLI) or remote web GUI allows effortless control and management, ensuring a seamless experience. ๐Ÿค–

Open Delivery Bot shines with its dynamic features, including pathfinding and optimized elytra flight, accelerating your delivery processes for utmost efficiency. Say goodbye to manual intervention and embrace automation! ๐Ÿ“ฆ

Getting Started ๐Ÿ

[!IMPORTANT] Some parts of the code are still in development and do not work!

๐Ÿ Local Setup

Here are step-by-step instructions on how to install and run the python script:

(1) Install Node.js ๐ŸŸข (2 simple steps)

  1. Download and install Node.js 18 from https://nodejs.org/en/
  2. Verify installation:
node -v

(2) Install Python ๐Ÿ (2 simple steps)

  1. Download and install Python 3 (if not already installed) from https://www.python.org/downloads/
  2. Verify installation:
python3 --version

(3) Install pip โฌ (2 simple steps)

  1. Install pip3 (if not already installed):

Mac/Linux:

sudo apt install python3-pip  

Windows:

py -m ensurepip --default-pip
  1. Verify installation:
pip3 --version

(4) Clone ๐Ÿ’ป (2 simple steps)

  1. Clone this repository ๐Ÿด
git clone https://github.com/SilkePilon/OpenDeliveryBot.git
  1. Navigate into the repo directory ๐Ÿ“‚
cd OpenDeliveryBot  

(5) Install packages ๐Ÿ“ฆ (1 simple step)

  1. Use pip to install needed packages
pip install -r requirements.txt

(6) Config.json ๐Ÿ“„ (1 step)

[!IMPORTANT] Not changing these settings will result in the bot not working. ๐Ÿ›‘

[!WARNING] Do not share this file to anyone as it may contain your Minecraft login details. ๐Ÿ”’

How to change to config file

The settings you NEED to edit are:

  • Username: The Minecraft Email the bot will log into (use a name and no password for a cracked account). ๐Ÿ“ง
  • Password: The password for your account (if not using cracked). ๐Ÿ”‘
  • Host: The IP address or hostname of the Minecraft server. ๐Ÿ–ฅ
  • Port: The port number the Minecraft server is listening on. Default is 25565. โšก
  • Auth: The authentication method your account requires (mojang/microsoft/cracked). Default is "microsoft". ๐Ÿ”
  • Version: Minecraft version to use when connecting to a server. Default is auto. ๐Ÿ•น
  • CheckTimeoutInterval: How often in milliseconds the bot checks if it is still logged into the server. Default is 600000 (10 minutes). โฑ
  • ViewerPort: The local port to run the viewer server on so you can visually see what the bot is doing. Default is 8000. ๐Ÿ‘€
  • Goto: The x, y, z coordinates for the bot to navigate to. Default is ["100", "100", "100"] (x=100, y=100, z=100). ๐Ÿ—บ
  • ChestRange: How close a chest must be to the bot for the bot to pathfind to it. Default is 100 blocks. ๐Ÿ“ฆ
  • InitChestType: The type of chest for the bot to get items from. Default is "Chest". ๐Ÿ—„
  • InitChestCords: The coordinates of the initial chest. Default is ["100", "100", "100"] (x=100, y=100, z=100). ๐Ÿ“
  • InitItemsName: The name of the item(s) to get from the initial chest. Default is "SchulkerBox". ๐ŸŽ’
  • InitItemsCount: The number of items to place in the initial chest. Default is 1. ๐Ÿ”ข
  • ClientUsername: The username for the client the delivery is made to. Default is "OpenDeliveryBot". ๐Ÿ‘ค

[!NOTE] Setting InitChestCords to ["0", "0", "0"] will make the bot look for chest with the specified type in a 100 block radius. This can be helpful if the chest is moving a lot. Make sure to use a trapped chest as it's easier to find.

This is how the file looks like in its default state:

{
    "Username": "OpenDeliveryBot",
    "Password": "<PASSWORD>",
    "Host": "127.0.0.1",
    "Port": 25565,
    "Auth": "microsoft",
    "Version": "auto",
    "CheckTimeoutInterval": 600000,
    "ViewerPort": 8000,
    "Goto": ["100", "100", "100"],
    "ChestRage": 100,
    "InitChestType": "chest",
    "InitChestCords": ["100", "100", "100"],
    "InitItemsName": "SchulkerBox",
    "InitItemsCount": 1,
    "ClientUsername": "OpenDeliveryBot"
}

(6) Run the bot ๐Ÿค– (1 simple step)

[!IMPORTANT] If the console gets spammed with random data, try changing the version from false to a version you know is supported by the server.

  1. Run the bot
python3 main.py

Enjoy automated deliveries! ๐ŸŽ‰

๐Ÿš€ GitHub Codespaces

[!IMPORTANT] If the console gets spammed with random data, try changing the version from false to a version you know is supported by the server.

  1. Copy this code to you clipboard and run it once the terminal is available
./codespaces.sh
  1. Open GitHub CodeSpaces below

Open in GitHub Codespaces


Roadmap

  • Add config.json file
  • Add click
  • Change to use as Pip package for better use
  • Add Discord integration to remote control the bot in a channel

MineFlayer ๐Ÿš€

Mineflayer is a complex library that allows you to control Minecraft accounts through a powerful, stable, and high-level JavaScript API

Discord

SOON!

Credits

MineFlayer


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opendeliverybot-0.1.2.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

opendeliverybot-0.1.2-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page