Skip to content

Instantly share code, notes, and snippets.

View DarkBlueStealth's full-sized avatar

DarkBlueStealth DarkBlueStealth

View GitHub Profile
@DarkBlueStealth
DarkBlueStealth / Main.py
Last active February 9, 2024 23:51
Optimized version of BK Binary's Minecraft inside Terraria, reaches up to 20 FPS on my computer. I noticed a bug, if I switched into minecraft it would give off an error. Also another unknown bug might happen, if anyone finds the fixes please let me know!
# Reduced runtime from 5 FPS to 20 FPS.
import time,dxcam
from PIL import Image, ImageGrab
import pygetwindow as gw
import pyautogui
# Defining the camera
Camera = dxcam.create()