Minecraft Auto-Crafter
A crafting automation tool for Minecraft that drives the mouse and keyboard to mass-produce armor, tools and ingots without any manual input. Everything is driven by JSON files (recipes, screen calibration, presets).
Context
Some crafting tasks in Minecraft are repetitive and time-consuming: turning hundreds of blocks into ingots, then those ingots into gear, means thousands of identical clicks. The goal was to remove this manual work entirely with a tool that is reliable, reusable across sessions and adaptable to any screen setup, on both macOS and Windows.
Approach
The program reproduces a player's actions by simulating mouse clicks and movements through PyAutoGUI, with a keyboard listener (Pynput) for the emergency stop. Production is split into two chainable phases: phase 1 converts blocks into ingots, phase 2 assembles the final item by following the crafting grid pattern. All data is externalized: crafts.json describes the recipes (3x3 pattern, stack size), maps.json stores the calibrated coordinates per resolution along with the timings, and presets.json saves complete reusable pipelines (for example "4 copper blocks to chestplates"). A calibration system records slot positions for a given screen. Two safeguards ensure robustness: an immediate stop with the M key, and automatic detection of the interface closing, based on three reference pixels with majority voting (2 out of 3) and a tolerance, which halts the script if the inventory closes. The tool runs through an interactive menu or the command line, with looping modes (single pass, N cycles, or an infinite loop with a resupply pause and an estimated remaining time).
Results
The tool fully automates a production process that previously took a considerable amount of time in manual clicks. The JSON-driven architecture makes it possible to add a recipe or support a new screen resolution without touching the code. The project showcases the design of a robust automation tool (timing management, safety stops, interface-state detection) and a clean separation between logic, data and calibration.