Jump to content

Recommended Posts

Posted (edited)

So you have written your first coremod yay. You compile and put it in your libs workspace. Ok now how do I reobfuscate and embed it into the jar automatically rather then manually each time. Currently I have the meta-inf working automatically.

Forge greatly stresses to embed your coremod for 1.12x yet provides no way of simply doing this using the default build.gradle that I can find. Help me???? Currently I only have the met-inf working on compile I need my libs/coremod-deob.jar to become coremod-reob.jar when compiled inside of the jar.

build.gradle

You will notice the build gradle fails I tried some code I found on other forums that's also in there

Edited by nullsector76
Posted

First can I ask what this coremod does?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted (edited)
  On 2/19/2019 at 5:02 AM, DaemonUmbra said:

First can I ask what this coremod does?

Expand  

a test. it will eventually be used to disable the combat system and have old combat system. currently only executes printlines to notify that it has run and found EntityPlayerMP.class

Edited by nullsector76
Posted

Congrats, you're making a stupid coremod. Not only is it a horrible idea, it's been done about 10,000 times before. So stop doing it.

As for how to embed jars in your jar... Gradle has very good documentation on how to copy files into an archive.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

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.