Consolidate bot runtime on Minecraft 26.3

This commit is contained in:
Tanner
2026-11-04 03:05:23 +00:00
parent b6f7ce9948
commit f7f58f5d07
15 changed files with 706 additions and 537 deletions
+14 -11
View File
@@ -1,11 +1,13 @@
# Mosfet Minecraft Bot
A general-purpose Minecraft 1.16 bot written in Python that uses an actual
Minecraft account to play.
A Minecraft 26.3 bot written in Python that uses an offline-mode account to
play. The connection path targets protocol 777; older Minecraft protocol
versions are not supported.
Mosfet is able to farm wood by cutting trees, farm crops, gather sand, farm
netherwart, and trade with villagers to get emeralds. He can eat, sleep, and
flee from threats.
The original bot included wood/sand/crop farming, villager trading, eating,
sleeping, and threat avoidance. On the current 26.3 runtime, path following and
crop harvest/replant are migrated; other legacy jobs remain unavailable until
ported to protocol 777.
## Requirements and setup
@@ -35,9 +37,9 @@ through environment variables as needed. Microsoft authentication is not used.
The 26.3 client now handles AuthMe, chat commands, chunk/world-state caching,
modern block/item/entity data, entity tracking, read-only inventory/component
sync, and path-following movement (`1goto x y z`). Inventory actions, block
breaking/placing, and farming/trading jobs remain disabled until their 26.3
packets are migrated. The default server is
sync, path-following movement (`1goto x y z`), and the crop harvest/replant loop
(`1farm crops`). General inventory/window actions and the other farming/trading
jobs remain disabled until their 26.3 packets are migrated. The default server is
`127.0.0.1`; set `SERVER` explicitly only when you intentionally want another
server.
@@ -62,9 +64,10 @@ and all bots will run the command.
The current 26.3 command path handles public chat. Private-message routing is
not migrated yet. Verified commands are `!ping`, `!pos`, `!loaded`, `!info x y
z`, `!inv` (basic slot/count data), and addressed path movement such as
`1goto x y z`. The command catalog below is retained from the legacy bot;
inventory actions, block interaction, and farming/trading commands are not yet
available on 26.3. Common item components (names, damage, enchantments, book
`1goto x y z`, and `1farm crops`. The command catalog below is retained from
the legacy bot; other inventory actions, arbitrary block interaction, and the
other farming/trading commands are not yet available on 26.3. Common item
components (names, damage, enchantments, book
contents, and shulker contents) are decoded; unrecognized component types are
marked partial rather than silently discarded.