Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How to create a core/lib mod?


Geforce
 Share

Recommended Posts

Hello everyone,

 

How would you go about in making a "core" mod? I'm not talking about the coremod in FML that can be used to patch Minecraft classes, I'm talking about API-type mods like CodeChickenCore, which adds code that other mods can use. I'm fine with code creation, but how would I use it in eclipse? Would I have to create the coremod's code in one workspace, re-build it with gradlew build, then add the .jar to a second workspace's build path to use it in another mod? I'm pretty sure there has to be a easier way.

 

Anyway, thanks for reading.

~Geforce

Potato's have skin. I have skin. Therefore, i am a potato.

 

Follow me on Twitter!

http://www.twitter.com/I_Mod_Minecraft

Link to comment
Share on other sites

You can publish your library mod to a Maven repository and use Gradle to compile it/add it to the workspace. Or, you could use Git submodules, which is basically having one repo (a submodule) embedded inside another and then instructing Gradle to compile it. The latter is the setup I am currently using for my mod and OpenBlocks is using.

Don't make mods if you don't know Java.

Check out my website: http://shadowfacts.net

Developer of many mods

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

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