Jump to content

Minecraft didn't loading my mod [1.12.2 FORGE]


KailoRen

Recommended Posts

I created a mod but it didn't loaded, then i recreated my mod and i got the same issue. I looked into console and it says "Found non mod jar".

Code: 

package me.kailoren.showbalancemod;

import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.registry.GameRegistry;

@Mod(
        modid = ShowBalanceMod.MOD_ID,
        name = ShowBalanceMod.MOD_NAME,
        version = ShowBalanceMod.VERSION
)
public class ShowBalanceMod {

    public static final String MOD_ID = "ShowBalanceMod";
    public static final String MOD_NAME = "ShowBalanceMod";
    public static final String VERSION = "1.0.1";

    /**
     * This is the instance of your mod as created by Forge. It will never be null.
     */
    @Mod.Instance(MOD_ID)
    public static ShowBalanceMod INSTANCE;

    /**
     * This is the first initialization event. Register tile entities here.
     * The registry events below will have fired prior to entry to this method.
     */
    @Mod.EventHandler
    public void preinit(FMLPreInitializationEvent event) {

    }

    /**
     * This is the second initialization event. Register custom recipes
     */
    @Mod.EventHandler
    public void init(FMLInitializationEvent event) {

    }

    /**
     * This is the final initialization event. Register actions from other mods here
     */
    @Mod.EventHandler
    public void postinit(FMLPostInitializationEvent event) {

    }

    /**
     * Forge will automatically look up and bind blocks to the fields in this class
     * based on their registry name.
     */
    @GameRegistry.ObjectHolder(MOD_ID)
    public static class Blocks {
      /*
          public static final MySpecialBlock mySpecialBlock = null; // placeholder for special block below
      */
    }

    /**
     * Forge will automatically look up and bind items to the fields in this class
     * based on their registry name.
     */
    @GameRegistry.ObjectHolder(MOD_ID)
    public static class Items {
      /*
          public static final ItemBlock mySpecialBlock = null; // itemblock for the block above
          public static final MySpecialItem mySpecialItem = null; // placeholder for special item below
      */
    }

    /**
     * This is a special class that listens to registry events, to allow creation of mod blocks and items at the proper time.
     */
    @Mod.EventBusSubscriber
    public static class ObjectRegistryHandler {
        /**
         * Listen for the register event for creating custom items
         */
        @SubscribeEvent
        public static void addItems(RegistryEvent.Register<Item> event) {
           /*
             event.getRegistry().register(new ItemBlock(Blocks.myBlock).setRegistryName(MOD_ID, "myBlock"));
             event.getRegistry().register(new MySpecialItem().setRegistryName(MOD_ID, "mySpecialItem"));
            */
        }

        /**
         * Listen for the register event for creating custom blocks
         */
        @SubscribeEvent
        public static void addBlocks(RegistryEvent.Register<Block> event) {
           /*
             event.getRegistry().register(new MySpecialBlock().setRegistryName(MOD_ID, "mySpecialBlock"));
            */
        }
    }
    /* EXAMPLE ITEM AND BLOCK - you probably want these in separate files
    public static class MySpecialItem extends Item {

    }

    public static class MySpecialBlock extends Block {

    }
    */
}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • So I've been making this custom modpack for a while now, I accidentally updated everything and now it wont even start the game past the launch screen. I'm sure there's a mod I need to remove or turn off--but I'm not sure which or if there is something else going on. As time has gone on (I'm not sure if this is related) but the framerates have been dropping into the single digits. I'm not sure what to do anymore except possibly start over... I've pasted the crash log it gave me below--I can't find what's causing it. Help please? https://mclo.gs/Bml06zJ
    • Hi, if you still want to see all player's commands, you can also use a plugin like Stalker Plugin for example ( see https://hangar.papermc.io/StalkerPlugin/Stalker ) with /stalk <player> you can directly see a player's commands or /stalkall you will see all player's commands (in game)
    • HOW I FOUND FAVOR IN THE HANDS OF SACLUX COMPTECH SPECIALST.    I was a victim of a phishing scam and lost 3.5 BTC to thieves. I had been investing in Bitcoin for a while and had a significant amount stored in my wallet. One day, I received an email that looked like it was from my wallet provider, asking me to log in and update my account information. I didn't think twice and entered my login credentials. Little did I know, the email was from scammers who had created a fake website that looked identical to my wallet provider's site. They stole my login credentials and drained my wallet. I was devastated. I had invested a lot of money and time into Bitcoin, and it was all gone in an instant. I tried to contact my wallet provider, but they couldn't help me recover my stolen Bitcoins. I also reported the incident to the authorities, but they couldn't do much to help. It was a hard lesson learned until I came across a testimony of a woman about how she got her stolen investment recovered by a hacker called SACLUX COMPTECH SPECIALST, I searched the name on Google and got their contact and contacted them, behold they got my stolen money back within  2 hours. Thanks to SACLUX COMPTECH SPECIALST for their great job. I invite you to visit their website at http:sacluxcomptechspecialst.com/ to learn more about their services. 
    • HOW I FOUND FAVOR IN THE HANDS OF SACLUX COMPTECH SPECIALST.    I was a victim of a phishing scam and lost 3.5 BTC to thieves. I had been investing in Bitcoin for a while and had a significant amount stored in my wallet. One day, I received an email that looked like it was from my wallet provider, asking me to log in and update my account information. I didn't think twice and entered my login credentials. Little did I know, the email was from scammers who had created a fake website that looked identical to my wallet provider's site. They stole my login credentials and drained my wallet. I was devastated. I had invested a lot of money and time into Bitcoin, and it was all gone in an instant. I tried to contact my wallet provider, but they couldn't help me recover my stolen Bitcoins. I also reported the incident to the authorities, but they couldn't do much to help. It was a hard lesson learned until I came across a testimony of a woman about how she got her stolen investment recovered by a hacker called SACLUX COMPTECH SPECIALST, I searched the name on Google and got their contact and contacted them, behold they got my stolen money back within  2 hours. Thanks to SACLUX COMPTECH SPECIALST for their great job. I invite you to visit their website at http:sacluxcomptechspecialst.com/ to learn more about their services. 
    • HOW I FOUND FAVOR IN THE HANDS OF SACLUX COMPTECH SPECIALST.    I was a victim of a phishing scam and lost 3.5 BTC to thieves. I had been investing in Bitcoin for a while and had a significant amount stored in my wallet. One day, I received an email that looked like it was from my wallet provider, asking me to log in and update my account information. I didn't think twice and entered my login credentials. Little did I know, the email was from scammers who had created a fake website that looked identical to my wallet provider's site. They stole my login credentials and drained my wallet. I was devastated. I had invested a lot of money and time into Bitcoin, and it was all gone in an instant. I tried to contact my wallet provider, but they couldn't help me recover my stolen Bitcoins. I also reported the incident to the authorities, but they couldn't do much to help. It was a hard lesson learned until I came across a testimony of a woman about how she got her stolen investment recovered by a hacker called SACLUX COMPTECH SPECIALST, I searched the name on Google and got their contact and contacted them, behold they got my stolen money back within  2 hours. Thanks to SACLUX COMPTECH SPECIALST for their great job. I invite you to visit their website at http:sacluxcomptechspecialst.com/ to learn more about their services. 
  • Topics

×
×
  • Create New...

Important Information

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