Posted April 18, 201411 yr I cannot get textures to work. file structure C:\Developing\Freetime\MC\1.7.2\someCraft\src\main\resources\assets\someCraft\textures\items my modid is someCraft here is my code main class package clarmonk.mc.somecraft; import clarmonk.mc.somecraft.item.somoniomItem; import clarmonk.mc.somecraft.proxy.commonProxy; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; 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 net.minecraft.item.Item; @Mod(modid = info.MOD_ID, name = info.MOD_NAME, version = info.MOD_VERSION) public class someCraft { public static Item reflectorItem; public static Item somoniomIngot; @Instance(value = info.MOD_ID) public static someCraft Instance; @SidedProxy(clientSide = "clarmonk.mc.somecraft.proxy.clientProxy", serverSide = "clarmonk.mc.somecraft.proxy.commonProxy") public static commonProxy proxy; @Mod.EventHandler public void preInit(FMLPreInitializationEvent event) { somoniomIngot = new somoniomItem().setMaxStackSize(64).setCreativeTab(CreativeTabs.tabMaterials).setUnlocalizedName("somoniom_Ingot").setTextureName("someCraft:somoniom_Ingot"); reflectorItem = new somoniomItem().setMaxStackSize(16).setCreativeTab(CreativeTabs.tabMisc).setUnlocalizedName("reflector_Item").setTextureName("someCraft:reflector"); GameRegistry.registerItem(reflectorItem, reflectorItem.getUnlocalizedName()); GameRegistry.registerItem(somoniomIngot, somoniomIngot.getUnlocalizedName()); } @Mod.EventHandler public void Init(FMLInitializationEvent event) { } @Mod.EventHandler public void postInit(FMLPostInitializationEvent event) { } } info class package clarmonk.mc.somecraft; public class info { public static final String MOD_ID = "someCraft"; public static final String MOD_NAME = "SomeCraft"; public static final String MOD_VERSION = "1.0.A"; } item class package clarmonk.mc.somecraft.item; import net.minecraft.item.Item; public class somoniomIngot extends Item { } and my main item class package clarmonk.mc.somecraft.item; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; public class somoniomItem extends Item { public somoniomItem() { setMaxStackSize(64); setCreativeTab(CreativeTabs.tabMisc); } } I am using method chaining to declare stack size and texture name and such thank you for helping me --ClarmonkGaming
April 18, 201411 yr Use a lowercase file path and it should work. PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.
April 18, 201411 yr Hi What are the symptoms of the problem (Error messages, screenshots?) Assuming it's "missing texture, unable to load" - if you search this forum for "using missing texture" you'll find a heap of people with this problem. Generally boils down to * texture name not set properly, or * textures stored in the wrong folder, or * the upper/lower case don't match exactly. This link might also help: http://www.minecraftforge.net/forum/index.php/topic,11963.0.html -TGG
April 19, 201411 yr Yeah, MODID must be lower case to find the resources. The folder name ...\somecraft\... and the name in the source code have to be the same, too. You cannot change one without the other being the exact same spelling. -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
April 19, 201411 yr Author so i changed teh modidd to somecraft and teh folder structure thing to somecraft and it is still not working
April 19, 201411 yr so i changed teh modidd to somecraft and teh folder structure thing to somecraft and it is still not working Without seeing your code now, I can only guess that setTextureName() still says "someCraft:". -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
April 19, 201411 yr Author That was the problem thank you :);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):) thanks for helping me how do I change the title of this thread to solved
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.