Skip to content

A simple & easy CLI injector for Minecraft: Bedrock Editon meant to aid in development of native mods.

License

Notifications You must be signed in to change notification settings

Aetopia/MCBE.CLI.Launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MCBE CLI Launcher

A simple & easy CLI injector for Minecraft: Bedrock Editon meant to aid in development of native mods.

Features

  • Supports both UWP & GDK builds of Minecraft: Bedrock Edition.

  • Integrates well in various pipelines when developing native mods.

Installation

  • Download the latest release.
  • Start your preferred terminal such as Command Prompt or PowerShell & run MCBE.CLI.Launcher.exe.

Arguments

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.

Usage

Important

  • If the game is crashing when loading in a mod then try using the --initialized argument.
  • 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

Build

  1. Download the .NET SDK.

  2. Run the following command to compile:

    dotnet publish "src\MCBE.CLI.Launcher.csproj"