Posted May 11, 201411 yr Hi, I'm having a problem with my textures they show up in eclipse but not in Minecraft. However, my armor texture does appear while i'm wearing it. Also I was able to make all the item textures appear by making a resource pack, but the block textures still won't work. Here is my block code package net.crystalite.blocks; import java.util.Random; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.crystalite.items.CMItems; import net.crystalite.lib.ModInfo; import net.crystalite.lib.config.Ids; import net.crystalite.lib.config.Names; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; public class CrystaliteOre extends Block { public CrystaliteOre(int id) { super(Material.rock); this.setBlockName(Names.CrystaliteOre_unlocalizedName); this.setCreativeTab(CreativeTabs.tabBlock); this.setHardness(50F); this.setResistance(2000F); this.setStepSound(Block.soundTypeStone); this.setLightLevel(0.5F); this.setBlockTextureName(Names.CrystaliteOre_unlocalizedName); } @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister icon) { this.blockIcon = icon.registerIcon(ModInfo.ID.toLowerCase() + ":" + Names.CrystaliteOre_unlocalizedName); } } And here is my main block class package net.crystalite.blocks; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; import net.crystalite.lib.config.Ids; import net.crystalite.lib.config.Names; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraftforge.common.MinecraftForge; public class CMBlocks { public static Block crystaliteOre; public static Block crystaliteOreStorage; public static Block moltenFurnaceIdle; public static Block moltenFurnaceBurning; public static void init() { //Initializing Blocks crystaliteOre = new CrystaliteOre(Ids.CrystaliteOre_actual).setBlockName(Names.CrystaliteOre_name); crystaliteOreStorage = new CrystaliteOreStorage(Ids.CrystaliteOreStorage_actual, Material.iron).setBlockName(Names.CrystaliteOreStorage_name); moltenFurnaceIdle = new BlockMoltenFurnace(Ids.MoltenFurnaceIdle_actual, false).setHardness(50F).setResistance(2000F).setStepSound(Block.soundTypeStone).setLightLevel(0.0F).setBlockName(Names.MoltenFurnaceIdle_unlocalizedName).setCreativeTab(CreativeTabs.tabDecorations); moltenFurnaceBurning = new BlockMoltenFurnace(Ids.MoltenFurnaceBurning_actual, true).setHardness(50F).setResistance(2000F).setStepSound(Block.soundTypeStone).setLightLevel(0.5F).setBlockName(Names.MoltenFurnaceBurning_unlocalizedName); //Register Blocks GameRegistry.registerBlock(crystaliteOre, Names.CrystaliteOre_name); GameRegistry.registerBlock(crystaliteOreStorage, Names.CrystaliteOreStorage_name); GameRegistry.registerBlock(moltenFurnaceIdle, Names.MoltenFurnaceIdle_name); GameRegistry.registerBlock(moltenFurnaceBurning, Names.MoltenFurnaceBurning_name); } } Also when I run it in eclipse I get this message [15:44:19] [sound Library Loader/INFO]: Sound engine started [15:44:20] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [15:44:21] [Client thread/INFO]: Created: 256x256 textures/items-atlas [15:44:21] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [15:44:21] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Crystalite Mod [15:44:21] [Client thread/INFO]: Created: 256x256 textures/items-atlas [15:44:21] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MoltenFurnaceIdle.png java.io.FileNotFoundException: minecraft:textures/blocks/MoltenFurnaceIdle.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:626) [Minecraft.class:?] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:585) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_55] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_55] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [15:44:21] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas I really need help I've tried everything I can think of. please help.
May 11, 201411 yr You aren't telling it the right path. You need your mod ID, then a colon before the path and file name. Without that, it's defaulting to minecraft:.
May 12, 201411 yr Author I tried changing it to this this.blockIcon = icon.registerIcon(ModInfo.ID.toLowerCase() + ":textures/blocks/" + Names.CrystaliteOre_unlocalizedName); and to this this.blockIcon = icon.registerIcon("cm:textures/blocks/CrystaliteOre"); but it still won't work outside of eclipse.
May 12, 201411 yr You need to do something like this: this.blockIcon = iIconRegister.registerIcon("MOD_ID:TEXTURE"); If you're defining the block texture, you don't have to add "textures/blocks" to the path. Same for items. if (user.hasKnowledgeOfJava) { if (user.question.hasCode) { return interpetHelpfulResponse(user.getQuestion()); } else { return "Could you post your code please?"; } } else { return "Learn some freaking Java!"; }
May 12, 201411 yr Author That is how I had it originally. I had this. @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister icon) { this.blockIcon = icon.registerIcon(ModInfo.ID.toLowerCase() + ":" + Names.CrystaliteOre_unlocalizedName); } ModInfo.ID.toLowerCase() = cm Names.CrystaliteOre_unlocalizedName = CrystaliteOre Therefore, I'm really saying this.blockIcon = icon.registerIcon("cm:CrystaliteOre"); so can anyone tell me why it won't work outside eclipse? I'm keeping my textures here Modding Stuff\ModMaker 1.7.2\src\main\assets\cm\textures\blocks Outside of eclipse I just put assets in my mod's .jar file
May 12, 201411 yr Is CMBlocks.init(); in the FMLPreInit event ? Also make sure that texture matches the name, it is case sensitive.
May 12, 201411 yr Author Thanks I had it in the FMLInit event. when I changed it it fixed the textures for the items but I'm still having problems with the blocks textures.
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.