Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
Hook up any AI to Minecraft. No drama, no complex APIz.
Thiz mod letz ChatGPT, DeepSeek, Claude, Llama, or your own neural net control a player in zingle-player. Juzt two filez: commands.txt for input, data.txt for ztate. Write commandz, read whatz happening, loop it.
How it flowz:
Launch Forge with zee mod inztalled.
Zee mod creat ez both filez in your .minecraft folder.
Your AI dropz commandz like rotate_yaw: 90 or hold: w: 2.0 into commands.txt.
Zee mod executez, clearz zee file, and writ ez player ztate to data.txt — pozition, health, inventory, nearby entitiez.
Your AI readz data.txt and figurez out whatz next.
Boom. Full loop. Agent playing Minecraft.
Commandz:
Movement: hold: w: 2.0, release: w, jump, sneak: on, sneak: off, sprint: on, sprint: off
Look: rotate_yaw: 90, rotate_yaw: -45, rotate_pitch: -10, rotate_pitch: 15, look_at_center
Clickz: click: left, click: right, hold_click: left: 1.5, hold_click: right: 0.5
Inventory: press: 1, press: 2, drop, swap_hands
Info: request_state
P.Z. write commandz without "space" example - "click:left"
State format (data.txt):
pos: 150.5:64.0:300.2 yaw: 45.0 pitch: -10.0 health: 20.0 food: 18.0 hotbar: [stone, dirt, diamond_sword, empty, ...] selected_slot: 2 looking_at: air nearby_entities: [zombie: 5m, cow: 8m] Readable. No JSON.
Inztall:
Grab Forge 1.20.1 (build 47.x).
Drop aiconnector-1.0.0.jar into .minecraft/mods/.
Launch with Forge profile.
Join a world — zingle-player only, we aint tryna catch a ban.
Check .minecraft — both filez gonna be there.
Python bridge example:
"import time
COMMANDS = "C:/Users/You/AppData/Roaming/.minecraft/commands.txt" DATA = "C:/Users/You/AppData/Roaming/.minecraft/data.txt"
def send(cmd): with open(COMMANDS, "w") as f: f.write(cmd + "\n")
def read_state(): with open(DATA, "r") as f: return f.read()
send("rotate_yaw: 90") time.sleep(0.5) send("hold: w: 2.0") time.sleep(2.5) print(read_state())"
Workz with: ChatGPT, DeepSeek, Claude, Llama, other LLM'z, local LLMz and agentz.
P.S. If ya uze API or web verzion modelz — add a Python zcript that takez LLMz answerz and dropz 'em into commands.txt.
Warningz:
Client-only. Single-player only. Zerierz? You gonna get banned.
No anti-cheat bypass. We aint breakin' zhit.
Forge 1.20.1, build 47.x. Other verzionz? You on your own, homie.
Contributing: Pull requeztz welcome. Bugz? Open an issue. Ideaz? Hit uz up.
Why thiz mod? Cauze AI agentz deserve to play Minecraft too. No gatekeeping. Juzt text filez and vibe.
Licenze: MIT. Do whateva. Juzt dont blame uz if your agent burnz down a village.


