Jump to content

AimeryCM

Members
  • Posts

    38
  • Joined

  • Last visited

Everything posted by AimeryCM

  1. No, i was unaware I had to do that; where do I put the MinecraftForge.EVENT_BUS.register(new EventHandler()); ?
  2. Didn't work. Any other possibilities, or other methods to use instead of onBurnDamage?
  3. Ok. I used that information and came up with a bit of new code: public void onBurnDamage(LivingAttackEvent event) { if(event.entity instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer)event.entity; if(event.source.equals(DamageSource.lava) || event.source.equals(DamageSource.inFire) || event.source.equals(DamageSource.onFire)){ ItemStack head = player.inventory.armorInventory[0]; ItemStack chest = player.inventory.armorInventory[1]; ItemStack legs = player.inventory.armorInventory[2]; ItemStack feet = player.inventory.armorInventory[3]; if(head != null && chest != null && legs != null && feet != null){ ItemStack helmet = player.getEquipmentInSlot(1); ItemStack chestplate = player.getEquipmentInSlot(2); ItemStack Leggs = player.getEquipmentInSlot(3); ItemStack boots = player.getEquipmentInSlot(4); if(helmet.getItem() == MainClass.fieryHelmet && chestplate.getItem() == MainClass.fieryChestplate && Leggs.getItem() == MainClass.fieryLeggings && boots.getItem() == MainClass.fieryBoots){ event.setCanceled(true); } } } } } Still take damage from fire.
  4. Almost every method i have tried has required an ItemStack not Item, so I tried to fix it by making the Items into ItemStacks, but didnt work.
  5. I am trying to make it so that when an entity wears my custom armor, it is immune to magic damage, but the code that i have is not working. public void onBurnDamage(LivingAttackEvent event) { if(event.entity instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer)event.entity; if(event.source.equals(DamageSource.lava) || event.source.equals(DamageSource.inFire) || event.source.equals(DamageSource.onFire)){ ItemStack head = player.inventory.armorInventory[0]; ItemStack chest = player.inventory.armorInventory[1]; ItemStack legs = player.inventory.armorInventory[2]; ItemStack feet = player.inventory.armorInventory[3]; if(head != null && chest != null && legs != null && feet != null){ ItemStack helmet = new ItemStack((Item) Item.itemRegistry.getObject(MainClass.fieryHelmet)); ItemStack chestplate = new ItemStack((Item) Item.itemRegistry.getObject(MainClass.fieryChestplate)); ItemStack Leggs = new ItemStack((Item) Item.itemRegistry.getObject(MainClass.fieryLeggings)); ItemStack boots = new ItemStack((Item) Item.itemRegistry.getObject(MainClass.fieryBoots)); if(player.getEquipmentInSlot(1) == helmet && player.getEquipmentInSlot(2) == chestplate && player.getEquipmentInSlot(3) == Leggs && player.getEquipmentInSlot(4) == boots){ event.setCanceled(true); } } } } } If someone can figure out what I am doing wrong that would be great! Also, I am on 1.7 because it is what most other mods I plan on combining with this are on and what I am used to.
  6. I am not finding that method. By the way, i am using 1.7
  7. I am trying to find what to use to check if an entity is wearing my custom armor (fieryArmor) so that i can make them immune to fire damage by canceling the event onBurnDamage. Just to be specific, all i am looking for is an if statement to check if the armor being worn is my custom armor, whatever it may be through. Thanks!
  8. Didnt Realize it was just a texture thing, not a programming thing. Thanks. P.S. I am using 1.7 because it is the minecraft that i got to know and what most modpacks run on.
  9. I am a pretty new modder and was wondering what to use to make a custom item (a pickaxe) to change texture while it is being held, like how vanilla minecraft's fire works while in the player's inventory. Thanks!
  10. That worked! Thanks a lot! I thought i remembered trying to change my modid to FirstMod and it didnt work so i didnt think it work to do change the package names.
  11. As for my forge version, i am using 10.13.4.1448. Also, i have my textures saved in the source folder src/main/resources and in the packages assets.FirstMod.textures.items or substituting items with blocks or models or gui
  12. When i run the client, in the console this error comes up. [14:27:09] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found. [14:27:09] [Client thread/ERROR] [TEXTURE ERRORS]: ================================================== [14:27:09] [Client thread/ERROR] [TEXTURE ERRORS]: DOMAIN firstmod [14:27:09] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------------------------------- [14:27:09] [Client thread/ERROR] [TEXTURE ERRORS]: domain firstmod is missing 38 textures [14:27:09] [Client thread/ERROR] [TEXTURE ERRORS]: domain firstmod is missing a resource manager - it is probably a side-effect of automatic texture processing [14:27:09] [Client thread/ERROR] [TEXTURE ERRORS]: ------------------------- Also, thanks for the tips on cleaning up my code, but i dont mind my code being longer than needed, as long as i can navigate it.
  13. i just havent removed them from when this mod was 1.6
  14. When i launch the client from eclipse, the textures don't show up. I am not sure why. Can someone please help me? @Mod(modid = MainClass.modid, name = MainClass.name, version = MainClass.version) public class MainClass { @SidedProxy(clientSide = "com.FirstMod.MainPackage.ClientProxy", serverSide = "com.FirstMod.MainPackage.CommonProxy") public static CommonProxy proxy; public static final String modid = "firstmod"; public static final String version = "1"; public static final String name = "FirstMod"; //CreativeTab public static CreativeTabs modTab = new CreativeTabs("firstmodTab"){ public Item getTabIconItem() { return bloodstone; } }; @Instance(modid) public static MainClass instance; //ArmorIDs public static int bloodstoneHelmetID; public static int bloodstoneChestplateID; public static int bloodstoneLeggingsID; public static int bloodstoneBootsID; public static int platinumHelmetID; public static int platinumChestplateID; public static int platinumLeggingsID; public static int platinumBootsID; //Tool Material public static ToolMaterial BloodstoneMaterial = EnumHelper.addToolMaterial("BloodstoneMaterial", 2, 640, 5.0F, 2.0F, 20); public static ToolMaterial PlatinumMaterial = EnumHelper.addToolMaterial("PlatinumMaterial", 2, 960, 6.5F, 1.5F, 25); //Armor Material public static ArmorMaterial BloodstoneArmorMaterial = EnumHelper.addArmorMaterial("BloodstoneArmorMaterial", 25, new int[] {2, 7, 5, 2}, 25); public static ArmorMaterial PlatinumArmorMaterial = EnumHelper.addArmorMaterial("PlatinumArmorMaterial", 23, new int[] {3, 6, 6, 2}, 25); //blocks public static net.minecraft.block.Block blockBloodstoneOre = new blockBloodstoneOreClass(Material.rock).setBlockName("BloodstoneOre").setCreativeTab(modTab); public static net.minecraft.block.Block blockBloodstone = new blockBloodstoneClass(Material.rock).setBlockName("BloodstoneBlock").setCreativeTab(modTab); public static net.minecraft.block.Block blockPlatinumOre = new blockPlatinumOreClass(Material.rock).setBlockName("PlatinumOre").setCreativeTab(modTab); public static net.minecraft.block.Block blockPlatinum = new blockPlatinumClass(Material.rock).setBlockName("PlatinumBlock").setCreativeTab(modTab); public static net.minecraft.block.Block blockPlatinumFurnaceActive = new blockPlatinumFurnaceClass(true).setBlockName("PlatinumFurnaceActive").setHardness(4.0F).setLightLevel(0.7F); public static net.minecraft.block.Block blockPlatinumFurnaceIdle = new blockPlatinumFurnaceClass(false).setBlockName("PlatinumFurnaceIdle").setHardness(4.0F).setCreativeTab(modTab); //Items public static Item bloodstone = new Item().setUnlocalizedName("bloodstone").setCreativeTab(modTab).setTextureName(modid + ":" + "bloodstone").setMaxStackSize(64); public static Item platinumIngot = new Item().setUnlocalizedName("platinumIngot").setCreativeTab(modTab).setTextureName(modid + ":ingotPlatinum").setMaxStackSize(64); public static Item waterCrystal = new Item().setUnlocalizedName("WaterCrystal").setCreativeTab(modTab).setTextureName(modid + ":WaterCrystal").setMaxStackSize(64); public static Item fireCrystal = new Item().setUnlocalizedName("FireCrystal").setCreativeTab(modTab).setTextureName(modid + ":LavaCrystal").setMaxStackSize(64); public static Item airCrystal = new Item().setUnlocalizedName("AirCrystal").setCreativeTab(modTab).setTextureName(modid + ":AirCrystal").setMaxStackSize(64); public static Item earthCrystal = new Item().setUnlocalizedName("EarthCrystal").setCreativeTab(modTab).setTextureName(modid + ":EarthCrystal").setMaxStackSize(64); //Food public static Item chocolate = new foodClass(3, 0.4F, false).setUnlocalizedName("Chocolate").setCreativeTab(modTab).setTextureName(modid + ":chocolate"); public static net.minecraft.block.Block chocolateCake = new chocolateCakeClass(Material.cake).setBlockName("ChocolateCake").setBlockTextureName(modid + ":ChocolateCake"); public static Item chocolateCakeItem = new ItemReed(chocolateCake).setCreativeTab(modTab).setUnlocalizedName("ChocolateCakeItem").setTextureName(modid + ":ChocolateCake"); //Tools public static Item bloodstoneAxe = new bloodstoneAxeClass(BloodstoneMaterial).setUnlocalizedName("BloodstoneAxe").setCreativeTab(modTab).setTextureName(modid + ":hatchetBloodstone"); public static Item bloodstoneShovel = new bloodstoneShovelClass(BloodstoneMaterial).setUnlocalizedName("BloodstoneShovel").setCreativeTab(modTab).setTextureName(modid + ":shovelBloodstone"); public static Item bloodstonePickaxe = new bloodstonePickaxeClass(BloodstoneMaterial).setUnlocalizedName("BloodstonePickaxe").setCreativeTab(modTab).setTextureName(modid + ":pickaxeBloodstone"); public static Item bloodstoneHoe = new bloodstoneHoeClass(BloodstoneMaterial).setUnlocalizedName("BloodstoneHoe").setCreativeTab(modTab).setTextureName(modid + ":hoeBloodstone"); public static Item bloodstoneSword = new bloodstoneSwordClass(BloodstoneMaterial).setUnlocalizedName("BloodstoneSword").setCreativeTab(modTab).setTextureName(modid + ":swordBloodstone"); public static Item platinumAxe = new platinumAxeClass(PlatinumMaterial).setUnlocalizedName("PlatinumAxe").setCreativeTab(modTab).setTextureName(modid + ":hatchetPlatinum"); public static Item platinumShovel = new platinumShovelClass(PlatinumMaterial).setUnlocalizedName("PlatinumShovel").setCreativeTab(modTab).setTextureName(modid + ":shovelPlatinum"); public static Item platinumPickaxe = new platinumPickaxeClass(PlatinumMaterial).setUnlocalizedName("PlatinumPickaxe").setCreativeTab(modTab).setTextureName(modid + ":pickaxePlatinum"); public static Item platinumHoe = new platinumHoeClass(PlatinumMaterial).setUnlocalizedName("PlatinumHoe").setCreativeTab(modTab).setTextureName(modid + ":hoePlatinum"); public static Item platinumSword = new platinumSwordClass(PlatinumMaterial).setUnlocalizedName("PlatinumSword").setCreativeTab(modTab).setTextureName(modid + ":swordPlatinum"); //Armor public static Item bloodstoneHelmet = new bloodstoneArmor(BloodstoneArmorMaterial, bloodstoneHelmetID, 0).setUnlocalizedName("BloodstoneHelmet").setCreativeTab(modTab); public static Item bloodstoneChestplate = new bloodstoneArmor(BloodstoneArmorMaterial, bloodstoneChestplateID, 1).setUnlocalizedName("BloodstoneChestplate").setCreativeTab(modTab); public static Item bloodstoneLeggings = new bloodstoneArmor(BloodstoneArmorMaterial, bloodstoneLeggingsID, 2).setUnlocalizedName("BloodstoneLeggings").setCreativeTab(modTab); public static Item bloodstoneBoots = new bloodstoneArmor(BloodstoneArmorMaterial, bloodstoneBootsID, 3).setUnlocalizedName("BloodstoneBoots").setCreativeTab(modTab); public static Item platinumHelmet = new platinumArmorClass(PlatinumArmorMaterial, platinumHelmetID, 0).setUnlocalizedName("PlatinumHelmet").setCreativeTab(modTab); public static Item platinumChestplate = new platinumArmorClass(PlatinumArmorMaterial, platinumChestplateID, 1).setUnlocalizedName("PlatinumChestplate").setCreativeTab(modTab); public static Item platinumLeggings = new platinumArmorClass(PlatinumArmorMaterial, platinumLeggingsID, 2).setUnlocalizedName("PlatinumLeggings").setCreativeTab(modTab); public static Item platinumBoots = new platinumArmorClass(PlatinumArmorMaterial, platinumBootsID, 3).setUnlocalizedName("PlatinumBoots").setCreativeTab(modTab); //Generation public static bloodstoneGenerationClass bloodstoneWorldGen = new bloodstoneGenerationClass(); public static final int guiIdPlatinumFurnace = 0; @EventHandler public void load(FMLInitializationEvent g){ NetworkRegistry.INSTANCE.registerGuiHandler(MainClass.instance, new GuiHandler()); } @EventHandler public void init(FMLPreInitializationEvent e){ //Block Registry GameRegistry.registerBlock(blockBloodstoneOre, "BloodstoneOre"); GameRegistry.registerBlock(blockBloodstone, "BloodstoneBlock"); GameRegistry.registerBlock(blockPlatinumOre, "PlatinumOre"); GameRegistry.registerBlock(blockPlatinum, "PlatinumBlock"); GameRegistry.registerBlock(blockPlatinumFurnaceActive, "PlatinumFurnaceActive"); GameRegistry.registerBlock(blockPlatinumFurnaceIdle, "PlatinumFurnaceIdle"); //Item Registry GameRegistry.registerItem(bloodstone, "Bloodstone"); GameRegistry.registerItem(platinumIngot, "platinumIngot"); GameRegistry.registerItem(waterCrystal, "WaterCrystal"); GameRegistry.registerItem(fireCrystal, "FireCrystal"); GameRegistry.registerItem(airCrystal, "AirCrystal"); GameRegistry.registerItem(earthCrystal, "EarthCrystal"); //food Registry GameRegistry.registerItem(chocolate, "Chocolate"); GameRegistry.registerBlock(chocolateCake, "ChocolateCake"); GameRegistry.registerItem(chocolateCakeItem, "ChocolateCakeItem"); //Tool Registry GameRegistry.registerItem(bloodstoneAxe, "BloodstoneAxe"); GameRegistry.registerItem(bloodstoneShovel, "BloodstoneShovel"); GameRegistry.registerItem(bloodstoneHoe, "BloodstoneHoe"); GameRegistry.registerItem(bloodstonePickaxe, "BloodstonePickaxe"); GameRegistry.registerItem(bloodstoneSword, "BloodstoneSword"); GameRegistry.registerItem(platinumAxe, "PlatinumAxe"); GameRegistry.registerItem(platinumShovel, "PlatinumShovel"); GameRegistry.registerItem(platinumPickaxe, "PlatinumPickaxe"); GameRegistry.registerItem(platinumHoe, "PlatinumHoe"); GameRegistry.registerItem(platinumSword, "PlatinumSword"); //Armor Registry GameRegistry.registerItem(bloodstoneHelmet, "BloodstoneHelmet"); GameRegistry.registerItem(bloodstoneChestplate, "BloodstoneChestplate"); GameRegistry.registerItem(bloodstoneLeggings, "BloodstoneLeggings"); GameRegistry.registerItem(bloodstoneBoots, "BloodstoneBoots"); GameRegistry.registerItem(platinumHelmet, "PlatinumHelmet"); GameRegistry.registerItem(platinumChestplate, "PlatinumChestplate"); GameRegistry.registerItem(platinumLeggings, "PlatinumLeggings"); GameRegistry.registerItem(platinumBoots, "PlatinumBoots"); //Generation Registry GameRegistry.registerWorldGenerator(bloodstoneWorldGen, 1); //Crafting Registry GameRegistry.addRecipe(new ItemStack(bloodstoneAxe, 1), new Object[] {"XX ", "XS ", " S ", 'X', bloodstone, 'S', Item.itemRegistry.getObject("stick")}); GameRegistry.addRecipe(new ItemStack(bloodstoneShovel, 1), new Object[] {" X ", " S ", " S ",'X', bloodstone, 'S', Item.itemRegistry.getObject("stick")}); GameRegistry.addRecipe(new ItemStack(bloodstonePickaxe, 1), new Object[] {"XXX", " S ", " S ",'X', bloodstone, 'S', Item.itemRegistry.getObject("stick")}); GameRegistry.addRecipe(new ItemStack(bloodstoneHoe, 1), new Object[] {"XX ", " S ", " S ",'X', bloodstone, 'S', Item.itemRegistry.getObject("stick")}); GameRegistry.addRecipe(new ItemStack(bloodstoneSword, 1), new Object[] {" X ", " X ", " S ",'X', bloodstone, 'S', Item.itemRegistry.getObject("stick")}); GameRegistry.addRecipe(new ItemStack(bloodstoneHelmet, 1),new Object[] {"XXX","X X", 'X', bloodstone}); GameRegistry.addRecipe(new ItemStack(bloodstoneChestplate,1),new Object[] {"X X","XXX","XXX", 'X', bloodstone}); GameRegistry.addRecipe(new ItemStack(bloodstoneLeggings, 1), new Object[] {"XXX","X X","X X", 'X', bloodstone}); GameRegistry.addRecipe(new ItemStack(bloodstoneBoots, 1), new Object[] {"X X","X X", 'X', bloodstone}); GameRegistry.addRecipe(new ItemStack(blockBloodstone, 1), new Object[] {"XXX","XXX","XXX", 'X', bloodstone}); GameRegistry.addRecipe(new ItemStack(platinumAxe, 1), new Object[] {"XX ","XS "," S ", 'X', platinumIngot, 'S', Item.itemRegistry.getObject("stick")}); GameRegistry.addRecipe(new ItemStack(platinumShovel, 1), new Object[] {" X "," S "," S ", 'X', platinumIngot, 'S', Item.itemRegistry.getObject("stick")}); GameRegistry.addRecipe(new ItemStack(platinumPickaxe, 1), new Object[] {"XXX"," S "," S ", 'X', platinumIngot,'S', Item.itemRegistry.getObject("stick")}); GameRegistry.addRecipe(new ItemStack(platinumHoe, 1), new Object[] {"XX"," S"," S", 'X', platinumIngot, 'S', Item.itemRegistry.getObject("stick")}); GameRegistry.addRecipe(new ItemStack(platinumSword, 1), new Object[] {" X "," X "," S ", 'S', Item.itemRegistry.getObject("stick"), 'X', platinumIngot}); GameRegistry.addRecipe(new ItemStack(platinumHelmet, 1),new Object[] {"XXX","X X", 'X', platinumIngot}); GameRegistry.addRecipe(new ItemStack(platinumChestplate,1),new Object[] {"X X","XXX","XXX", 'X', platinumIngot}); GameRegistry.addRecipe(new ItemStack(platinumLeggings, 1), new Object[] {"XXX","X X","X X", 'X', platinumIngot}); GameRegistry.addRecipe(new ItemStack(platinumBoots, 1), new Object[] {"X X","X X", 'X', platinumIngot}); GameRegistry.addRecipe(new ItemStack(blockPlatinum, 1), new Object[] {"XXX","XXX","XXX", 'X', platinumIngot}); GameRegistry.addRecipe(new ItemStack(chocolateCakeItem, 1), new Object[] {"MCM","SES","WWW", 'M', Item.itemRegistry.getObject("milk_bucket"), 'C', chocolate, 'S', Item.itemRegistry.getObject("sugar"), 'E', Item.itemRegistry.getObject("egg"), 'W', Item.itemRegistry.getObject("wheat")}); //Smelting Registry GameRegistry.addSmelting(blockPlatinumOre, new ItemStack(platinumIngot), 2.5F); GameRegistry.addSmelting(blockBloodstoneOre, new ItemStack(bloodstone), 2.5F); //Ore Registry OreDictionary.registerOre("gemBloodstone", new ItemStack(bloodstone)); OreDictionary.registerOre("orePlatinum", new ItemStack(blockPlatinumOre)); OreDictionary.registerOre("ingotPlatinum", new ItemStack(platinumIngot)); OreDictionary.registerOre("oreBloodstone", new ItemStack(blockBloodstoneOre)); GameRegistry.registerTileEntity(TileEntityPlatinumFurnace.class, "tileEntityPlatinumFurnace"); LanguageRegistry.instance().addStringLocalization("container.platinumFurnace", "Platinum Furnace"); } } If you could just figure out how to do the item bloodstone and the block blockBloodstoneOre i can change the rest. All of the Texture names are correct. public class blockBloodstoneOreClass extends Block{ public blockBloodstoneOreClass(Material p_i45394_1_) { super(p_i45394_1_); setHardness(4f); setResistance(7F); setBlockTextureName(MainClass.modid + ":BloodstoneOre"); } @Override public Item getItemDropped(int par1, Random random, int par3){ return MainClass.bloodstone; } public int quantityDropped(Random p_149745_1_) { return this == MainClass.blockBloodstoneOre ? 1 + p_149745_1_.nextInt(2) : 1; } } There is the code for my blockBloodstoneOre
  15. Thanks guys. I took a long break in between when i started this mod and now, so i may have screwed something up then. I will install a new version of forge with minecraft 1.7.10 and see if it works!
  16. When i try to run minecraft from eclipse with the mod i have designed, the console opens up and displays this: [21:44:48] [main/INFO] [GradleStart]: accessToken: FML [21:44:48] [main/INFO] [GradleStart]: version: 1.6 [21:44:48] [main/INFO] [GradleStart]: Extra: [--tweakClass, cpw.mods.fml.common.launcher.FMLTweaker] [21:44:48] [main/INFO] [GradleStart]: Setting up virtual assets in: C:\Users\brent\.gradle\caches\minecraft\assets\virtual\legacy [21:44:50] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:\Users\brent\.gradle\caches\minecraft\assets\virtual\legacy, --assetIndex, legacy, --accessToken, {REDACTED}, --version, 1.6, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker] [21:44:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [21:44:50] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [21:44:50] [main/WARN] [LaunchWrapper]: Tweak class name cpw.mods.fml.common.launcher.FMLTweaker has already been visited -- skipping [21:44:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker [21:44:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [21:44:50] [main/INFO] [FML]: Forge Mod Loader version 7.2.211.1121 for Minecraft 1.7.2 loading [21:44:50] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.8.0_40, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_40 [21:44:50] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [21:44:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker [21:44:50] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin [21:44:50] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [21:44:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [21:44:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [21:44:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [21:44:50] [main/ERROR] [LaunchWrapper]: Unable to launch java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(Unknown Source) ~[?:1.8.0_40] at java.util.ArrayList$Itr.remove(Unknown Source) ~[?:1.8.0_40] at net.minecraft.launchwrapper.Launch.launch(Launch.java:117) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release Also, there are no new crash reports when i try to run the client and this happens. Well, if you can help, it would be greatly appriciated! (Also, if i need to post any code i am willing to do so if needed)
  17. That made it work! Thanks a bunch!
  18. when i replace gettextureName with setTextureName it gives me an error. were should i put this.setTextureName(YourMod.modID + ":yourCustomCakeTexture") ?
  19. Hi. Can someone help me get my textures to work with my custom cake? I have everything working except i don't know how to add custom textures to my cake. Here is my cake code for the texture (the same as Minecraft's cake): @SideOnly(Side.CLIENT) public IIcon getIcon(int p_149691_1_, int p_149691_2_) { return p_149691_1_ == 1 ? this.field_150038_a : (p_149691_1_ == 0 ? this.field_150037_b : (p_149691_2_ > 0 && p_149691_1_ == 4 ? this.field_150039_M : this.blockIcon)); } @SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister p_149651_1_) { this.blockIcon = p_149651_1_.registerIcon(this.getTextureName() + "_side"); this.field_150039_M = p_149651_1_.registerIcon(this.getTextureName() + "_inner"); this.field_150038_a = p_149651_1_.registerIcon(this.getTextureName() + "_top"); this.field_150037_b = p_149651_1_.registerIcon(this.getTextureName() + "_bottom"); } Sorry i couldn't put it in the code hider things. Its not working for some reason. My texture names are the chocolateCake_(theside). Thanks for the help!
  20. Just fixed it. In the first line of the if, if ,else statement, i took out the checking for leggings and it fixed. Thx for the help!
  21. i tried that and the same thing happened. remember, when wearing all pieces, it doesn't show legs because when wearing leggings it shows you wearing half the chestplate and the boots.
  22. to do that, would you do two if statements? one checking for layer 1 armor pieces and one checking for the second?
×
×
  • Create New...

Important Information

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