Skip to content

Mqlvin/minecraft-rust-injection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust-Minecraft Client

This proof-of-concept demonstrates using Rust with jni-simple to load a native shared libray into the Minecraft JVM, and modify in-game values at runtime. This technique is commonly used in C++ based Minecraft "injection clients", which provide a DLL or EXE injected into the game to add cheats.

My proof of concept demonstrates the possibilities of this, within Rust. Why is this good? I don't know - everything is wrapped in unsafe {} anyway.

Demo GIF


How to use (Linux)

  • Ensure Minecraft is running
  • Simply run cargo build && sudo ./inject.sh

How to use (Windows)

  • Run cargo build to build the DLL
  • Using Process Hacker 2 (or another DLL-injector), inject the DLL into the Minecraft process

Contributors