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

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": []
}]

Guest
This topic is now closed to further replies.

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.