A simple & easy CLI injector for Minecraft: Bedrock Editon meant to aid in development of native mods.
-
Supports both UWP & GDK builds of Minecraft: Bedrock Edition.
-
Integrates well in various pipelines when developing native mods.
- Download the latest release.
- Start your preferred terminal such as Command Prompt or PowerShell & run
MCBE.CLI.Launcher.exe.
| Argument | Description |
|---|---|
--terminate |
Terminate Minecraft: Bedrock Edition, if its already running. |
--initialized |
Wait for Minecraft: Bedrock Edition to fully initialize when launching. |
--launch <path> |
Launch & inject the specified dynamic link library into Minecraft: Bedrock Edition. |
Important
- If the game is crashing when loading in a mod then try using the
--initializedargument. - This will have the tool wait the game to be fully initialized before injecting any dynamic link library but might result in delayed injection.
-
You can directly invoke the tool via your preferred terminal.
-
You can use it in scripts in various pipelines.
:: Terminate any running instance of the game. MCBE.CLI.Launcher.exe --terminate :: Build our native mod using our preferred toolchain. Build.cmd :: Inject our native mod into a fresh instance of the game. MCBE.CLI.Launcher.exe --launch Dynamic.Link.Library.dll --initialized
-
Download the .NET SDK.
-
Run the following command to compile:
dotnet publish "src\MCBE.CLI.Launcher.csproj"