Jump to content

Adding Custom EMC values for ProjectE?


tomatoBhutan

Recommended Posts

I want to add EMC values for my mod, but there seems to be no information on how to do this. Everything I find says to use a command, which is useless. I want a better, easier way to add EMC values.

 

edit: on a side note, the custom license for ProjectE found in CurseForge, found below, doesn’t mention ANYTHING about making derivations (forks) of the mod at all. Really! So is it allowed/legal to make a mod derived from ProjectE?

 

https://www.curseforge.com/minecraft/mc-mods/projecte

Edited by tomatoBhutan
Link to comment
Share on other sites

On ProjectE's wiki, it mentions an EMC mapper API. Digging through the mod's source code, you can get an instance of an EMC proxy (used to register EMC values) from the API's class. All you have to do then is use the provided registerCustomEMC() methods. You can search on GitHub for other mods using this API, if you need to.

  • Thanks 1

I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.

Link to comment
Share on other sites

5 minutes ago, tomatoBhutan said:

Can I use the custom EMC values I add in my modpack?

The values you define with the API as I mentioned will work in modpacks, yes. Modpack makers can still use the  custom_emc.cfg config file to change the EMC of objects added by your mod and other mods (from what I understand, at least). That's what I assume the commands are for.

I'd recommend reading the wiki page for details.

I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.

Link to comment
Share on other sites

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.