Skip to content

Running the Client in the IDE

ahmed605 edited this page Jul 3, 2019 · 8 revisions

IntelliJ

Method 1 ( recommended )

  1. run Gradle task genIntellijRuns

  2. this must generate 2 run configurations in IntelliJ IDEA

  3. in the run configurations options set "Use classpath of module" to "Modern-Minecraft-Decompiler_main"

  4. Click OK and now you can run it directly from IntelliJ IDEA (green run/debug button)

Method 2

  1. from Gradle tap run runClient task

Method 3 ( not recommended )

  1. Set src->main->java folder as sources root.

  2. Create Java Application in run configuration, name it whatever you want.

  3. Set the Main Class to "mcp.client.Start"

  4. Set VM options to "-Xincgc -Xmx2048M -Xms2048M" (you can modify the ram if you want).

  5. Set "Working directory" to a new folder for Minecraft to run, preferably in the root of the project named "runclient" (also if you want to copy Minecraft assets to this folder, do it, this will fix the no sound problem) <-- you don't need to do this as of the new update

  6. Set "Use classpath of module" to "Modern-Minecraft-Decompiler.main"

  7. Click OK