Jump to content

AssassinHero

Members
  • Posts

    179
  • Joined

  • Last visited

Everything posted by AssassinHero

  1. Pretty sure not. None of it refers to your code and I think I get that error to. That error is deep in the texture stitching code that turns all of our block and item PNGs into a single spritesheet (which doesn't effect mob textures, nor any texture directly referenced like you're doing). I really don't see the issue with the code or anything
  2. Just a hunch: Make a small, meaningless, change to the source code (e.g. add a debug statement, like System.out.println("Hello")) and run it again. When I was messing with GUIs, I noticed that I had to make a change to the code for the program to recompile with the new texture. I was checking through the console and found this... 2013-05-14 19:08:24 [iNFO] [sTDERR] java.lang.NoSuchFieldException: GL_ARB_copy_image 2013-05-14 19:08:24 [iNFO] [sTDERR] at java.lang.Class.getField(Unknown Source) 2013-05-14 19:08:24 [iNFO] [sTDERR] at cpw.mods.fml.client.TextureFXManager.getHelper(TextureFXManager.java:122) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureStitched.init(TextureStitched.java:74) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:154) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:520) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:443) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-05-14 19:08:24 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:732) 2013-05-14 19:08:24 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) IS this anything to do with the bug?
  3. This is the code for my render and model Render: package assassinhero.parallelworlds.entitypenguin; import net.minecraft.client.model.ModelBase; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; public class RenderPenguin extends RenderLiving{ protected ModelPenguin model; public RenderPenguin(ModelPenguin par1ModelBase, float par2) { super(par1ModelBase, par2); this.model = ((ModelPenguin)mainModel); } public RenderPenguin(ModelBase par1ModelBase, float par2) { super(par1ModelBase, par2); } public void renderPenguin(EntityPenguin par1EntityPenguin, double par2, double par4, double par6, float par8, float par9) { super.doRenderLiving(par1EntityPenguin, par2, par4, par6, par8, par9); } public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9) { this.renderPenguin((EntityPenguin)par1EntityLiving, par2, par4, par6, par8, par9); } public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) { this.renderPenguin((EntityPenguin)par1Entity, par2, par4, par6, par8, par9); } } Model: package assassinhero.parallelworlds.entitypenguin; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; public class ModelPenguin extends ModelBase { ModelRenderer FootRight; ModelRenderer FootLeft; ModelRenderer LegRight; ModelRenderer LegLeft; ModelRenderer Torso; ModelRenderer ArmRight; ModelRenderer ArmLeft; ModelRenderer Head; ModelRenderer UpperBeak; ModelRenderer LowerBeak; public ModelPenguin() { textureWidth = 64; textureHeight = 32; FootRight = new ModelRenderer(this, 50, 23); FootRight.addBox(0F, 0F, 0F, 3, 1, 2); FootRight.setRotationPoint(0F, 23F, 2F); FootRight.setTextureSize(64, 32); FootRight.mirror = true; setRotation(FootRight, 0F, 0F, 0F); FootLeft = new ModelRenderer(this, 50, 18); FootLeft.addBox(0F, 0F, 0F, 3, 1, 2); FootLeft.setRotationPoint(0F, 23F, -4F); FootLeft.setTextureSize(64, 32); FootLeft.mirror = true; setRotation(FootLeft, 0F, 0F, 0F); LegRight = new ModelRenderer(this, 33, 24); LegRight.addBox(0F, 0F, 0F, 1, 4, 2); LegRight.setRotationPoint(0F, 19F, 2F); LegRight.setTextureSize(64, 32); LegRight.mirror = true; setRotation(LegRight, 0F, 0F, 0F); LegLeft = new ModelRenderer(this, 22, 24); LegLeft.addBox(0F, 0F, 0F, 1, 4, 2); LegLeft.setRotationPoint(0F, 19F, -4F); LegLeft.setTextureSize(64, 32); LegLeft.mirror = true; setRotation(LegLeft, 0F, 0F, 0F); Torso.mirror = true; Torso = new ModelRenderer(this, 28, 3); Torso.addBox(0F, 1F, 0F, 2, 9, ; Torso.setRotationPoint(0F, 9F, -4F); Torso.setTextureSize(64, 32); Torso.mirror = true; setRotation(Torso, 0F, 0F, 0F); Torso.mirror = false; ArmRight = new ModelRenderer(this, 52, 6); ArmRight.addBox(0F, 0F, 0F, 2, 5, 2); ArmRight.setRotationPoint(0F, 10F, 4F); ArmRight.setTextureSize(64, 32); ArmRight.mirror = true; setRotation(ArmRight, 0F, 0F, 0F); ArmLeft = new ModelRenderer(this, 19, 7); ArmLeft.addBox(0F, 0F, 0F, 2, 5, 2); ArmLeft.setRotationPoint(0F, 10F, -6F); ArmLeft.setTextureSize(64, 32); ArmLeft.mirror = true; setRotation(ArmLeft, 0F, 0F, 0F); Head = new ModelRenderer(this, 1, 1); Head.addBox(0F, 0F, 0F, 2, 5, 6); Head.setRotationPoint(0F, 5F, -3F); Head.setTextureSize(64, 32); Head.mirror = true; setRotation(Head, 0F, 0F, 0F); UpperBeak = new ModelRenderer(this, 5, 17); UpperBeak.addBox(0F, 0F, 0F, 2, 1, 4); UpperBeak.setRotationPoint(2F, 7F, -2F); UpperBeak.setTextureSize(64, 32); UpperBeak.mirror = true; setRotation(UpperBeak, 0F, 0F, 0F); LowerBeak = new ModelRenderer(this, 5, 25); LowerBeak.addBox(0F, 0F, 0F, 1, 1, 4); LowerBeak.setRotationPoint(2F, 8F, -2F); LowerBeak.setTextureSize(64, 32); LowerBeak.mirror = true; setRotation(LowerBeak, 0F, 0F, 0F); } public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7) { super.render(par1Entity, par2, par3, par4, par5, par6, par7); setRotationAngles(par2, par3, par4, par5, par6, par7, par1Entity); FootRight.render(par7); FootLeft.render(par7); LegRight.render(par7); LegLeft.render(par7); Torso.render(par7); ArmRight.render(par7); ArmLeft.render(par7); Head.render(par7); UpperBeak.render(par7); LowerBeak.render(par7); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity) { super.setRotationAngles(par1, par2, par3, par4, par5, par6, par7Entity); } }
  4. I have retextured it and moved the texture map to stop overlaps Still no luck
  5. I have created the model in Techne at 64x32 and did you actually export the model from techne into a java file, fix the errors, made an animation for this and register your Model class with the RenderingRegistry? Yes
  6. Yes it is extending ModelBase and I have that line of code
  7. I have created the model in Techne at 64x32
  8. Still doesnt work Here is my line of code this.texture = "/mods/ParallelWorlds/textures/mobs/Penguin.png"; That is what I am using to get the texture and it isnt working EDIT: The textures are on but are now extremely bugged.... This is the texture map Any help here?
  9. I'm not sure how texturing in 1.4.7 is. I only started coding in 1.5 so the code would be Is that correct or am I completely off there? this.texture = "MCP NEW/src/minecraft/mob/ModelPenguin"
  10. Alright, I want to get the textures for my mob... How would I do this and where would I place the file? Thanks
  11. It's fixed now, Thanks for the advice
  12. I feel like such a derp
  13. Anyone got a solution?
  14. But the thing is it actually crashes but doesnt have a message D: It's so confusing
  15. Everything this is fine with it apart from the 0x it says invalid hex number This is to set the color of the egg
  16. Hey everyone, I have 3 errors that I have no idea on how to fix The first error is this line model = ((ModelPenguin)mainModel); This error is on model The next error is under public public RenderPenguin(ModelPenguin par1ModelBase, float par2) { Here is the full class for those two errors package assassinhero.parallelworlds; import net.minecraft.client.model.ModelBase; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; public class RenderPenguin extends RenderLiving{ protected ModelPenguinModel public RenderPenguin(ModelPenguin par1ModelBase, float par2) { super(par1ModelBase, par2); model = ((ModelPenguin)mainModel); } public RenderPenguin(ModelBase par1ModelBase, float par2) { super(par1ModelBase, par2); } public void renderPenguin(EntityPenguin par1EntityPenguin, double par2, double par4, double par6, float par8, float par9) { super.doRenderLiving(par1EntityPenguin, par2, par4, par6, par8, par9); } public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9) { this.renderPenguin((EntityPenguin)par1EntityLiving, par2, par4, par6, par8, par9); } public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) { this.renderPenguin((EntityPenguin)par1Entity, par2, par4, par6, par8, par9); } } The last error is registerEntityEgg(EntityPenguin.class, 0x#000000, 0x#FFA500); The error is under the first 0x Here is the full class package assassinhero.parallelworlds; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityEggInfo; import net.minecraft.entity.EntityList; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.WeightedRandomChestContent; import net.minecraftforge.common.ChestGenHooks; import net.minecraftforge.common.EnumHelper; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.living.LivingDropsEvent; import assassinhero.parallelworlds.client.ClientPacketHandler; import assassinhero.parallelworlds.common.CommonProxy; import assassinhero.parallelworlds.common.ServerPacketHandler; import assassinhero.parallelworlds.common.blocks.BlockArcticiteBlock; import assassinhero.parallelworlds.common.blocks.BlockAscariteBlock; import assassinhero.parallelworlds.common.blocks.BlockHellStoneBlock; import assassinhero.parallelworlds.common.blocks.BlockHelliteBlock; import assassinhero.parallelworlds.common.blocks.BlockNightOre; import assassinhero.parallelworlds.common.blocks.BlockNightiumBlock; import assassinhero.parallelworlds.common.blocks.BlockSapphireBlock; import assassinhero.parallelworlds.common.blocks.BlockTimeOre; import assassinhero.parallelworlds.common.blocks.BlockTiminiumBlock; import assassinhero.parallelworlds.common.items.CookedLambChopFood; import assassinhero.parallelworlds.common.items.ItemHellShardItem; import assassinhero.parallelworlds.common.items.ItemHellSoulsItem; import assassinhero.parallelworlds.common.items.ItemIceGemItem; import assassinhero.parallelworlds.common.items.ItemIceShardItem; import assassinhero.parallelworlds.common.items.ItemNightGemItem; import assassinhero.parallelworlds.common.items.ItemPureSoulsItem; import assassinhero.parallelworlds.common.items.ItemPurityGemItem; import assassinhero.parallelworlds.common.items.ItemSapphireItem; import assassinhero.parallelworlds.common.items.ItemTimeGemItem; import assassinhero.parallelworlds.common.items.ItemTimeShardItem; import assassinhero.parallelworlds.common.items.RawLambChopFood; import assassinhero.parallelworlds.common.items.TimeAxe; import assassinhero.parallelworlds.common.items.TimeBlade; import assassinhero.parallelworlds.common.items.TimeHoe; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; 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.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler; import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.registry.GameRegistry; @NetworkMod(clientSideRequired=true,serverSideRequired=false, clientPacketHandlerSpec = @SidedPacketHandler(channels = {"ParallelWorlds" }, packetHandler = ClientPacketHandler.class), serverPacketHandlerSpec = @SidedPacketHandler(channels = {"ParallelWorlds"}, packetHandler = ServerPacketHandler.class)) @Mod(modid="AssassinHero_ParallelWorlds",name="ParallelWorlds",version="1.0") public class ParallelWorldsMain { @Instance("ParallelWorlds") public static ParallelWorldsMain instance = new ParallelWorldsMain(); @SidedProxy(clientSide = "assassinhero.parallelworlds.client.ClientProxy", serverSide = "assassinhero.parallelworlds.common.CommonProxy") public static CommonProxy proxy; static int startEntityId = 300; public static Item IceShard; public static Block NightOre; public static Block Nightium; public static Item NightGem; public static Block TimeOre; public static Block Timinium; public static Item TimeGem; public static Block Arcticite; public static Block Hellite; public static Item HellShard; public static Block Ascarite; public static Item HellSoul; public static Item PureSoul; public static Item PurityGem; public static Block SapphireBlock; public static Item RawLambChop; public static Item TimePickaxe; public static Item Sapphire; public static Item IceGem; public static Item TimeBlade; public static Item TimeShard; public static Item CookedLambChop; public static Item TimeShovel; public static Item TimeAxe; public static Item TimeHoe; public static Block HellStone; @cpw.mods.fml.common.Mod.PreInit public void PreInit(FMLPreInitializationEvent event){ Nightium = new BlockNightiumBlock(3000, Material.iron).setUnlocalizedName("Nightium"); NightOre = new BlockNightOre(3001, Material.rock).setUnlocalizedName("Night Ore"); TimeOre = new BlockTimeOre(3003, Material.rock).setUnlocalizedName("Time Ore"); Timinium = new BlockTiminiumBlock(3004, Material.iron).setUnlocalizedName("Timinium"); Arcticite = new BlockArcticiteBlock(3005, Material.iron).setUnlocalizedName("Arcticite"); Hellite = new BlockHelliteBlock(3006, Material.iron).setUnlocalizedName("Hellite"); Ascarite = new BlockAscariteBlock(3007, Material.iron).setUnlocalizedName("Ascarite"); SapphireBlock = new BlockSapphireBlock(3008, Material.iron).setUnlocalizedName("Sapphire Block"); HellStone = new BlockHellStoneBlock(3009, Material.iron).setUnlocalizedName("HellStone"); NightGem = new ItemNightGemItem(5000).setUnlocalizedName("Night Gem"); TimeGem = new ItemTimeGemItem(5001).setUnlocalizedName("Time Gem"); HellShard = new ItemHellShardItem(5002).setUnlocalizedName("Hell Shard"); HellSoul = new ItemHellSoulsItem(5003).setUnlocalizedName("Hell Soul"); PureSoul = new ItemPureSoulsItem(5004).setUnlocalizedName("Pure Soul"); PurityGem = new ItemPurityGemItem(5005).setUnlocalizedName("Purity Gem"); RawLambChop = new RawLambChopFood(5006, 3, 4.0F, true).setUnlocalizedName("Raw Lamb Chop"); Sapphire = new ItemSapphireItem(5007).setUnlocalizedName("Sapphire"); IceGem = new ItemIceGemItem(5008).setUnlocalizedName("IceGem"); TimeShard = new ItemTimeShardItem(5009).setUnlocalizedName("Time Shard"); CookedLambChop = new CookedLambChopFood(5010, 8, 8.0F, true).setUnlocalizedName("Cooked Lamb Chop"); IceShard = new ItemIceShardItem(5011).setUnlocalizedName("Ice Shard"); TimeBlade = new TimeBlade(15000, EnumToolMaterial.TIME).setUnlocalizedName("Time Blade"); TimePickaxe = new assassinhero.parallelworlds.common.items.TimePickaxe(15001, EnumToolMaterial.TIME).setUnlocalizedName("Time Pickaxe"); TimeShovel = new assassinhero.parallelworlds.common.items.TimeShovel(15002, EnumToolMaterial.TIME).setUnlocalizedName("Time Shovel"); TimeAxe = new TimeAxe(15003, EnumToolMaterial.TIME).setUnlocalizedName("TimeAxe"); TimeHoe = new TimeHoe(15004, EnumToolMaterial.TIME).setUnlocalizedName("Time Hoe"); } @Init public void Init(FMLInitializationEvent event){ proxy.registerBlocks(); proxy.registerItems(); NetworkRegistry.instance().registerGuiHandler(this, proxy); craftingRecipes(); smeltingRecipes(); BlockHarvestLevel(); MinecraftForge(); EnumToolMaterial(); ChestGenHook(); EntityRegistry(); } public void craftingRecipes(){ GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.Nightium, 1), "XX", "XX", Character.valueOf('X'), ParallelWorldsMain.NightGem); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.Timinium, 1), "XX", "XX", Character.valueOf('X'), ParallelWorldsMain.TimeGem); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.Arcticite, 1), "XX", "XX", Character.valueOf('X'), Block.blockSnow); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.HellStone, 1), "XXX", "XXX", "XXX", Character.valueOf('X'), ParallelWorldsMain.HellShard); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.SapphireBlock, 1), "XXX", "XXX", "XXX", Character.valueOf('X'), ParallelWorldsMain.Sapphire); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.Ascarite, 1), "XXX", "XXX", "XXX", Character.valueOf('X'), ParallelWorldsMain.PureSoul); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.TimePickaxe, 1), "XXX", " A ", " A ", Character.valueOf('X'), ParallelWorldsMain.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.TimeGem, 1), "XXX", "XXX", "XXX", Character.valueOf('X'), ParallelWorldsMain.TimeShard); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.TimeShovel, 1), " X ", " A ", " A ", Character.valueOf('X'), ParallelWorldsMain.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.TimeAxe, 1), "XX ", "XA ", " A ", Character.valueOf('X'), ParallelWorldsMain.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.TimeHoe, 1), "XX ", " A ", " A ", Character.valueOf('X'), ParallelWorldsMain.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.IceGem, 1), "XXX", "XXX", "XXX", Character.valueOf('X'), ParallelWorldsMain.IceShard); GameRegistry.addShapelessRecipe(new ItemStack(ParallelWorldsMain.PureSoul, 1), new Object[]{ParallelWorldsMain.HellSoul, ParallelWorldsMain.PurityGem}); } public void smeltingRecipes(){ GameRegistry.addSmelting(NightOre.blockID, new ItemStack(NightGem, 1), 0.5F); GameRegistry.addSmelting(TimeOre.blockID, new ItemStack(TimeShard, 1), 0.5F); } public void BlockHarvestLevel(){ MinecraftForge.setBlockHarvestLevel(Nightium, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(NightOre, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(TimeOre, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(Timinium, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(Arcticite, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(Hellite, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(Ascarite, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(SapphireBlock, "pickaxe", 2); } public void MinecraftForge(){ MinecraftForge.EVENT_BUS.register(new LivingDropsEvent(null, null, null, 0, false, 0)); } public void EnumToolMaterial(){ EnumToolMaterial toolTime = EnumHelper.addToolMaterial("Time", 2, 2000, 10.0F, 8, 15); EnumToolMaterial toolNight = EnumHelper.addToolMaterial("NIGHT", 2, 500, 9.0F, 20, 10); } public void ChestGenHook(){ ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(ParallelWorldsMain.NightGem), 1, 5, 50)); } public void EntityRegistry(){ cpw.mods.fml.common.registry.EntityRegistry.registerModEntity(EntityPenguin.class, "Penguin", 1, this, 80, 3, true); cpw.mods.fml.common.registry.EntityRegistry.addSpawn(EntityPenguin.class, 10, 1, 3, EnumCreatureType.monster, BiomeGenBase.icePlains); LanguageRegistry.instance().addStringLocalization("entity.AssassinHero_ParallelWorlds.ParallelWorlds.name", "Penguin"); registerEntityEgg(EntityPenguin.class, 0x#000000, 0x#FFA500); } public static int getUniqueEntityId(){ do{ startEntityId++; } while(EntityList.getStringFromID(startEntityId)!= null); return startEntityId; } public static void registerEntityEgg(Class <? extends Entity> entity, int primaryColor, int secondaryColor){ int id = getUniqueEntityId(); EntityList.IDtoClassMapping.put(id, entity); EntityList.entityEggs.put(id, new EntityEggInfo(id, primaryColor, secondaryColor)); } } If you could help me fix them that would be epic Thanks
  17. How many times do i have to say this? There is NO crash report. That is the only thing I ever get -.-
  18. why is it crashing then?
  19. That is not even an error. It still crashes the game though.... Anyway to fix it?
  20. What error? You never posted any error log. There is no error log, [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0 That's all I get.
  21. Bump, Still getting this error....
  22. I have coded in a chest gen hook but I am not entirely sure that I have done it correctly public void ChestGenHook(){ ChestGenHooks.getInfo("DUNGEON_CHEST").addItem(new WeightedRandomChestContent(new ItemStack(ParallelWorldsMain.NightGem), 1, 5, 50)); } That is my code for the Chestgenhook Is it looking ok or have I done something wrong? I have loaded it in my init method aswell
  23. What's the error? Code for the RawLambChopFood class? package assassinhero.parallelworlds.common.items; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.ItemFood; public class RawLambChopFood extends ItemFood{ public RawLambChopFood(int par1, int par2, float par3, boolean par4) { super(par1, par2, par3, par4); setCreativeTab(CreativeTabs.tabFood); } public void updateIcons(IconRegister par1iconregister){ this.itemIcon = par1iconregister.registerIcon("ParallelWorlds:RawLambChop"); } } Thats the code for the raw lamb chop class i dont get an error all i get is what i have provided
  24. Still not fixed
  25. Hey guys, Well first and for most I get this error on my custom food item [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0 the code highlighted for the error is: RawLambChop = new RawLambChopFood(5006, 3, 4.0F, true).setUnlocalizedName("Raw Lamb Chop"); Here is my whole main class: package assassinhero.parallelworlds; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.common.EnumHelper; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.living.LivingDropsEvent; import assassinhero.parallelworlds.client.ClientPacketHandler; import assassinhero.parallelworlds.common.CommonProxy; import assassinhero.parallelworlds.common.ServerPacketHandler; import assassinhero.parallelworlds.common.blocks.BlockArcticiteBlock; import assassinhero.parallelworlds.common.blocks.BlockAscariteBlock; import assassinhero.parallelworlds.common.blocks.BlockHelliteBlock; import assassinhero.parallelworlds.common.blocks.BlockNightOre; import assassinhero.parallelworlds.common.blocks.BlockNightiumBlock; import assassinhero.parallelworlds.common.blocks.BlockSapphireBlock; import assassinhero.parallelworlds.common.blocks.BlockTimeOre; import assassinhero.parallelworlds.common.blocks.BlockTiminiumBlock; import assassinhero.parallelworlds.common.items.CookedLambChopFood; import assassinhero.parallelworlds.common.items.ItemHellShardItem; import assassinhero.parallelworlds.common.items.ItemHellSoulsItem; import assassinhero.parallelworlds.common.items.ItemIceGemItem; import assassinhero.parallelworlds.common.items.ItemNightGemItem; import assassinhero.parallelworlds.common.items.ItemPureSoulsItem; import assassinhero.parallelworlds.common.items.ItemPurityGemItem; import assassinhero.parallelworlds.common.items.ItemSapphireItem; import assassinhero.parallelworlds.common.items.ItemTimeGemItem; import assassinhero.parallelworlds.common.items.ItemTimeShardItem; import assassinhero.parallelworlds.common.items.RawLambChopFood; import assassinhero.parallelworlds.common.items.TimeAxe; import assassinhero.parallelworlds.common.items.TimeBlade; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; 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.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler; import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.registry.GameRegistry; @NetworkMod(clientSideRequired=true,serverSideRequired=false, clientPacketHandlerSpec = @SidedPacketHandler(channels = {"ParallelWorlds" }, packetHandler = ClientPacketHandler.class), serverPacketHandlerSpec = @SidedPacketHandler(channels = {"ParallelWorlds"}, packetHandler = ServerPacketHandler.class)) @Mod(modid="AssassinHero_ParallelWorlds",name="ParallelWorlds",version="1.0") public class ParallelWorldsMain { @Instance("ParallelWorlds") public static ParallelWorldsMain instance = new ParallelWorldsMain(); @SidedProxy(clientSide = "assassinhero.parallelworlds.client.ClientProxy", serverSide = "assassinhero.parallelworlds.common.CommonProxy") public static CommonProxy proxy; public static Block NightOre; public static Block Nightium; public static Item NightGem; public static Block TimeOre; public static Block Timinium; public static Item TimeGem; public static Block Arcticite; public static Block Hellite; public static Item HellShard; public static Block Ascarite; public static Item HellSoul; public static Item PureSoul; public static Item PurityGem; public static Block SapphireBlock; public static Item RawLambChop; public static Item TimePickaxe; public static Item Sapphire; public static Item IceGem; public static Item TimeBlade; public static Item TimeShard; public static Item CookedLambChop; public static Item TimeShovel; public static Item TimeAxe; @cpw.mods.fml.common.Mod.PreInit public void PreInit(FMLPreInitializationEvent event){ Nightium = new BlockNightiumBlock(3000, Material.iron).setUnlocalizedName("Nightium"); NightOre = new BlockNightOre(3001, Material.rock).setUnlocalizedName("Night Ore"); TimeOre = new BlockTimeOre(3003, Material.rock).setUnlocalizedName("Time Ore"); Timinium = new BlockTiminiumBlock(3004, Material.iron).setUnlocalizedName("Timinium"); Arcticite = new BlockArcticiteBlock(3005, Material.iron).setUnlocalizedName("Arcticite"); Hellite = new BlockHelliteBlock(3006, Material.iron).setUnlocalizedName("Hellite"); Ascarite = new BlockAscariteBlock(3007, Material.iron).setUnlocalizedName("Ascarite"); SapphireBlock = new BlockSapphireBlock(3008, Material.iron).setUnlocalizedName("Sapphire Block"); NightGem = new ItemNightGemItem(5000).setUnlocalizedName("Night Gem"); TimeGem = new ItemTimeGemItem(5001).setUnlocalizedName("Time Gem"); HellShard = new ItemHellShardItem(5002).setUnlocalizedName("Hell Shard"); HellSoul = new ItemHellSoulsItem(5003).setUnlocalizedName("Hell Soul"); PureSoul = new ItemPureSoulsItem(5004).setUnlocalizedName("Pure Soul"); PurityGem = new ItemPurityGemItem(5005).setUnlocalizedName("Purity Gem"); RawLambChop = new RawLambChopFood(5006, 3, 4.0F, true).setUnlocalizedName("Raw Lamb Chop"); Sapphire = new ItemSapphireItem(5007).setUnlocalizedName("Sapphire"); IceGem = new ItemIceGemItem(5008).setUnlocalizedName("IceGem"); TimeShard = new ItemTimeShardItem(5009).setUnlocalizedName("Time Shard"); CookedLambChop = new CookedLambChopFood(5010, 8, 8.0F, true).setUnlocalizedName("Cooked Lamb Chop"); TimeBlade = new TimeBlade(15000, EnumToolMaterial.TIME).setUnlocalizedName("Time Blade"); TimePickaxe = new assassinhero.parallelworlds.common.items.TimePickaxe(15001, EnumToolMaterial.TIME).setUnlocalizedName("Time Pickaxe"); TimeShovel = new assassinhero.parallelworlds.common.items.TimeShovel(15002, EnumToolMaterial.TIME).setUnlocalizedName("Time Shovel"); TimeAxe = new TimeAxe(15003, EnumToolMaterial.TIME).setUnlocalizedName("TimeAxe"); } @Init public void Init(FMLInitializationEvent event){ proxy.registerBlocks(); proxy.registerItems(); NetworkRegistry.instance().registerGuiHandler(this, proxy); craftingRecipes(); smeltingRecipes(); BlockHarvestLevel(); MinecraftForge(); EnumToolMaterial(); } public void craftingRecipes(){ GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.Nightium, 1), "XX", "XX", Character.valueOf('X'), ParallelWorldsMain.NightGem); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.Timinium, 1), "XX", "XX", Character.valueOf('X'), ParallelWorldsMain.TimeGem); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.Arcticite, 1), "XX", "XX", Character.valueOf('X'), Block.blockSnow); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.Hellite, 1), "XX", "XX", Character.valueOf('X'), ParallelWorldsMain.HellShard); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.SapphireBlock, 1), "XXX", "XXX", "XXX", Character.valueOf('X'), ParallelWorldsMain.Sapphire); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.Ascarite, 1), "XXX", "XXX", "XXX", Character.valueOf('X'), ParallelWorldsMain.PureSoul); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.TimePickaxe, 1), "XXX", " A ", " A ", Character.valueOf('X'), ParallelWorldsMain.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.TimeGem, 1), "XXX", "XXX", "XXX", Character.valueOf('X'), ParallelWorldsMain.TimeShard); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.TimeShovel, 1), " X ", " A ", " A ", Character.valueOf('X'), ParallelWorldsMain.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addRecipe(new ItemStack(ParallelWorldsMain.TimeAxe, 1), "XX ", "XA ", " A ", Character.valueOf('X'), ParallelWorldsMain.TimeGem, Character.valueOf('A'), Item.stick); GameRegistry.addShapelessRecipe(new ItemStack(ParallelWorldsMain.PureSoul, 1), new Object[]{ParallelWorldsMain.HellSoul, ParallelWorldsMain.PurityGem}); } public void smeltingRecipes(){ GameRegistry.addSmelting(NightOre.blockID, new ItemStack(NightGem, 1), 0.5F); GameRegistry.addSmelting(TimeOre.blockID, new ItemStack(TimeShard, 1), 0.5F); } public void BlockHarvestLevel(){ MinecraftForge.setBlockHarvestLevel(Nightium, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(NightOre, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(TimeOre, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(Timinium, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(Arcticite, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(Hellite, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(Ascarite, "pickaxe", 2); MinecraftForge.setBlockHarvestLevel(SapphireBlock, "pickaxe", 2); } public void MinecraftForge(){ MinecraftForge.EVENT_BUS.register(new LivingDropsEvent(null, null, null, 0, false, 0)); } public void EnumToolMaterial(){ EnumToolMaterial toolTime = EnumHelper.addToolMaterial("Time", 2, 2000, 10.0F, 8, 15); } } I know the MinecraftFoege.EVENT_BUS is not correct I am working on fixing that... Any solutions?
×
×
  • Create New...

Important Information

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