Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

McScavenger

Members
  • Joined

  • Last visited

  1. In my main mod class: public static final Block GreenCrystal = new BlockCrystal(606, 6, Material.grass).setHardness(1.5F)[b].setBlockName("Green Crystal 2")[/b]; .setBlockName("NAME") no longer works, what do I use now? In my "MyBlock" class: protected BlockCrystal(int par1, int par2, Material par3Material) { super(par1, par3Material); this[b].blockIndexInTexture[/b] = par2; this.setTickRandomly(true); float var4 = 0.2F; this.setBlockBounds(0.5F - var4, 0.0F, 0.5F - var4, 0.5F + var4, var4 * 3.0F, 0.5F + var4); this.setCreativeTab(CrystalCraft.CrystalCraftTab); } If I get rid of the line, and the "int par2" it gives more errors later in the file.
  2. Moved the folder to another location, everything seems fine now. I think the folder permissions were fucked up or so.. Thanks anyway
  3. Say what? I'm new to modding...
  4. I don't know where you got minecraft inside of eclipse...? Anyway, I exported the mod, and put it in my MC jar. I put the textures in "items" and the armour textures in "armor". I still didn't get the right texture, so I'm guessing I goof'd up with the name of the NameOfArmour_1 and _2 png files? It's suppost to be the same as in the EnumArmorMaterial.java right?
  5. I have it in: Eclipse > Items Eclipse > Client > Items Eclipse > Client > Bin > Items Eclipse > Server > Items Eclipse > Server > Bin > Items Jars > Bin > Minecraft.jar > armour
  6. So I'm trying to m make this mod, and about halfway I'm implementing armour, It all goes well, until I try to put my armour on. When I equip the armour, it's not shown on my character, and my Eclipse Console gets spammed with the following error: http://pastebin.com/wnR7Pqdt I put the images (armour_1.png & armour_2.png) in: jars > bin > minecraft.jar > armor My Code: http://pastebin.com/Vg9LrSxk Item_IngotShinyGold.java: http://pastebin.com/WAT1Gk0j
  7. What have no idea what the ... 5 is, I just started modding, and copied the code from a tutorial. I just wrote the code (which I gave in my post above), and added TITANIUM to the EnumArmourMaterial.java... Then I put the textures for the armour in: mcp > eclipse > client > items mcp > eclipse > client > bin > items mcp > eclipse > server > items And the titanium_1 and titanium_2 in: mcp > temp > bin > minecraft > armour EnumArmourMaterial.java : CLOTH(5, new int[]{1, 3, 2, 1}, 15), CHAIN(15, new int[]{2, 5, 4, 1}, 12), IRON(15, new int[]{2, 6, 5, 2}, 9), GOLD(7, new int[]{2, 5, 3, 1}, 25), DIAMOND(33, new int[]{3, 8, 6, 3}, 10), TITANIUM(15, new int[]{2, 6, 5, 2}, 10);
  8. I have looked at the 0-3, and found that I did indeed make a mistake there, but it didn't fix the problem; public static final Item Chestplate_Titanium = (new ItemArmor(2107, EnumArmorMaterial.Titanium ,5,1 ).setItemName("Titanium Chestplate")); public static final Item Leggings_Titanium = (new ItemArmor(2108, EnumArmorMaterial.Titanium ,5,2 ).setItemName("Titanium Leggings")); public static final Item Helmet_Titanium = (new ItemArmor(2109, EnumArmorMaterial.Titanium ,5,0 ).setItemName("Titanium Helmet")); public static final Item Boots_Titanium = (new ItemArmor(2110, EnumArmorMaterial.Titanium ,5,3 ).setItemName("Titanium Boots")); // Titanium Chestplate Chestplate_Titanium.iconIndex = ModLoader.addOverride("/gui/items.png", "/items/ItemChestplate_Titanium.png"); ModLoader.addName(Chestplate_Titanium, "Titanium Chestplate"); ModLoader.addRecipe(new ItemStack(Chestplate_Titanium,1), new Object[]{ "* *", "***", "***", Character.valueOf('*'), Ingot_Titanium}); // Titanium Leggings Leggings_Titanium.iconIndex = ModLoader.addOverride("/gui/items.png", "/items/ItemLeggings_Titanium.png"); ModLoader.addName(Leggings_Titanium, "Titanium Leggings"); ModLoader.addRecipe(new ItemStack(Leggings_Titanium,2), new Object[]{ "***", "* *", "* *", Character.valueOf('*'), Ingot_Titanium}); // Titanium Helmet Helmet_Titanium.iconIndex = ModLoader.addOverride("/gui/items.png", "/items/ItemHelmet_Titanium.png"); ModLoader.addName(Helmet_Titanium, "Titanium Helmet"); ModLoader.addRecipe(new ItemStack(Helmet_Titanium,0), new Object[]{ "***", "* *", " ", Character.valueOf('*'), Ingot_Titanium}); // Titanium Boots Boots_Titanium.iconIndex = ModLoader.addOverride("/gui/items.png", "/items/ItemBoots_Titanium.png"); ModLoader.addName(Boots_Titanium, "Titanium Boots"); ModLoader.addRecipe(new ItemStack(Boots_Titanium,3), new Object[]{ " ", "* *", "* *", Character.valueOf('*'), Ingot_Titanium});
  9. I know this is the McForge forum, but nobody responds on the Mc Forums, and I really need help! Sorry I am at a point in my mod, where I include armour. I put in the code, and texture (of the armour itself), and ran it. It (howsoever) doesn't show the texture of me wearing my armour (in my inventory). Then, if I look in the console of Eclipse, I get this error: java.lang.ArrayIndexOutOfBoundsException: 5 at net.minecraft.src.RenderPlayer.setArmorModel(RenderPlayer.java:35) at net.minecraft.src.RenderPlayer.shouldRenderPass(RenderPlayer.java:498) at net.minecraft.src.RenderLiving.doRenderLiving(RenderLiving.java:113) at net.minecraft.src.RenderPlayer.renderPlayer(RenderPlayer.java:140) at net.minecraft.src.RenderPlayer.doRender(RenderPlayer.java:532) at net.minecraft.src.RenderManager.renderEntityWithPosYaw(RenderManager.java:218) at net.minecraft.src.GuiInventory.func_74223_a(GuiInventory.java:106) at net.minecraft.src.GuiInventory.drawGuiContainerBackgroundLayer(GuiInventory.java:83) at net.minecraft.src.GuiContainer.drawScreen(GuiContainer.java:66) at net.minecraft.src.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:35) at net.minecraft.src.GuiInventory.drawScreen(GuiInventory.java:67) at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:970) at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:20) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:872) at net.minecraft.client.Minecraft.run(Minecraft.java:768) at java.lang.Thread.run(Thread.java:680) How do I fix this? I'm guessing I have to put the texture of the person wearing it somewhere, but I don't know where... Where do I put it?

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.