Posted July 28, 201411 yr Hello evryone i am new to modding and there is an anoying problem, my texture doesnt load on the item i created can someone please help me My code: package net.SwordCaster.mod; import net.SwordCaster.mod.items.SCItems; import net.minecraft.item.Item; 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; @Mod(modid = SwordCaster.modid, version = SwordCaster.version) public class SwordCaster { public static final String modid = "SwordCaster"; public static final String version = "Alpha v0.0.1"; public static Item itemColidiumIngot; @EventHandler public void PreInit(FMLPreInitializationEvent preEvent){ itemColidiumIngot = new SCItems().setUnlocalizedName("ColidiumIngot"); GameRegistry.registerItem(itemColidiumIngot, "ColidiumIngot"); } @EventHandler public void Init(FMLInitializationEvent event){ } @EventHandler public void PostInit(FMLPostInitializationEvent postEvent){ } } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ package net.SwordCaster.mod.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.SwordCaster.mod.SwordCaster; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.Item; public class SCItems extends Item { public SCItems() { this.setCreativeTab(getCreativeTab().tabMaterials); } @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister iconRegister) { this.itemIcon = iconRegister.registerIcon(SwordCaster.modid + ":" + this.getUnlocalizedName().substring(5)); } }
July 28, 201411 yr Change your modid to all lowercase letters. On another note, inside your @Mod, I would recommend adding name="SwordCaster" . That field can have uppercase letters. If I helped please press the Thank You button. Check out my mods at http://www.curse.com/users/The_Fireplace/projects
July 28, 201411 yr Modid doesnt matter dont listen to him, you need to tell us where is your assets file the location of it. Maybe you putted it to the wrong folder
July 28, 201411 yr Author C:\Users\othmane\Desktop\modding\SwordCaster\src\SwordCaster\assets\SwordCaster\textures\items this is the place of my assets folder and the textures
July 28, 201411 yr C:\Users\othmane\Desktop\modding\SwordCaster\src\SwordCaster\assets\SwordCaster\textures\items this is the place of my assets folder and the textures The folder inside the assets folder also needs to be made lowercase. Modid doesnt matter dont listen to him, you need to tell us where is your assets file the location of it. Maybe you putted it to the wrong folder You obviously have little to no knowledge of what you are talking about. I had this almost exact same(not saying exact same due to LexManos's sarcastic comment last time I did) problem when I first started modding. And on my other post you were asking to see several of my files that weren't related in any way to the issue I was having. If I helped please press the Thank You button. Check out my mods at http://www.curse.com/users/The_Fireplace/projects
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.