Posted April 28, 201411 yr So, I am starting to create a practice mod before starting on the real one and I can't for the life of me figure out what to do. Any help would be appreciated. Here's my code so far. BlockLiveOre.java package com.omar.tutorial; import com.omar.tutorial.help.Reference; import net.minecraft.block.*; import net.minecraft.block.material.Material; import net.minecraft.creativetab.*; public class BlockLiveOre extends Block { public BlockLiveOre() { super (Material.rock); setBlockName("liveOre"); setTextureName(assets:"liveOre"); setBlockTextureName(Reference.MODID +";" + getUnlocalizedName().substring(5)); setCreativeTab(CreativeTabs.tabBlock); } } Tutorial.java package com.omar.tutorial; import net.minecraft.block.Block; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.*; import com.omar.tutorial.help.*; @Mod(modid = Reference.MODID, version = Reference.VERSION) public class Tutorial { public static Block liveOre; @EventHandler public void preInit(FMLPreInitializationEvent event) { liveOre = new BlockLiveOre(); RegisterHelper.registerBlock(liveOre); } } Reference.java package com.omar.tutorial.help; public class Reference { public static final String MODID = "omar_tutorialmod"; public static final String VERSION = "1.0"; } RegisterHelper.java package com.omar.tutorial.help; import cpw.mods.fml.common.registry.GameRegistry; import net.minecraft.block.Block; public class RegisterHelper { public static void registerBlock (Block block) { GameRegistry.registerBlock(block, Reference.MODID + "_" + block.getUnlocalizedName().substring(5)); } } en_US.lang tile.liveOre.name=Live Ore The texture I'm using is a 16x16 png file. The name and the texture of the block are not showing in minecraft. Any help is appreciated.
April 28, 201411 yr Can we see the log when Forge (Minecraft) runs? Then we can see what error springs up when it tries to load your texture.
April 28, 201411 yr Author Everything from the console [19:15:58] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [19:15:58] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [19:15:58] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [19:15:58] [main/INFO] [FML]: Forge Mod Loader version 7.2.156.1060 for Minecraft 1.7.2 loading [19:15:58] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.8.0_05, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jdk1.8.0_05\jre [19:15:58] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [19:15:58] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [19:15:58] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [19:15:58] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [19:15:58] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [19:15:58] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [19:15:58] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [19:15:59] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/Omar/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again! [19:15:59] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! [19:15:59] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Omar/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it [19:15:59] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [19:15:59] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [19:15:59] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [19:15:59] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [19:15:59] [main/INFO]: Setting user: Player566 [19:16:00] [Client thread/INFO]: LWJGL Version: 2.9.0 [19:16:00] [Client thread/ERROR]: Couldn't set icon javax.imageio.IIOException: Can't read input file! at javax.imageio.ImageIO.read(ImageIO.java:1301) ~[?:1.8.0_05] at net.minecraft.client.Minecraft.readImage(Minecraft.java:639) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:468) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_05] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_05] at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_05] 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:?] [19:16:00] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [19:16:00] [Client thread/INFO] [FML]: MinecraftForge v10.12.1.1060 Initialized [19:16:00] [Client thread/INFO] [FML]: Replaced 141 ore recipies [19:16:00] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [19:16:00] [Client thread/INFO] [FML]: Searching C:\Users\Omar\Desktop\Modding Setup\Forge\mods for mods [19:16:01] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW! [19:16:02] [Client thread/INFO] [omar_tutorialmod]: Mod omar_tutorialmod is missing the required element 'name'. Substituting omar_tutorialmod [19:16:02] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [19:16:02] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:omar_tutorialmod [19:16:02] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [19:16:02] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/omar_tutorialmod;liveOre.png.png java.io.FileNotFoundException: minecraft:textures/blocks/omar_tutorialmod;liveOre.png.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.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:579) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_05] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_05] at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_05] 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:?] [19:16:02] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas OpenAL initialized. [19:16:03] [sound Library Loader/INFO]: Sound engine started [19:16:03] [Client thread/INFO]: Created: 256x256 textures/items-atlas DIRT BLOCK >> tile.dirt [19:16:03] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods [19:16:03] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:omar_tutorialmod [19:16:03] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/omar_tutorialmod;liveOre.png.png java.io.FileNotFoundException: minecraft:textures/blocks/omar_tutorialmod;liveOre.png.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:624) [Minecraft.class:?] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:283) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:583) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_05] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_05] at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_05] 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:?] [19:16:03] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [19:16:03] [Client thread/INFO]: Created: 256x256 textures/items-atlas SoundSystem shutting down... Author: Paul Lamb, www.paulscode.com Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) OpenAL initialized. [19:16:04] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms [19:16:04] [sound Library Loader/INFO]: Sound engine started [19:16:05] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press [19:16:05] [Client thread/INFO]: Stopping! SoundSystem shutting down... Author: Paul Lamb, www.paulscode.com Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release Minecraft runs perfectly fine but the block has the pink and black texture and is called "tile.liveOre.png.name"
April 29, 201411 yr Hi The clue is here... [19:16:02] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/omar_tutorialmod;liveOre.png.png java.io.FileNotFoundException: minecraft:textures/blocks/omar_tutorialmod;liveOre.png.png That filename looks pretty mangled up :-) -TGG
April 29, 201411 yr Author I got it fixed by renaming the file and changing the omar_tutorialmod folder name to minecraft. Hopefully having the folder called minecraft does not screw everything up
April 29, 201411 yr Author [19:16:02] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/omar_tutorialmod;liveOre.png.png java.io.FileNotFoundException: minecraft:textures/blocks/omar_tutorialmod;liveOre.png.png It's saying that it is looking for the minecraft folder. Is there anyway to make it look in the omar_tutorialmod folder? Because I followed Wuppy's tutorial step by step and the texture is not working
April 29, 201411 yr I got it fixed by renaming the file and changing the omar_tutorialmod folder name to minecraft. Hopefully having the folder called minecraft does not screw everything up No, just no. Since I'm nice, this is the proper way to do it: In your block class: setBlockTextureName("myAssetsFolder:myTexture"); where myAssetsFolder is the name of your folder within the assets folder (which you renamed to minecraft) and myTexture is the name of the texture file (w/o extension) within myAssetsFolder/textures/blocks/ Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
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.