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.

3dsanity

Members
  • Joined

  • Last visited

  1. yea, thats true. I change it's name; and that is how I have the folders setup. I get the error during runtime : "TextureManager.createTexture called for file textures/items/SteelPickaxe.png, but that file does not exist. Ignoring." but I know I have the image there : mcp\src\minecraft\mods\modName\textures\items\SteelPickaxe.png
  2. Ok, thanks, although the error is gone, it is still unable to load the images. pretty sure i have the file structure right
  3. Are you referring to itemIcon? I change that a few times, maybe missing or change more then needed.
  4. So I am working on just implementing simple item like a pickaxe. When applying a texture to the object, it appears as if the iconIndex is missing. Below is the code. I'm guessing its probably something extremely simple, and I just need a second pair of eyes. Any help/suggestions is appreciated. Thanks. package mods.resources.common; import mods.resources.tool.ItemSteelPickaxe; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.common.EnumHelper; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid = "resources", name = "resources",version = "1.0") public class resources { //public static Item ingotSteel; public static Item SteelPickaxe; public static Item SteelShovel; public static Item SteelSword; public static Item SteelAxe; public static Item SteelHoe; public static EnumToolMaterial materialSteel = EnumHelper.addToolMaterial("STEEL", 2, 250, 8.0F, 2, 6); public resources (){ SteelPickaxe = new ItemSteelPickaxe(1001,materialSteel).setUnlocalizedName("SteelPickaxe").setCreativeTab(CreativeTabs.tabTools); LanguageRegistry.addName(SteelPickaxe,"Steel Pickaxe"); } } and also package mods.resources.tool; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.ItemPickaxe; public class ItemSteelPickaxe extends ItemPickaxe { public ItemSteelPickaxe(int par1, EnumToolMaterial par2EnumToolMaterial) { super(par1, par2EnumToolMaterial); } public void updateIcons(IconRegister iconRegister) { iconIndex = iconRegister.registerIcon("resources:SteelPickaxe"); } } I am getting the error "iconIndex could not be resolved to a variable". I looked over plenty of how to's and I think I understand for the most part the major change with the update. If there is anything you want me to provide please let me know. Images are located inside : src\minecraft\mods\resources\textures\items Thanks again for the help!

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.