Client-side ComputerCraft player automation for Minecraft 26.3 (Fabric) — mirror with built jar for testing.
  • Java 97.8%
  • Dockerfile 1.8%
  • Shell 0.3%
  • PowerShell 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
muse-lantern 054fcdbd25
Some checks failed
build / build (push) Has been cancelled
Move power buttons to a sidebar tab; terminal is its own element
The buttons were inside the terminal widget's rect, on top of the
first text column — the red power icon covered the "C" of "CraftOS"
and the second button covered the first characters of the lines
below. The text was never clipped; it was covered.

Structure now mirrors CC:T's TurtleScreen (read from the CC:Tweaked
source): the terminal is its own element, separate from the background
texture and the slot layout. The screen is 17 (sidebar) + 254 wide;
the texture is blitted at leftPos + 17; the terminal stays at
texture-relative (8, 8) — it does not move — and the tab sits at
leftPos, topPos + 8, aligned with the terminal, with the buttons at
ComputerSidebar's (+4, +5) and (+4, +21) offsets. Power on top,
CC:T's terminate below (mirroring Ctrl+T, per Zach's 3d12fa9).
Slots move with the texture via AutoplayerMenu.SIDEBAR_WIDTH.

Zach's mouseClicked priority routing is removed: with the buttons
outside the terminal, the terminal never swallows their clicks. The
now-unused REBOOT_ICON constant is removed (the reboot sprite file
is left in place, harmless).

Verified on lantern-vm under xvfb (guiScale 1): "CraftOS 1.9"
whole, power + terminate buttons visible in the tab outside the
panel's left edge, terminate tooltip shows on hover. Click-through
not verified here (xdotool clicks do not fire in this Xvfb session)
— Zach's local test.
2026-11-30 21:31:27 +00:00
.devcontainer Add VS Code devcontainer (Temurin 25, Gradle, xvfb for headless runClient) 2026-11-30 04:38:40 +00:00
.github/workflows Scaffold slice 1: template-based Fabric mod for Minecraft 26.3 2026-11-15 04:22:11 +00:00
gradle/wrapper Scaffold slice 1: template-based Fabric mod for Minecraft 26.3 2026-11-15 04:22:11 +00:00
src Move power buttons to a sidebar tab; terminal is its own element 2026-11-30 21:31:27 +00:00
.gitattributes Scaffold slice 1: template-based Fabric mod for Minecraft 26.3 2026-11-15 04:22:11 +00:00
.gitignore Scaffold slice 1: template-based Fabric mod for Minecraft 26.3 2026-11-15 04:22:11 +00:00
build.gradle Slice 2: CraftOS terminal + virtual FS + custom inventory screen + Mod Menu config 2026-11-30 00:28:31 +00:00
gradle.properties Slice 2: CraftOS terminal + virtual FS + custom inventory screen + Mod Menu config 2026-11-30 00:28:31 +00:00
gradlew Scaffold slice 1: template-based Fabric mod for Minecraft 26.3 2026-11-15 04:22:11 +00:00
gradlew.bat Scaffold slice 1: template-based Fabric mod for Minecraft 26.3 2026-11-15 04:22:11 +00:00
LICENSE Scaffold slice 1: template-based Fabric mod for Minecraft 26.3 2026-11-15 04:22:11 +00:00
README.md Scaffold slice 1: template-based Fabric mod for Minecraft 26.3 2026-11-15 04:22:11 +00:00
settings.gradle Scaffold slice 1: template-based Fabric mod for Minecraft 26.3 2026-11-15 04:22:11 +00:00
src.java.ps1 add helper scripts for java loader 2026-11-29 21:32:49 -08:00
src.java.sh add helper scripts for java loader 2026-11-29 21:32:49 -08:00

CC Autoplay

A client-only Fabric mod for Minecraft 26.3 that puts ComputerCraft on the client: the local player becomes 100% drivable through ComputerCraft Lua, regardless of what the server runs. Mouse and keyboard still work — the automation is an alternative input path, not a replacement.

Requires CC: Tweaked 1.121.0.

Naming note: the repo and project are "CC Autoplay", but the mod id is currently cc-autoplayer (kept from the template). Whether to rename the id to cc-autoplay is an open decision for the project owner.

Design

  • In-game terminal. Programs run in a terminal on the client, backed by a virtual filesystem:
    • / is per-server (.minecraft/cc-autoplay/servers/<hashed-server-ip>) or per-local-world (.../servers/local-<uuid>, with the uuid stored in the world as world/.ccautoplay.uuid.txt).
    • /rom is the standard read-only CraftOS ROM.
    • /.player/ is .minecraft/cc-autoplay/.player, persistent across worlds and servers (name WIP — ComputerCraft, Automated Player).
  • Mixin shim, config-gated. By default CC: Tweaked registers its items and tags as if loaded directly (for servers that run CC: Tweaked, and single-player). On servers without CC: Tweaked, registration is ceased and CC: Tweaked loads as a library only — disabling registration is what prevents phantom-content issues there.
  • Data models. world is only what the server gives the client; reach is the lower-ranged interaction model for peripherals — furnaces, crafting tables, doors, anything interactable.
  • Rules. Code wins 100% unless Ctrl+T is held to stop the running process. Interactions are capped at 20tps so nothing spams faster than a human could. Anti-cheat flags are accepted as a fact of life.
  • The "100%" scope: movement, look, attack, interact, jump, sprint, sneak, hotbar/inventory served as storage peripherals (same as equipment slots), chat.send, chat.recv events.

Status

Slice 1: scaffold only — the mod compiles, loads, and logs on init. No terminal, no peripheral, no mixins, no gameplay code yet.

Build

Requires JDK 25 (Minecraft 26.x targets Java 25).

./gradlew build

Toolchain

  • Minecraft 26.3 (calendar versioning — no more 1. prefix)
  • Fabric Loader 0.20.1, Fabric API 0.166.2+26.3, Fabric Loom 1.19-SNAPSHOT
  • CC: Tweaked 1.121.0 (Fabric, Modrinth version M5LJB9s0)
  • Gradle 9.8.2, Java 25

Note: Minecraft 26.1+ ships unobfuscated, so there are no Yarn mappings for 26.x and no remap step — Loom runs in no-remap mode (net.fabricmc.fabric-loom plugin id) and dependencies use plain implementation instead of modImplementation.

License

CC0 1.0 Universal — carried over from the template; the project owner may change this.