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
Accept cookies so your theme is remembered.
Hi! This site can remember you between visits using cookies. What should I call you?
Only your name, the chosen theme and the time of your last visit are stored. You can change or erase them at any time. Technical cookies for administrator sign-in are used separately.