Skip to content

Moudoux/EDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

The EMC (Easy Minecraft Client) Development Kit

Moved to GitLab

EMC has moved to GitLab, at https://gitlab.com/EMC-Framework/EDK

About

Development kit for EMC

Setting up your IDE to develop with EMC

Make a new gradle project and match your build.gradle file with the example one

Making your first mod with EMC

  1. 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.
  2. 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

}
  1. Create the main class you specified in the client.json file.
  2. Extend your class by EMCMod, add the required methods.
  3. 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.

Packaging your mod for installation

For more info on how to package your mod for installation please see EMC-Installer#building-and-bundling-mods

License

EMC is licensed under GPL-3.0