Time for some Scalaĭelete the java directory (nuke it from orbit, it's the only way to be sure). Will create 'Run Client' and 'Run Server' run configurations, so booting the client will be as simple as hitting Ctrl+R. Importing the project doesn't automatically create any run configurations, but ForgeGradle comes with a little helper to do that for IntelliJ.
and select the adle file in your mod directory. Just hit the 'Import Project' button in IntelliJ. Fortunately it's super easy to set up IntelliJ with Forge. I really like using IntelliJ for making Minecraft mods, because it makes it super easy to browse through the deobfuscated Minecraft source code, which is often the only way to figure out how anything works.
Because I want to write my mod in Scala, I'm going to open up the adle and add this line before I do anything else: This will dump a bunch of files into the current directory, something like this. To get this going, you'll want to unzip the template into a new directory $ mkdir mymod & cd mymod This contains a template project that uses gradle as a build system, hooking into ForgeGradle for its dirty work (decompiling and deobfuscating Minecraft, applying various patches, and so on). Getting startedįirst up you're going to want to fetch the latest Forge MDK from, something like this: $ curl -O Mojang seems to be fine with this.įorge is built on top of MCP-it takes the decompiled and deobfuscated source, then tweaks it a bunch, adding hooks in various places that your mod can attach itself to through an extensive set of source code patches. Microsoft but still hosts files on Mediafire? MCP is essentially a set of scripts that takes the official Minecraft jar files, decompiles them, and renames all the obfuscated variables and classes. I have no idea who, possibly this guy who appears to work at Mojang i.e.
Minecraft doesn't have an official mod API (despite early promises), so all mods are built off a decompiled version of the source code called Mod Coder Pack, maintained by.
I'm assuming you have some proficiency with your operating system, so I won't go into details about how to adapt those commands to your system. I'm also developing on OS X, so some of the commands will be a little different if you're on Linux or Windows. clojure or if you're feeling masochistic, Java). I'll be using Scala for this guide, but it should be fairly easy to adapt these instructions to any JVM language (e.g. I'm documenting here the steps I went through to get started, in the hopes of helping the next person have an easier time of it. If you visit their website, you'll be greeted abruptly by a mysterious message at the top of an SMF forum, with no clear path towards actually. Minecraft mods, especially mods which change the client, are by and large written with Forge.