Jump to content

[1.6.4] Mod not loading, not sure why.


cheezytacos

Recommended Posts

So when I was first creating the items in forge, I stuck in the recipes directly into the CraftingManager.java file in the correct location. I now want to remove the recipes and add them to my main class file. For some reason, when I remove the recipes from CraftingManager.java the mod refuses to load at all.

This is my first time on the forums posting for help after hours of trying to figure this out.

Also, how would I let people see my code on this forum?

 

Any help or insight would be appreciated.

Thanks.

Link to comment
Share on other sites

Ive seen people post very organized code on the forums so im not sure how it will look.

 

This is the main class.

package SwiggitySwooty;

 

import cpw.mods.fml.common.Mod.Init;

import cpw.mods.fml.common.Mod.PostInit;

import cpw.mods.fml.common.Mod.PreInit;

import cpw.mods.fml.common.registry.GameRegistry;

import net.minecraft.block.Block;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.src.BaseMod;

import net.minecraft.world.World;

import net.minecraftforge.common.MinecraftForge;

import net.minecraftforge.event.Event.Result;

 

public class StoneRods extends BaseMod{

 

//creates a creative tab for the mod

 

public static CreativeTabs tabStoneRods = new CreativeTabs("tabStoneRods")

{

        public ItemStack getIconItemStack() {

                return new ItemStack(StoneRods.Orb, 1, 0);

        }

};

 

 

//initializes the items

public final static Item CobbleStoneRod = new ItemCobbleStoneRod(2066).setTextureName("StoneRods:CobbleStoneRod").setUnlocalizedName("cobbleRod").setCreativeTab(StoneRods.tabStoneRods).setMaxStackSize(1);

public final static Item StoneRod = new ItemStoneRod(2067).setTextureName("StoneRods:StoneRod").setUnlocalizedName("stoneRod").setCreativeTab(StoneRods.tabStoneRods).setMaxStackSize(1);

public final static Item ChiseledStoneRod = new ItemChiseledStoneRod(2068).setTextureName("StoneRods:ChiseledStoneRod").setUnlocalizedName("chiseledStoneRod").setCreativeTab(StoneRods.tabStoneRods).setMaxStackSize(1);

public final static Item EnderWand = new ItemEnderWand(2071).setTextureName("StoneRods:Ender_Wand").setUnlocalizedName("enderWand").setCreativeTab(StoneRods.tabStoneRods).setMaxStackSize(1).setMaxDamage(256);

public final static Item Orb = new ItemOrb(2073).setTextureName("StoneRods:Orb").setUnlocalizedName("orb").setCreativeTab(StoneRods.tabStoneRods).setMaxStackSize(64);

public final static Item LavaWand = new ItemLavaWand(2072,0).setTextureName("StoneRods:Lava_Wand").setUnlocalizedName("lavaWand").setCreativeTab(StoneRods.tabStoneRods).setMaxStackSize(1);

 

 

 

 

//enabling crafting of mod items and all vanilla items with ItemStacks

 

 

    //initializes the blocks

 

 

 

 

 

 

 

 

 

 

//Overrides the getVersion() Method

@Override

public String getVersion() {

return "1.1.1";

}

 

 

 

//Overrides the load() method

@Override

public void load() {

 

//This registers all names of objects not sure if actually works, but it shouldn't affect anything

 

// LanguageRegistry.addName(CobbleStoneRod, "Rod of Cobble");

// LanguageRegistry.addName(StoneRod, "Rod of Stone");

// LanguageRegistry.addName(ChiseledStoneRod, "Rod of Stone Bricks");

// LanguageRegistry.addName(EnderWand, "Ender Wand");

// LanguageRegistry.addName(Orb, "Orb");

 

ItemStack OrbStack = new ItemStack(StoneRods.Orb);

ItemStack DiamondStack = new ItemStack(Item.diamond);

ItemStack GlassStack = new ItemStack(Block.glass);

 

//This adds recipes without having the code in the client classes

//GameRegistry.addShapedRecipe(new ItemStack(StoneRods.Orb), new Object[] {"GGG", "GDG", "GGG", 'G', Block.glass, 'D', Item.diamond});

//GameRegistry.addRecipe(

//GameRegistry.addRecipe(

GameRegistry.addRecipe(new ItemStack(StoneRods.Orb), new Object[] {"GGG", "GDG", "GGG", 'G', GlassStack, 'D', DiamondStack});

}

}

 

The CraftingManager class just adds the initialized items shown here to a crafting recipe.

If I leave at least 1 of those recipes, the mod loads.

If I dont have any listed, the mod doesnt.

 

Mod doesnt load:

//this.addRecipe(new ItemStack(StoneRods.CobbleStoneRod), new Object[] {"OBO", "LCW", "OBO", 'O', Block.obsidian, 'B', Item.blazeRod, 'L', Item.bucketLava, 'C', Block.cobblestone, 'W', Item.bucketWater});

        //this.addRecipe(new ItemStack(StoneRods.StoneRod), new Object[] {"FSF", "LCL", "FSF", 'S', Block.furnaceIdle, 'L', Item.bucketLava, 'C', StoneRods.CobbleStoneRod, 'F', Block.obsidian});

        //this.addRecipe(new ItemStack(StoneRods.ChiseledStoneRod), new Object[] {"SS", "SS", 'S', StoneRods.StoneRod});

        //this.addRecipe(new ItemStack(StoneRods.Orb), new Object[] {"GGG", "GDG", "GGG", 'G', Block.glass, 'D', Item.diamond});

 

