Jump to content

[1.7.10] mcmod.info not found


McNutty

Recommended Posts

When I load my mod, Forge is unable to match my mcmod.info to it. The file is in my project folder at the same level as the resources and java folders. I've searched around online, and the only answers I've found are to make sure that the json formatting is correct and that modid in mcmod.info matches that of the main class. I ran my mcmod.info through several json verifiers, and directly copied and pasted the modid. What else could the issue be?

 

Swapper.java

package com.mcnutty145.swapper;

import net.minecraft.item.Item;
import net.minecraft.util.RegistryNamespaced;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.GameData;
import cpw.mods.fml.common.registry.GameRegistry;

@Mod(modid = Swapper.MODID, version = Swapper.VERSION)
public class Swapper {

public static final String MODID = "swapper";
public static final String VERSION = "0.0.1";

public static final RegistryNamespaced itemRegistry = GameData.getItemRegistry();

public static final Item item = new ItemArmorSwapper();

@EventHandler
    public void init(FMLInitializationEvent event)
    {
    	GameRegistry.registerItem(item,"Swapper");
    	MinecraftForge.EVENT_BUS.register(new EventHandlerCommon());
    }

@EventHandler
    public void postInit(FMLInitializationEvent event){

}
}

 

mcmod.info

[{
"modid": "swapper",
"name": "Swapper",
"description": "Making item management a little less of a hassle",
"version": "${version}",
"credits": "Code by McNutty145\nIcons by RandomAzn",
"logoFile": "",
"mcversion": "${mcversion}",
"url": "",
"updateUrl": "",
"authors": ["McNutty145"],
"parent": "",
"screenshots": [],
"dependencies": []
}]

Link to comment
Share on other sites

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.