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.

Kalbintion

Members
  • Joined

  • Last visited

  1. I cannot assist too much but had found this code on Tutorials/Metadata Based Subblocks where it dealt with metadata shapeless recipes. It appears you will need to do it for each sub-type according to that page and the example presented. Here's what the page showed for a multi-block (block with metadata) GameRegistry.registerBlock(multiBlock, MultiItemBlock.class); for (int ix = 0; ix < 16; ix++) { ItemStack cloth = new ItemStack(Block.cloth, 1, ix); ItemStack multiBlockStack = new ItemStack(multiBlock, 1, ix); GameRegistry.addShapelessRecipe(multiBlockStack, cloth, cloth); LanguageRegistry.addName(multiBlockStack, multiBlockNames[multiBlockStack.getItemDamage()]); }
  2. Well, upon doing what was said and some other directory locations (found by searching the forge folder for a "mods" folder) and attempting those locations (see below) I am still receiving a missing textures texture but I have found a warning in the console output saying the file cannot be found and what it was looking for. Following that, I made sure the folder names were properly named according to what it said it couldnt find, and it failed again. So i tried other directories, each time it failing. Just to mention, I am using forge 608 at this time. 2013-03-25 12:08:33 [WARNING] [Minecraft-Client] TextureManager.createTexture called for file mods/ModName/textures/items/ItemName.png, but that file does not exist. Ignoring. Current Item Example package mod.ModName; import cpw.mods.fml.common.registry.LanguageRegistry; import cpw.mods.fml.relauncher.*; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.Icon; public class ItemName extends Item { public ItemName(int id) { super(id); this.setMaxStackSize(1); this.setCreativeTab(CreativeTabs.tabMisc); this.setUnlocalizedName("ModNameItemName"); LanguageRegistry.addName(this, "ItemName"); } @SideOnly(Side.CLIENT) @Override public void updateIcons(IconRegister par1IconRegister) { this.iconIndex = par1IconRegister.registerIcon("ModName:ItemName"); } } Locations I've Tried putting the folder scheme (\ModName\textures\items\ItemName.png) into (all with failure) \forge\fml\bin\mods \forge\fml\client\mods \forge\fml\common\mods \forge\mcp\bin\minecraft\mods \forge\mcp\eclipse\Minecraft\bin\mods \forge\mcp\mods \forge\mcp\src\minecraft\mods \forge\mcp\temp\bin\minecraft\mods \forge\mcp\temp\cls\minecraft\mods \forge\mcp\temp\src\minecraft\mods
  3. I am wondering where (for testing purposes at this moment) the block/item texture/icon location is. Right now I have the custom item images located at "\forge\mcp\jars\mods\%modname%\textures\items\%itemname%.png" and blocks in the same location but "..\blocks\%blockname%.png" but neither are loading and am receiving a "Missing Texture" texture in-game when ran from Eclipse IDE. A generic example Item class I have. package mod.ModName; import cpw.mods.fml.common.registry.LanguageRegistry; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.Icon; public class ItemName extends Item { public ItemName(int id) { super(id); this.setMaxStackSize(1); this.setCreativeTab(CreativeTabs.tabMisc); this.setUnlocalizedName("ModNameItemName"); LanguageRegistry.addName(this, "ItemName"); } public void updateIcons(IconRegister par1IconRegister) { this.iconIndex = par1IconRegister.registerIcon("ModName:ItemName"); } } With that, I would expect the icon file to be located at "\forge\mcp\jars\mods\ModName\textures\items\ItemName.png" I have followed the basic tutorials on the wiki, and have searched the forums for 1.5+ related questions, what I have found has led me to this point. The wiki tutorial on textures is outdated and was the original stopping point for me since it wasn't working then.

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.