Skip to content
/ idk Public

idk is a minecraft inventory bot. Deposit and withdraw items from a storage area of chests. All the items are shown on a website and you can control the bot from there. No redstone required!

Notifications You must be signed in to change notification settings

lazydancer/idk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


idk is a minecraft inventory bot.

Deposit and withdraw items from storage. All the items are shown on a website and you can control the bot from there. No redstone required!

AboutInstallation

About

Divided into 3 parts:

  • Website
  • Inventory
  • Player

Website

Website

This displays and controls the items available in your inventory. Withdraw and deposit items from here

Built with svelte and tailwind.css,

Inventory

A simple api to take requests from frontend:

  • list
  • withdraw
  • deposit

Model of the inventory system and a majority of the logic. Takes the inputs above and converts them into actions to be run by the player. Task completion updates database

Built with: typescript and postgres

Player

Storage

Base action performer, listens for requests from inventory takes the following actions:

  • move (moves the players position by a breadth-first pathing)
  • open
  • close
  • left click
  • right click

Built with: javascript and mineflayer

I've written more about it on my website pucula.com/idk

Installing

Since this is a personal project, sorry I haven't spend much time to help with installation process. You'll need:

  • A Minecraft account
  • Postgres database
  • Minecraft server running 1.20.1 (lower versions might work)
  • The storage layout setup on the server:
 ■■ ■■■■ ■■■■ ■■■■ ■■
 ■■ ■■■■ ■■■■ ■■■■ ■■
 ■■ ■■■■ ■■■■ ■■■■ ■■
 ■■ ■■■■ ■■■■ ■■■■ ■■
 ■■ ■■■■ ■■■■ ■■■■ ■■
                     
   ■
   ▣ <-- build.location (build anchor / chest)

^ build.direction - ('east'|'north'|'south'|'west')

Both build and location and direction can be found on f3 screen

build.width is number rows across. In this case 4 build.depth is number of blocks deep the storage is. In this there is 5

Configurate in back/config.json

{
    "database": {
        "host": "localhost",
        "database" : "<dbname>",
        "user": "<username>",
        "password": "<password>",
        "port": 5432
    },
    "minecraft": {
        "host": "localhost",
        "port": 25565, 
        "email": "<minecraft email>",
        "password": "<minecraft password>"
    },
    "build": {
        "location": [-5327, 300, 6903],
        "direction": "east",
        "width": 4,
        "depth": 5,
        "stations": 1
    }
}

A user will need to be added, with the username matching the minecraft name and a token

To run,

  • Start Website: cd front, npm install, npm run dev
  • cd .. = Start Bot: cd back, npm install, npm start

About

idk is a minecraft inventory bot. Deposit and withdraw items from a storage area of chests. All the items are shown on a website and you can control the bot from there. No redstone required!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published