Item Icons. It's a simple error. I typed in my file for the Item Icons. I then put them in the right folder. Then when it launches, it says it can't load them and it refers the file to "MISSINGICON_(ID)_FILENAME.PNG"
Rollback Post to RevisionRollBack
"A delayed game is eventually good, but a rushed game is forever bad."
~Shigeru Miyamoto
Item Icons. It's a simple error. I typed in my file for the Item Icons. I then put them in the right folder. Then when it launches, it says it can't load them and it refers the file to "MISSINGICON_(ID)_FILENAME.PNG"
Perhaps showing your codes is the best way to let us find a solution to your problem?
I got This on ep 2
Exception in thread "main" java.lang.NoClassDefFoundError: Start Minecraft
Caused by: java.lang.ClassNotFoundException: Start Minecraft
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
I have all the correct stuff, it's just that it refuses to load the icon for some reason. However, my textures load perfectly. I have the correct location for my icons aswell. I just said "Derp_Helmet" as my file which is the name of the file. Do I require any paths of some sortIt's now saying the minecraft files have 21 errors? What is going on?
Rollback Post to RevisionRollBack
"A delayed game is eventually good, but a rushed game is forever bad."
~Shigeru Miyamoto
public ExJModItems(int par1) {
super(par1); //Returns super constructor: par1 is ID
setCreativeTab(CreativeTabs.tabMaterials); }//Tells the game what creative mode tab it goes in
public void registerIcons(IconRegister reg) { // Make sure to import IconRegister!
if (itemID == ExJMod.Oingot.itemID) {
this.itemIcon = reg.registerIcon("ExJMod:oingot"); // You can also replace blockID and blockIcon with itemID and itemIcon
}
public ExJModItems(int par1) {
super(par1); //Returns super constructor: par1 is ID
setCreativeTab(CreativeTabs.tabMaterials); }//Tells the game what creative mode tab it goes in
public void registerIcons(IconRegister reg) { // Make sure to import IconRegister!
if (itemID == ExJMod.Oingot.itemID) {
this.itemIcon = reg.registerIcon("ExJMod:oingot"); // You can also replace blockID and blockIcon with itemID and itemIcon
}
public ExJModItems(int par1) {
super(par1); //Returns super constructor: par1 is ID
setCreativeTab(CreativeTabs.tabMaterials); }//Tells the game what creative mode tab it goes in
public void registerIcons(IconRegister reg) { // Make sure to import IconRegister!
if (itemID == ExJMod.Oingot.itemID) {
this.itemIcon = reg.registerIcon("oingot"); // You can also replace blockID and blockIcon with itemID and itemIcon
}
public ExJModItems(int par1) {
super(par1); //Returns super constructor: par1 is ID
setCreativeTab(CreativeTabs.tabMaterials); }//Tells the game what creative mode tab it goes in
public void registerIcons(IconRegister reg) { // Make sure to import IconRegister!
if (itemID == ExJMod.Oingot.itemID) {
this.itemIcon = reg.registerIcon("oingot"); // You can also replace blockID and blockIcon with itemID and itemIcon
}
}
}
The .png is named oingot
What the hell am I doing wrong?
I see no mistakes on your code.
Can you show me the main class file?
oh ok i think i see your problem, try changing the "setUnlocalizedName" to "oingot" not "Oingot" get rid of tyhe capitol
Still not working :/
14 14:19:09 [SEVERE] [Minecraft-Client] Unable to parse animation metadata from minecraft:textures/items/oingot.png: broken aspect ratio and not an animation
For my armor, here is the debug error. My icons are in the right place. 2013-12-14 15:46:52 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well
2013-12-14 15:46:52 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well
2013-12-14 15:46:52 [WARNING] [Pokearmor] Mod Pokearmor is missing a pack.mcmeta file, things may not work well
~Shigeru Miyamoto
Perhaps showing your codes is the best way to let us find a solution to your problem?
~Shigeru Miyamoto
Incorrect by showing error icons (red 'x'), or showing warning icons? (yellow exclamation mark)
Did you install the correct eclipse edition, or the correct mcp version according to the minecraft version?
Exception in thread "main" java.lang.NoClassDefFoundError: Start Minecraft
Caused by: java.lang.ClassNotFoundException: Start Minecraft
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
I could probaly do a quick episode that hows how to make glass
~Shigeru Miyamoto
import net.minecraft.item.Item;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.*;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class ExJModItems extends Item {
public ExJModItems(int par1) {
super(par1); //Returns super constructor: par1 is ID
setCreativeTab(CreativeTabs.tabMaterials); }//Tells the game what creative mode tab it goes in
public void registerIcons(IconRegister reg) { // Make sure to import IconRegister!
if (itemID == ExJMod.Oingot.itemID) {
this.itemIcon = reg.registerIcon("ExJMod:oingot"); // You can also replace blockID and blockIcon with itemID and itemIcon
}
}
}
Texture isnt loading for me...
Look at the code:
Instead of "ExjMod:oingot", change it to "oingot" and put the oingot.png to assets/mineraft/textures/items
There are multiple assets in MCP, if you could please explain a specific file folder?
Not In Mcp go to Mcp>forge>Mcp>jars>versions or somethin like that and then put it in the minecraft jar under assets>minecraft>textures>items
Its already in there.... Still doesnt work
Are you sure your .png image is 16x16?
Yup
import net.minecraft.item.Item;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.*;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class ExJModItems extends Item {
public ExJModItems(int par1) {
super(par1); //Returns super constructor: par1 is ID
setCreativeTab(CreativeTabs.tabMaterials); }//Tells the game what creative mode tab it goes in
public void registerIcons(IconRegister reg) { // Make sure to import IconRegister!
if (itemID == ExJMod.Oingot.itemID) {
this.itemIcon = reg.registerIcon("oingot"); // You can also replace blockID and blockIcon with itemID and itemIcon
}
}
}
The .png is named oingot
What the hell am I doing wrong?
I see no mistakes on your code.
Can you show me the main class file?
package ExJModPack;
/*
* Basic importing
*/
import net.minecraft.block.Block;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.EnumHelper;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
/*
* Basic needed forge stuff
*/
@Mod(modid="ExJMod",name="ExJMod",version="v1")
@NetworkMod(clientSideRequired=true,serverSideRequired=false)
public class ExJMod {
/*
* ToolMaterial
*/
//Telling forge that we are creating these
//items
public static Item Oingot;
//tools
//Declaring Init
@Init
public void load(FMLInitializationEvent event){
// define items
Oingot = new ExJModItems(2000).setUnlocalizedName("Oingot");
// define blocks
//adding names
//items
LanguageRegistry.addName(Oingot, "Obsidian Ingot");
//blocks
//crafting
}
}
oh ok i think i see your problem, try changing the "setUnlocalizedName" to "oingot" not "Oingot" get rid of tyhe capitol
Still not working :/
14 14:19:09 [SEVERE] [Minecraft-Client] Unable to parse animation metadata from minecraft:textures/items/oingot.png: broken aspect ratio and not an animation
2013-12-14 15:46:52 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well
2013-12-14 15:46:52 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well
2013-12-14 15:46:52 [WARNING] [Pokearmor] Mod Pokearmor is missing a pack.mcmeta file, things may not work well
2013-12-14 15:46:52 [INFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Pokearmor
2013-12-14 15:46:52 [SEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/items/MISSING_ICON_ITEM_2316_derp_leggings.png
2013-12-14 15:46:52 [SEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/items/MISSING_ICON_ITEM_2317_derp_chestplate.png
2013-12-14 15:46:52 [SEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/items/MISSING_ICON_ITEM_2318_derp_helmet.png
2013-12-14 15:46:52 [SEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/items/MISSING_ICON_ITEM_2319_derp_boots.png
~Shigeru Miyamoto