Dispenser Posted February 25, 2015 Share Posted February 25, 2015 Yep. This is exactly what you would expect. My textures are not showing up. Mod file thing: package com.zeugs.mod; import com.zeugs.mod.items.NCItems; import net.minecraft.item.Item; import net.minecraft.item.ItemFood; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import net.minecraft.creativetab.CreativeTabs; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @Mod(modid = Zeugs.MODID, version = Zeugs.VERSION) public class Zeugs { public static final String MODID = "Zeugs"; public static final String VERSION = "Deux"; //Items public static Item itemObsidianBrick; //Foodz public static Item foodFlonkGem; public static Item foodDonut; public static Item foodGoodDonut; public static Item foodChocDonut; public static Item foodRawBacon; public static Item foodBacon; @EventHandler public void PreInit(FMLPreInitializationEvent preEvent) { //Items itemObsidianBrick = new NCItems().setUnlocalizedName("ObsidianBrick"); GameRegistry.registerItem(itemObsidianBrick, "ObsidianBrick"); //Foodz foodDonut = new ItemFood(10, 1.2F, false).setUnlocalizedName("Donut"); GameRegistry.registerItem(foodDonut, "Donut"); foodGoodDonut = new ItemFood(15, 1.8F, true).setUnlocalizedName("GoodDonut"); GameRegistry.registerItem(foodGoodDonut, "GoodDonut"); foodChocDonut = new ItemFood(12, 0.8F, false).setUnlocalizedName("ChocDonut"); GameRegistry.registerItem(foodChocDonut, "ChocDonut"); foodRawBacon = new ItemFood(2, 0.2F, true).setUnlocalizedName("RawBacon"); GameRegistry.registerItem(foodRawBacon, "RawBacon"); foodBacon = new ItemFood(6, 1.0F, true).setUnlocalizedName("Bacon"); GameRegistry.registerItem(foodBacon, "Bacon"); } @EventHandler public void init(FMLInitializationEvent event) { } @EventHandler public void PostInit(FMLPostInitializationEvent postEvent) { } } NCItems: package com.zeugs.mod.items; import com.zeugs.mod.Zeugs; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.Item; public class NCItems extends Item{ public NCItems() { this.setCreativeTab(getCreativeTab().tabMaterials); } @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister iconRegister) { this.itemIcon = iconRegister.registerIcon(Zeugs.MODID + ":" + this.getUnlocalizedName().substring(5)); } } path: I am too stupid to fix this problem myself. Thanks for the help. Quote Link to comment Share on other sites More sharing options...
Dispenser Posted February 25, 2015 Author Share Posted February 25, 2015 ModID must be all lowercase. Yeah, that didn't fix it. Still thanks. Quote Link to comment Share on other sites More sharing options...
Dispenser Posted February 26, 2015 Author Share Posted February 26, 2015 What's your IDE? Also show the contents of the Items folder, inside your IDE, not in the explorer (finder, or whatever it's called on mac). This is what is in the items folder: It's called finder on mac. What does IDE stand for? Quote Link to comment Share on other sites More sharing options...
Elix_x Posted February 26, 2015 Share Posted February 26, 2015 Cough cough. Textures are inside assets/modid/textures/items, assets/modid/textures/blocks, assets/modid/textures/entity... And not assets/modid/items ... Quote Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones Link to comment Share on other sites More sharing options...
Dispenser Posted February 26, 2015 Author Share Posted February 26, 2015 Cough cough. Textures are inside assets/modid/textures/items, assets/modid/textures/blocks, assets/modid/textures/entity... And not assets/modid/items ... That did not fix it. Still thanks. Quote Link to comment Share on other sites More sharing options...
Elix_x Posted February 26, 2015 Share Posted February 26, 2015 Why do you use IIConRegister if you can use setTextureName in constructor? Quote Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones Link to comment Share on other sites More sharing options...
Dispenser Posted February 26, 2015 Author Share Posted February 26, 2015 IDE = Integrated Development Environment, eclipse is a popular one, or Intellij IDEA. I'm using eclipse. Why do you use IIConRegister if you can use setTextureName in constructor? I don't know. Quote Link to comment Share on other sites More sharing options...
Dispenser Posted February 26, 2015 Author Share Posted February 26, 2015 Show the textures inside eclipse then, you should be able to see them. yup: Quote Link to comment Share on other sites More sharing options...
Dispenser Posted February 26, 2015 Author Share Posted February 26, 2015 ModID must be all lowercase. ... Oh yeah. Thanks! Quote Link to comment Share on other sites More sharing options...
yesiwearpants Posted February 27, 2015 Share Posted February 27, 2015 if its still not working for you try this https://github.com/yesimwearingpants/Template Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.