Posted September 6, 201411 yr 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!
September 6, 201411 yr If your game is crashing, we'll need a crash report to pinpoint the source of the error. Developer of small, unreleased, basic, and incomplete mods since 2014!
September 6, 201411 yr Author Ok, here is my crash report. ---- Minecraft Crash Report ---- // I just don't know what went wrong Time: 9/5/14 3:20 PM Description: Initializing game java.lang.RuntimeException: Duplicate stat id: "TranslatableComponent{key='stat.entityKill', args=[TranslatableComponent{key='entity.Goblin.name', args=[], siblings=[], style=Style{hasParent=true, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null}}], siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null}}" and "TranslatableComponent{key='stat.entityKill', args=[TranslatableComponent{key='entity.Goblin.name', args=[], siblings=[], style=Style{hasParent=true, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null}}], siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null}}" at id stat.killEntity.Goblin at net.minecraft.stats.StatBase.registerStat(SourceFile:42) at net.minecraft.stats.StatList.func_151182_a(StatList.java:212) at net.minecraft.entity.EntityList$EntityEggInfo.<init>(EntityList.java:320) at com.gallifrey2000.overpoweredmod.entity.mobBase.createEgg(mobBase.java:15) at com.gallifrey2000.overpoweredmod.entity.mobBase.registerEntity(mobBase.java:23) at com.gallifrey2000.overpoweredmod.MainFile.Init(MainFile.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288) at net.minecraft.client.Minecraft.startGame(Minecraft.java:541) at net.minecraft.client.Minecraft.run(Minecraft.java:867) at net.minecraft.client.main.Main.main(SourceFile:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at GradleStart.bounce(GradleStart.java:107) at GradleStart.startClient(GradleStart.java:100) at GradleStart.main(GradleStart.java:55) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraft.stats.StatBase.registerStat(SourceFile:42) at net.minecraft.stats.StatList.func_151182_a(StatList.java:212) at net.minecraft.entity.EntityList$EntityEggInfo.<init>(EntityList.java:320) at com.gallifrey2000.overpoweredmod.entity.mobBase.createEgg(mobBase.java:15) at com.gallifrey2000.overpoweredmod.entity.mobBase.registerEntity(mobBase.java:23) at com.gallifrey2000.overpoweredmod.MainFile.Init(MainFile.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288) at net.minecraft.client.Minecraft.startGame(Minecraft.java:541) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:867) at net.minecraft.client.main.Main.main(SourceFile:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at GradleStart.bounce(GradleStart.java:107) at GradleStart.startClient(GradleStart.java:100) at GradleStart.main(GradleStart.java:55) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_51, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 840614152 bytes (801 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.05 FML v7.10.18.1180 Minecraft Forge 10.13.0.1180 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{7.10.18.1180} [Forge Mod Loader] (forgeBin-1.7.10-10.13.0.1180.jar) Unloaded->Constructed->Pre-initialized->Initialized Forge{10.13.0.1180} [Minecraft Forge] (forgeBin-1.7.10-10.13.0.1180.jar) Unloaded->Constructed->Pre-initialized->Initialized overpoweredmod{Alpha v1.1.0} [§4Over §5Powered §6Mod] (bin) Unloaded->Constructed->Pre-initialized->Errored Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: AMD Radeon HD 6320 Graphics GL version 4.1.10834 Compatibility Profile Context, ATI Technologies Inc. GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: Off (1)
September 6, 201411 yr Author Thank you tons! Here is a thank you for you. Thank you so much. This is my first forum post and it ended on a good note. Thanks again!
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.