Hey, whenever I launch my minecraft with my "mod" it crashes. Idk why. Here is the source, and error.
Error
java.lang.RuntimeException: java.lang.Exception: Image not found: idk/ore.png
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1166)
at net.minecraft.src.ModLoader.OnTick(ModLoader.java:887)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:24)
at net.minecraft.client.Minecraft.run(Minecraft.java:517)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Image not found: idk/ore.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:851)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1158)
... 4 more
Source code
package net.minecraft.src;
public class mod_idk extends BaseMod
{
public mod_idk ()
{
idkOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "idk/ore.png");
ModLoader.AddName(idkOre, "idk ore");
ModLoader.RegisterBlock(idkOre);
}
public String Version ()
{
return "1.8.1";
}
public static final Block idkOre;
static
{
idkOre = (new BlockOre(110, 0)).setHardness(1.5F).setBlockName("ThisIsArandomOre");
}
}
DMG gives you the chance to win a free MC gift code for free, all you gotta to do is a simple survey who takes like 2 mins to do. Join the URL at the top now. You have a chance from like 1-120, and somedays we give out 2-3 codes. This is amazing! You can chat with the staff in the chatbox and just chill while waiting. You won't regret!
Gives you the chance to win a free Minecraft acc for free, just do a survey who takes 5 minutes. Get started now! Be amazed over the service from staff, and how easy it is to win. Check it out!
0
0
Eh, no. :biggrin.gif:
0
0
0
0
Wait, wait. Do I have to put the folder with the pic into minecraft.jar? Or only pic?
0
Error
Source code
Thanks for you're time, Haavard.
0
EDIT: When I recompiled, there was no error. It only crash when I try to run the mod.
0
0
Here is the source code.
0
0
DMG gives you the chance to win a free MC gift code for free, all you gotta to do is a simple survey who takes like 2 mins to do. Join the URL at the top now. You have a chance from like 1-120, and somedays we give out 2-3 codes. This is amazing! You can chat with the staff in the chatbox and just chill while waiting. You won't regret!
www.DailyMinecraftGiveaway.com
0
0
Gives you the chance to win a free Minecraft acc for free, just do a survey who takes 5 minutes. Get started now! Be amazed over the service from staff, and how easy it is to win. Check it out!
www.DailyMinecraftGiveaway.com