How gitbrou/minecraft-tweaker works
Minecraft Tweaker is a Python Minecraft companion that detects the game window and runs a transparent desktop overlay with ESP, HUD, ClickGUI, and user extensions. The main workflow is watchdog/process detection, App frame composition, then platform-specific overlay presentation; hooks and agent support are separate capabilities. The README is brief, so feature details rely on sampled source and the SOURCE INDEX; some backend and extension links are documented only by the index.
Main entry points: app.py App frame loop · draw.py Canvas drawing · watchdog.py Watchdog · process.py Game detection
Components 23
Client lifecycle
- Watchdog
minecraft_tweaks/watchdog.py - Game detection
minecraft_tweaks/process.py - Agent support
minecraft_tweaks/agent.py - Autostart
minecraft_tweaks/autostart.py
Overlay rendering
- App frame loop
minecraft_tweaks/app.py - Canvas drawing
minecraft_tweaks/draw.py - Overlay selector
minecraft_tweaks/overlay.py - Paint utilities
minecraft_tweaks/paint.py - PNG utilities
minecraft_tweaks/png.py - Animation
minecraft_tweaks/anim.py
Game features
- ESP projection
minecraft_tweaks/esp.py - ClickGUI
minecraft_tweaks/gui.py - Hotkeys
minecraft_tweaks/keys.py - Extension registry
minecraft_tweaks/extensions.py - Lifecycle hooks
minecraft_tweaks/hooks.py
Platform backends
- Windows overlay
minecraft_tweaks/_overlay_win.py - X11 overlay
minecraft_tweaks/_overlay_x11.py - Windows detection
minecraft_tweaks/_process_win.py - X11 detection
minecraft_tweaks/_process_x11.py - Win32 API
minecraft_tweaks/_win.py - X11 API
minecraft_tweaks/_x11.py - Platform input
minecraft_tweaks/_input.py
Other components
- User
Connections 27
- User → Watchdog: starts client
- Watchdog → Game detection: finds game
minecraft_tweaks/watchdog.py - Watchdog → App frame loop: runs client
minecraft_tweaks/watchdog.py - Watchdog → Autostart: configures startup
minecraft_tweaks/watchdog.py - Agent support → Game detection: uses detection
minecraft_tweaks/agent.py - App frame loop → ESP projection: draws entities
minecraft_tweaks/app.py - App frame loop → Extension registry: runs registry
minecraft_tweaks/app.py - App frame loop → ClickGUI: draws menu
minecraft_tweaks/app.py - App frame loop → Hotkeys: reads input
minecraft_tweaks/app.py - App frame loop → Overlay selector: runs loop
minecraft_tweaks/app.py - App frame loop → Canvas drawing: draws frame
minecraft_tweaks/app.py - ESP projection → Canvas drawing: draws primitives
minecraft_tweaks/esp.py - ClickGUI → Canvas drawing: draws menu
minecraft_tweaks/gui.py - Hotkeys → Platform input: reads controls
minecraft_tweaks/keys.py - Overlay selector → Windows overlay: selects Windows
minecraft_tweaks/overlay.py - Overlay selector → X11 overlay: selects X11
minecraft_tweaks/overlay.py - Windows overlay → Canvas drawing: presents buffer
minecraft_tweaks/_overlay_win.py - X11 overlay → Canvas drawing: presents buffer
minecraft_tweaks/_overlay_x11.py - Game detection → Windows detection: selects Windows
minecraft_tweaks/process.py - Game detection → X11 detection: selects X11
minecraft_tweaks/process.py - Windows detection → Win32 API: uses API
minecraft_tweaks/_process_win.py - X11 detection → X11 API: uses API
minecraft_tweaks/_process_x11.py - Windows overlay → Win32 API: uses API
minecraft_tweaks/_overlay_win.py - X11 overlay → X11 API: uses API
minecraft_tweaks/_overlay_x11.py - Paint utilities → Canvas drawing: uses primitives
minecraft_tweaks/paint.py - Extension registry → ESP projection: registers ESP
minecraft_tweaks/extensions.py - Lifecycle hooks → App frame loop: runs callbacks
minecraft_tweaks/hooks.py