Mod Loads:

this.addRecipe(new ItemStack(StoneRods.CobbleStoneRod), new Object[] {"OBO", "LCW", "OBO", 'O', Block.obsidian, 'B', Item.blazeRod, 'L', Item.bucketLava, 'C', Block.cobblestone, 'W', Item.bucketWater});

  //this.addRecipe(new ItemStack(StoneRods.StoneRod), new Object[] {"FSF", "LCL", "FSF", 'S', Block.furnaceIdle, 'L', Item.bucketLava, 'C', StoneRods.CobbleStoneRod, 'F', Block.obsidian});

        //this.addRecipe(new ItemStack(StoneRods.ChiseledStoneRod), new Object[] {"SS", "SS", 'S', StoneRods.StoneRod});

        //this.addRecipe(new ItemStack(StoneRods.Orb), new Object[] {"GGG", "GDG", "GGG", 'G', Block.glass, 'D', Item.diamond});

Link to comment
Share on other sites

Don't extend the BaseMod class, use the @Mod annotation provided by forge. Link: http://www.minecraftforge.net/wiki/Basic_Modding

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Let me try and help you with love spells, traditional healing, native healing, fortune telling, witchcraft, psychic readings, black magic, voodoo, herbalist healing, or any other service your may desire within the realm of african native healing, the spirits and the ancestors. I am a sangoma and healer. I could help you to connect with the ancestors , interpret dreams, diagnose illness through divination with bones, and help you heal both physical and spiritual illness. We facilitate the deepening of your relationship to the spirit world and the ancestors. Working in partnership with one\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\’s ancestors is a gift representing a close link with the spirit realm as a mediator between the worlds.*   Witchdoctors, or sorcerers, are often purveyors of mutis and charms that cause harm to people. we believe that we are here for only one purpose, to heal through love and compassion.*   African people share a common understanding of the importance of ancestors in daily life. When they have lost touch with their ancestors, illness may result or bad luck. Then a traditional healer, or sangoma, is sought out who may prescribe herbs, changes in lifestyle, a career change, or changes in relationships. The client may also be told to perform a ceremony or purification ritual to appease the ancestors.*   Let us solve your problems using powerful African traditional methods. We believe that our ancestors and spirits give us enlightenment, wisdom, divine guidance, enabling us to overcome obstacles holding your life back. Our knowledge has been passed down through centuries, being refined along the way from generation to generation. We believe in the occult, the paranormal, the spirit world, the mystic world.*   The services here are based on the African Tradition Value system/religion,where we believe the ancestors and spirits play a very important role in society. The ancestors and spirits give guidance and counsel in society. They could enable us to see into the future and give solutions to the problems affecting us. We use rituals, divination, spells, chants and prayers to enable us tackle the task before us.*   I have experience in helping and guiding many people from all over the world. My psychic abilities may help you answer and resolve many unanswered questions
    • Let me try and help you with love spells, traditional healing, native healing, fortune telling, witchcraft, psychic readings, black magic, voodoo, herbalist healing, or any other service your may desire within the realm of african native healing, the spirits and the ancestors. I am a sangoma and healer. I could help you to connect with the ancestors , interpret dreams, diagnose illness through divination with bones, and help you heal both physical and spiritual illness. We facilitate the deepening of your relationship to the spirit world and the ancestors. Working in partnership with one\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\’s ancestors is a gift representing a close link with the spirit realm as a mediator between the worlds.*   Witchdoctors, or sorcerers, are often purveyors of mutis and charms that cause harm to people. we believe that we are here for only one purpose, to heal through love and compassion.*   African people share a common understanding of the importance of ancestors in daily life. When they have lost touch with their ancestors, illness may result or bad luck. Then a traditional healer, or sangoma, is sought out who may prescribe herbs, changes in lifestyle, a career change, or changes in relationships. The client may also be told to perform a ceremony or purification ritual to appease the ancestors.*   Let us solve your problems using powerful African traditional methods. We believe that our ancestors and spirits give us enlightenment, wisdom, divine guidance, enabling us to overcome obstacles holding your life back. Our knowledge has been passed down through centuries, being refined along the way from generation to generation. We believe in the occult, the paranormal, the spirit world, the mystic world.*   The services here are based on the African Tradition Value system/religion,where we believe the ancestors and spirits play a very important role in society. The ancestors and spirits give guidance and counsel in society. They could enable us to see into the future and give solutions to the problems affecting us. We use rituals, divination, spells, chants and prayers to enable us tackle the task before us.*   I have experience in helping and guiding many people from all over the world. My psychic abilities may help you answer and resolve many unanswered questions
    • Let me try and help you with love spells, traditional healing, native healing, fortune telling, witchcraft, psychic readings, black magic, voodoo, herbalist healing, or any other service your may desire within the realm of african native healing, the spirits and the ancestors. I am a sangoma and healer. I could help you to connect with the ancestors , interpret dreams, diagnose illness through divination with bones, and help you heal both physical and spiritual illness. We facilitate the deepening of your relationship to the spirit world and the ancestors. Working in partnership with one\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\’s ancestors is a gift representing a close link with the spirit realm as a mediator between the worlds.*   Witchdoctors, or sorcerers, are often purveyors of mutis and charms that cause harm to people. we believe that we are here for only one purpose, to heal through love and compassion.*   African people share a common understanding of the importance of ancestors in daily life. When they have lost touch with their ancestors, illness may result or bad luck. Then a traditional healer, or sangoma, is sought out who may prescribe herbs, changes in lifestyle, a career change, or changes in relationships. The client may also be told to perform a ceremony or purification ritual to appease the ancestors.*   Let us solve your problems using powerful African traditional methods. We believe that our ancestors and spirits give us enlightenment, wisdom, divine guidance, enabling us to overcome obstacles holding your life back. Our knowledge has been passed down through centuries, being refined along the way from generation to generation. We believe in the occult, the paranormal, the spirit world, the mystic world.*   The services here are based on the African Tradition Value system/religion,where we believe the ancestors and spirits play a very important role in society. The ancestors and spirits give guidance and counsel in society. They could enable us to see into the future and give solutions to the problems affecting us. We use rituals, divination, spells, chants and prayers to enable us tackle the task before us.*   I have experience in helping and guiding many people from all over the world. My psychic abilities may help you answer and resolve many unanswered questions
    • Let me try and help you with love spells, traditional healing, native healing, fortune telling, witchcraft, psychic readings, black magic, voodoo, herbalist healing, or any other service your may desire within the realm of african native healing, the spirits and the ancestors. I am a sangoma and healer. I could help you to connect with the ancestors , interpret dreams, diagnose illness through divination with bones, and help you heal both physical and spiritual illness. We facilitate the deepening of your relationship to the spirit world and the ancestors. Working in partnership with one\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\’s ancestors is a gift representing a close link with the spirit realm as a mediator between the worlds.*   Witchdoctors, or sorcerers, are often purveyors of mutis and charms that cause harm to people. we believe that we are here for only one purpose, to heal through love and compassion.*   African people share a common understanding of the importance of ancestors in daily life. When they have lost touch with their ancestors, illness may result or bad luck. Then a traditional healer, or sangoma, is sought out who may prescribe herbs, changes in lifestyle, a career change, or changes in relationships. The client may also be told to perform a ceremony or purification ritual to appease the ancestors.*   Let us solve your problems using powerful African traditional methods. We believe that our ancestors and spirits give us enlightenment, wisdom, divine guidance, enabling us to overcome obstacles holding your life back. Our knowledge has been passed down through centuries, being refined along the way from generation to generation. We believe in the occult, the paranormal, the spirit world, the mystic world.*   The services here are based on the African Tradition Value system/religion,where we believe the ancestors and spirits play a very important role in society. The ancestors and spirits give guidance and counsel in society. They could enable us to see into the future and give solutions to the problems affecting us. We use rituals, divination, spells, chants and prayers to enable us tackle the task before us.*   I have experience in helping and guiding many people from all over the world. My psychic abilities may help you answer and resolve many unanswered questions
    • Let me try and help you with love spells, traditional healing, native healing, fortune telling, witchcraft, psychic readings, black magic, voodoo, herbalist healing, or any other service your may desire within the realm of african native healing, the spirits and the ancestors. I am a sangoma and healer. I could help you to connect with the ancestors , interpret dreams, diagnose illness through divination with bones, and help you heal both physical and spiritual illness. We facilitate the deepening of your relationship to the spirit world and the ancestors. Working in partnership with one\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\’s ancestors is a gift representing a close link with the spirit realm as a mediator between the worlds.*   Witchdoctors, or sorcerers, are often purveyors of mutis and charms that cause harm to people. we believe that we are here for only one purpose, to heal through love and compassion.*   African people share a common understanding of the importance of ancestors in daily life. When they have lost touch with their ancestors, illness may result or bad luck. Then a traditional healer, or sangoma, is sought out who may prescribe herbs, changes in lifestyle, a career change, or changes in relationships. The client may also be told to perform a ceremony or purification ritual to appease the ancestors.*   Let us solve your problems using powerful African traditional methods. We believe that our ancestors and spirits give us enlightenment, wisdom, divine guidance, enabling us to overcome obstacles holding your life back. Our knowledge has been passed down through centuries, being refined along the way from generation to generation. We believe in the occult, the paranormal, the spirit world, the mystic world.*   The services here are based on the African Tradition Value system/religion,where we believe the ancestors and spirits play a very important role in society. The ancestors and spirits give guidance and counsel in society. They could enable us to see into the future and give solutions to the problems affecting us. We use rituals, divination, spells, chants and prayers to enable us tackle the task before us.*   I have experience in helping and guiding many people from all over the world. My psychic abilities may help you answer and resolve many unanswered questions
  • Topics

×
×
  • Create New...

Important Information

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