Jump to content

[1.8]Using hardcoded McMod.info help


NovaViper

Recommended Posts

Hey, I decided to use the internal mcmod information instead of using the file. And I need help using the requiredMods parameter, as to what exactly do I put for that? On the file version, your suppose to put the modid of the mod (I'm trying to put Forge but it says it doesn't do strings)

 

My information so far

package net.novaviper.zeroquest;

import net.minecraft.util.EnumChatFormatting;
import net.minecraftforge.common.ForgeVersion;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.novaviper.zeroquest.common.lib.Constants;

//@formatter:off
public class McModInformation {

public static void load(FMLPreInitializationEvent event) {
	// hard-code mod information so don't need mcmod.info file
	event.getModMetadata().autogenerated = false; // stops it from complaining about missing mcmod.info
	event.getModMetadata().credits = EnumChatFormatting.BLUE + Constants.credits;
	event.getModMetadata().authorList.add(EnumChatFormatting.RED + Constants.author);
	event.getModMetadata().description = EnumChatFormatting.YELLOW + Constants.description;
	event.getModMetadata().url = Constants.url;
	event.getModMetadata().logoFile = Constants.logo;
	event.getModMetadata().requiredMods = ForgeVersion.getVersion();
}

}

Main Developer and Owner of Zero Quest

Visit the Wiki for more information

If I helped anyone, please give me a applaud and a thank you!

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

Announcements



×
×
  • Create New...

Important Information

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