Ok so I'm having some issues with making mobs. I've looked around all of YouTube and everything i try just makes the game crash on load. Here is my code. Please help.
Main File:
package com.gallifrey2000.overpoweredmod;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.monster.EntityMob;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.EnumHelper;
import com.gallifrey2000.overpoweredmod.blocks.darkOreBlock;
import com.gallifrey2000.overpoweredmod.blocks.superBlock;
import com.gallifrey2000.overpoweredmod.blocks.zedOreBlock;
import com.gallifrey2000.overpoweredmod.entity.goblinMob;
import com.gallifrey2000.overpoweredmod.entity.mobBase;
import com.gallifrey2000.overpoweredmod.generation.zedGenClass;
import com.gallifrey2000.overpoweredmod.items.cactusJuice;
import com.gallifrey2000.overpoweredmod.items.corruptedZed;
import com.gallifrey2000.overpoweredmod.items.darkShard;
import com.gallifrey2000.overpoweredmod.items.jellyBeanGreen;
import com.gallifrey2000.overpoweredmod.items.jellyBeanPurple;
import com.gallifrey2000.overpoweredmod.items.jellyBeanRed;
import com.gallifrey2000.overpoweredmod.items.jellyBeanYellow;
import com.gallifrey2000.overpoweredmod.items.mudItem;
import com.gallifrey2000.overpoweredmod.items.mudPie;
import com.gallifrey2000.overpoweredmod.items.pieTin;
import com.gallifrey2000.overpoweredmod.items.pureZed;
import com.gallifrey2000.overpoweredmod.items.smashedCactus;
import com.gallifrey2000.overpoweredmod.tabs.OpModTab;
import com.gallifrey2000.overpoweredmod.tabs.OpTabTools;
import com.gallifrey2000.overpoweredmod.tools.hybridSword;
import com.gallifrey2000.overpoweredmod.tools.zedAxe;
import com.gallifrey2000.overpoweredmod.tools.zedHoe;
import com.gallifrey2000.overpoweredmod.tools.zedPickaxe;
import com.gallifrey2000.overpoweredmod.tools.zedShovel;
import com.gallifrey2000.overpoweredmod.tools.zedSword;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
@Mod(modid = MainFile.MODID, name = MainFile.NAME, version = MainFile.VERSION)
public class MainFile {
//Modification Info
public static final String MODID = "overpoweredmod";
public static final String NAME = "Over Powered Mod";
public static final String VERSION = "Alpha v1.1.0";
@Instance(MainFile.MODID)
public static MainFile modInstance;
//Initializing Stuff
//Generation
public static zedGenClass zedGen = new zedGenClass();
public static zedGenClass darkOreGen = new zedGenClass();
//Tabs
public static CreativeTabs opModTab = new OpModTab(CreativeTabs.getNextID(), "opModTab");
public static CreativeTabs opModTools = new OpTabTools(CreativeTabs.getNextID(), "opTabTools");
//Materials
public static ToolMaterial hybridMaterial = EnumHelper.addToolMaterial("hybridMaterial", 3, 1300, 3.5F, 2.0F, 10);
public static ToolMaterial zedMaterial = EnumHelper.addToolMaterial("zedMaterial", 4, 2000, 15.0F, 8.0F, 12);
//Entities
//Items
public static Item mudItem = new mudItem();
public static Item pieTin = new pieTin();
public static Item smashedCactus = new smashedCactus();
public static Item corruptedZed = new corruptedZed();
public static Item pureZed = new pureZed();
public static Item darkShard = new darkShard();
//Food Items
public static Item mudPie = new mudPie (4, false);
public static Item cactusJuice = new cactusJuice();
public static Item jellyBeanRed = new jellyBeanRed(2, false);
public static Item jellyBeanGreen = new jellyBeanGreen(2, false);
public static Item jellyBeanYellow = new jellyBeanYellow(2, false);
public static Item jellyBeanPurple = new jellyBeanPurple(2, false);
//Tools
public static Item hybridSword = new hybridSword(hybridMaterial);
public static Item zedSword = new zedSword(zedMaterial);
public static Item zedShovel = new zedShovel(zedMaterial);
public static Item zedAxe = new zedAxe(zedMaterial);
public static Item zedPickaxe = new zedPickaxe(zedMaterial);
public static Item zedHoe = new zedHoe(zedMaterial);
//Blocks
public static Block superBlock = new superBlock(Material.rock);
public static Block zedOreBlock = new zedOreBlock(Material.rock);
public static Block darkOreBlock = new darkOreBlock(Material.rock);
//Crop Blocks
@EventHandler
public void Init(FMLInitializationEvent event){
//Registering Items
GameRegistry.registerItem(mudItem, "mudItem");
GameRegistry.registerItem(pieTin, "pieTin");
GameRegistry.registerItem(smashedCactus, "smashedCactus");
GameRegistry.registerItem(darkShard, "darkShard");
GameRegistry.registerItem(mudPie, "mudPie");
GameRegistry.registerItem(cactusJuice, "cactusJuice");
GameRegistry.registerItem(jellyBeanRed, "jellyBeanRed");
GameRegistry.registerItem(jellyBeanGreen, "jellyBeanGreen");
GameRegistry.registerItem(jellyBeanYellow, "jellyBeanYellow");
GameRegistry.registerItem(jellyBeanPurple, "jellyBeanPurple");
GameRegistry.registerItem(corruptedZed, "corruptedZed");
GameRegistry.registerItem(pureZed, "pureZed");
GameRegistry.registerItem(hybridSword, "hybridSword");
GameRegistry.registerItem(zedSword, "zedSword");
GameRegistry.registerItem(zedPickaxe, "zedPickaxe");
GameRegistry.registerItem(zedHoe, "zedHoe");
GameRegistry.registerItem(zedAxe, "zedAxe");
GameRegistry.registerItem(zedShovel, "zedShovel");
//Registering Blocks
GameRegistry.registerBlock(superBlock, "superBlock");
GameRegistry.registerBlock(zedOreBlock, "zedOreBlock");
GameRegistry.registerBlock(darkOreBlock, "darkOreBlock");
//Registering Generation Ore
GameRegistry.registerWorldGenerator(zedGen, 1);
//Entities
mobBase.registerEntity(goblinMob.class, "Goblin", 0x2AFF00, 0xD500FF);
//Recipes
GameRegistry.addShapedRecipe(new ItemStack (mudPie), new Object[ ] {
" S ",
" S ",
" X ",
'X', new ItemStack (pieTin), 'S', new ItemStack (mudItem)});
GameRegistry.addRecipe(new ItemStack (pieTin), new Object[ ] {
"X X",
"X X",
" X ",
'X', new ItemStack (Items.iron_ingot)});
GameRegistry.addRecipe(new ItemStack (cactusJuice), new Object[ ] {
" F ",
" X ",
" S ",
'X', new ItemStack (smashedCactus), 'S', new ItemStack (Items.water_bucket), 'F', new ItemStack (Items.sugar)});
GameRegistry.addRecipe(new ItemStack (hybridSword), new Object[ ] {
" S ",
"PWC",
" X ",
'X', new ItemStack (Items.stick), 'S', new ItemStack (Items.stone_sword), 'P', new ItemStack (Blocks.planks), 'W', new ItemStack (Items.wooden_sword),
'C', new ItemStack (Items.coal)});
GameRegistry.addShapedRecipe(new ItemStack (zedSword), new Object[ ] {
" S ",
" S ",
" X ",
'X', new ItemStack (Items.stick), 'S', new ItemStack (pureZed)});
GameRegistry.addShapedRecipe(new ItemStack (zedAxe), new Object[ ] {
"SS ",
"SX ",
" X ",
'X', new ItemStack (Items.stick), 'S', new ItemStack (pureZed)});
GameRegistry.addShapedRecipe(new ItemStack (zedHoe), new Object[ ] {
"SS ",
" X ",
" X ",
'X', new ItemStack (Items.stick), 'S', new ItemStack (pureZed)});
GameRegistry.addShapedRecipe(new ItemStack (zedShovel), new Object[ ] {
" S ",
" X ",
" X ",
'X', new ItemStack (Items.stick), 'S', new ItemStack (pureZed)});
GameRegistry.addShapedRecipe(new ItemStack (zedPickaxe), new Object[ ] {
"SSS",
" X ",
" X ",
'X', new ItemStack (Items.stick), 'S', new ItemStack (pureZed)});
GameRegistry.addShapelessRecipe(new ItemStack (mudItem), new ItemStack (Blocks.dirt), new ItemStack (Items.water_bucket));
GameRegistry.addShapelessRecipe(new ItemStack (jellyBeanRed), new ItemStack (Items.dye, 0, 3), new ItemStack (Items.dye, 0, 1));
GameRegistry.addShapelessRecipe(new ItemStack (jellyBeanGreen), new ItemStack (Items.dye, 0, 3), new ItemStack (Items.dye, 0, 2));
GameRegistry.addShapelessRecipe(new ItemStack (jellyBeanYellow), new ItemStack (Items.dye, 0, 3), new ItemStack (Items.dye, 0, 11));
GameRegistry.addShapelessRecipe(new ItemStack (jellyBeanPurple), new ItemStack (Items.dye, 0, 3), new ItemStack (Items.dye, 0, 5));
GameRegistry.addShapelessRecipe(new ItemStack (smashedCactus), new ItemStack (Blocks.cactus));
GameRegistry.addSmelting(new ItemStack (corruptedZed), new ItemStack(pureZed), 10);
}
}
My Mob Base File Thing:
package com.gallifrey2000.overpoweredmod.entity;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityList;
import com.gallifrey2000.overpoweredmod.MainFile;
import cpw.mods.fml.common.registry.EntityRegistry;
public class mobBase{
public static void createEgg(int randomId, int solidColor, int spotColor){
EntityList.entityEggs.put(Integer.valueOf(randomId), new EntityList.EntityEggInfo(randomId, solidColor, spotColor));
}
public static void registerEntity(Class entityClass, String entityName, int solidColor, int spotColor){
int randomId = EntityRegistry.findGlobalUniqueEntityId();
EntityRegistry.registerGlobalEntityID(entityClass, entityName, randomId, solidColor, spotColor);
EntityRegistry.registerModEntity(entityClass, entityName, randomId, MainFile.modInstance, 64, 1, true);
createEgg(randomId, solidColor, spotColor);
}
}
And my Goblin Class:
package com.gallifrey2000.overpoweredmod.entity;
import net.minecraft.entity.Entity;
import net.minecraft.entity.monster.EntityMob;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
public class goblinMob extends EntityMob{
public goblinMob(World par1) {
super(par1);
}
}
I would love some help. Please PLEASE help me. Cant wait for help. Thanks!