EMC has moved to GitLab, at https://gitlab.com/EMC-Framework/EDK
Development kit for EMC
Make a new gradle project and match your build.gradle file with the example one
- Create a file called
client.json
in the root of your project, this file is used so that EMC can find your main class and info about your mod. - In that file add the following:
{
"name":"Example mod",
"website":"https://github.com/Moudoux/Example-EMC-Mod",
"author":"Deftware",
"minversion":13.2,
"version":1,
"main":"me.deftware.mod.Main.Main",
"updateLinkOverride": false
}
- Create the main class you specified in the
client.json
file. - Extend your class by
EMCMod
, add the required methods. - Here's a example of a main class:
package me.deftware.mod;
import me.deftware.client.framework.event.Event;
import me.deftware.client.framework.event.events.EventClientCommand;
import me.deftware.client.framework.main.EMCMod;
import me.deftware.client.framework.wrappers.IChat;
public class Main extends EMCMod {
private EMCModInfo modInfo;
@Override
public void initialize() {
// Mod name, mod version
modInfo = new modInfo("Example mod", "1");
}
@Override
public EMCModInfo getModInfo() {
// This is used for the framework to know what mod this is
return modInfo;
}
@Override
public void onEvent(Event event) {
// Handle event
}
}
If you want more help you can check out this Example mod made with EMC.
For more info on how to package your mod for installation please see EMC-Installer#building-and-bundling-mods
EMC is licensed under GPL-3.0