★ One day, there will be something interesting here, but for now, there's only this text ★
JeffryFremilimy own project and blog
bots for YOUR OWN Minecraft server (offline accounts) + control console.

bots for YOUR OWN Minecraft server

Test bots for YOUR OWN Minecraft server (offline accounts) + control console.

A custom implementation of the protocol, WITHOUT external libraries (only standard Python 3.8+). Supports Java Edition 1.20.2 and newer (including 1.21.x). Descriptions of packets, blocks, items and mobs for the required version are downloaded from minecraft-data (PrismarineJS) and cached in the mc_data_cache folder next to the script.

The server must have: online-mode=false

Modes: (without --smart) a simple client: connects to the server, responds to keepalive, sends position. No physics, no chunks, no "brain". --smart a full-fledged bot (SURVIVAL required!): physics and knockback, A* navigation with digging tunnels, mining blocks with a "held left button", wood -> crafting table -> wooden, stone, iron tools (furnace + coal), hunting for food and consuming it, fleeing from creepers, combat (with a sword, if available), inventory. Then - free travel and mining.

Examples: python mc_testbots.py --host 127.0.0.1 --count 5 --random-names python mc_testbots.py --count 3 --smart --random-names --reconnect-on-kick ^ --cmd "/register {name}pass {name}pass" --cmd "/login {name}pass" python mc_testbots.py --list-versions

Project files
Mc Bot
mc_data_cache
dataPaths.json 88.5 KB View Download
pc__1.21.9__blocks.json 839.1 KB View Download
pc__1.21.9__entities.json 82.6 KB View Download
pc__1.21.9__items.json 180.8 KB View Download
pc__1.21.9__protocol.json 315.3 KB View Download
pc__common__protocolVersions.json 122.6 KB View Download
commands.txt 0 B View Download
mc_testbots.py 129.3 KB View Download
Files: 81.7 MB