Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hello!

I want to make it clear that I'm not a very experienced modder, and i do not know too much of the coding itself.

 

Well, i recently followed Pahimars tutorials on YouTube(Great youtuber BTW), and in the episode concerning the mcmod.info file, i got stuck. I had followed his tutorial completely, and i tried various "versions" of the file layout but no matter what i did it was like Forge didn't really "pick it up"... I know i got the right file in the resources folder and even my friend(Who's an experienced modder) Couldn't seem to find the error. I'm quite sure that i have the right coding in the .info..

 

I already tried nearly everything i could find regarding this issue. Nothing worked.

 

I use Itellij IDEA (newest version)

And Forge (1.7.10 - Latest, as of yesterday)

And Java JDK (Newest as well)

 

Please go easy on the "You're a noob" attitude. I will try to understand as much as possible!

 

Any help appreciated,

nikko4913

  • Author

Is it just me or does that post just descripe te installation process of the environment? I just need help on the mcmod.info issue..

Thanks anyway.

-nikko4913

Did you read the third sentence?

 

If you are using Intellij 14 (which you should) you need to add the following to the end of your build.gradle before importing:

sourceSets { main { output.resourcesDir = output.classesDir } }

If you don't do that, your assets will not work. (Thanks to Cazzar for this solution)

 

mcmod.info is part of your mod's assets.

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

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

Developer of many mods

  • Author

Hey.

I now did what it said multiple times, adding the code, but i still have the same issue. I also tried moving the file around to other possible directories but nothing helps. I even tried reinstalling the workspace... Could you maybe tell me a little bit more specific about where to actually paste this code?

-nikko4913

  • Author

I already did all this, and i placed the code in the buttom. Yes it is specific, but because i didn't got it to work i assumed i did something wrong and it would be nice to get some explaining.

  • Author

No i disd not open the build.gradle and pasted the code before doing gradlew idea. So i now have tried this 2 times in a row, by just deleting the forge and files for the mod. But when i tried to install the workspace again i would no longer have the feature of running minecraft.  I then tried again, but this time i ran the clean commands from when typing gradlew tasks, it looked right, but still no minecraft for testing the mcmod.

  • Author

I just make things worse right now. I delete all the forge files to get a fresh start. When i tried to reinstall decompworkspace, it just skips the files concerning the server and client(Including a lot more.. Nealy all) I seems like it down't really install?

 

  • Author

So, i tried everything on multiple computers, but every time it fails. Now i figured out how to get the minecraft client testing thing, into Intellij again, but only with the gradlew idea. Otherwise i cannot open the client.

  • Author

Okay...

So i followed your tutorial: http://www.minecraftforge.net/forum/index.php/topic,21354.0.html

And this is exactly what i did, setp-by-step:

1. I got the newest version of Forge. And extracted the files inside, into a separate folder.

2. I opened CMD and ran gradlew tasks, followed by gradlew setupDecompWorkspace.

3. When that was done, i opened build.gradle in Notepad++, to edit the following at the complete buttom: sourceSets { main { output.resourcesDir = output.classesDir } }

4. Then i opened Intellij and clicked import project. I selected the folder where the Forge is in. I used the already selected default wrapper.

5. Intellij then runs for a minute, and i get the default screen where i can edit files. I can see that the code i entered from step 3 is at the buttom.

6. Now i cannot run the MC Client, and when trying to open the Minecraft jar, i error out.. Of cause that was a long shot, but doesn't hurt to test it.

 

There you go. This is all i have done, multiple times. What am i doing wrong?

  • Author

So this time i followed your tutorial(hopefully right this time) and when finished the genIntellijRuns, i tried running Minecraft, of cause it required a JDK, which i assigned and tried running. Now i got another error...

 

Exception in thread "main" java.lang.NoClassDefFoundError: com/mojang/authlib/exceptions/AuthenticationException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:191)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:116)
Caused by: java.lang.ClassNotFoundException: com.mojang.authlib.exceptions.AuthenticationException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 3 more

Process finished with exit code 1

 

What did i do wrong?

  • Author

I actually got it working now. I found out that i forgot to update before doing genIntellijRuns. Now everything is working. Thank you for your help!

  • 2 weeks later...
  • Author

Hello.. again...

So i got it all working at first. I followed Pahimars tutorials further, but after setting up my references i ran a quick minecraft to just see if everything was still working. BUT, now my mcmod.info dosn't show up again... I no longer have the mcmod.infos content displayed under the modlist ingame. I didn't change anything inside the mcmod.info... What could i have done wrong? Sorry for my returning on this matter. But i'm learning...

  • Author

Hello.

No there isn't any errors the console when loading the mod. I am able to load it because it's in the modlist. Is that correct?

  • Author

First of all, i placed the mcmod.info at the following path:

 

src>main>resources>mcmod.info

 

By references i mean creating a java class under the com.nikko4913.letsmodreboot in a reference-folder, which holds references.. Just like pahimar. The file contains something like the following:

 

package com.nikko4913.letsmodreboot.reference;

public class Reference
{
    public static final String MOD_ID = "LetsModReboot";
    public static final String MOD_NAME = "Lets Mod Reboot";
    public static final String VERSION = "1.7.10-1.0";
    public static final String CLIENT_PROXY_CLASS = "com.nikko4913.letsmodreboot.proxy.ClientProxy";
    public static final String SERVER_PROXY_CLASS = "com.nikko4913.letsmodreboot.proxy.ServerProxy";
    public static final String GUI_FACTORY_CLASS = "com.nikko4913.letsmodreboot.client.gui.GuiFactory";
}

 

That about it...

  • Author

Already did this before, and that didn't help...

I now changed "LetsModReboot" to "letsmodreboot" in these files:

 

-build.gradle

-mcmod.info

-LetsModReboot.java

-Reference.java

 

Ran Minecraft and no visible changes were made...

 

BTW... I also tried renaming the LetsModReboot.java no changes anyways...

  • Author

I will look into that .gitignore soon.

 

Okay, so that version line.. Should i update it to say "1.7.10-1.0" or what? Because i tried that and no changes...

  • Author

Woooooooooooow.....

Gooood i'm stupid... Okay so it was the comma at the end of the line....

I just ran a Minecraft and it worked perfectly. Tank you so much, hopefully this is the last time i will be bugging you with this issue...

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.