1

Creating A Mod Item Textures Wont Load Please Help

VaporKnight13's Avatar VaporKnight136/28/14 8:18 pm
1 emeralds 194 2
6/28/2014 9:45 pm
VaporKnight13's Avatar VaporKnight13
so im working on a mod im very good with java at an advanced level im slowly learning the syntax and whatnot to code minecraft mods im currently working on a basic item however i cant seem to get the textures to load on minecraft please someone reply with an answer here's my code so far (please dont say that its cause i have a capital in the package name cause i have already tried the exact same thing without the capital and the issue still occured)

package net.mcMercy.mod;

import net.mcMercy.mod.items.NCItems;
import assets.mcMercy.textures.items.*;
import net.minecraft.item.Item;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;

@Mod(modid = Mercy_Mod.modid, version = Mercy_Mod.version)
public class Mercy_Mod {

public static final String modid = "Mercy_Mod";
public static final String version = "Alpha V0.1";

public static Item itemtest;

@EventHandler
public void PreInit(FMLPreInitializationEvent preEvent)
{
itemtest = new NCItems().setUnlocalizedName("gold_helmet.png");
GameRegistry.registerItem(itemtest, "gold_helmet.png");
}

@EventHandler
public void Init(FMLInitializationEvent event)
{}

@EventHandler
public void PostInit(FMLPostInitializationEvent postEvent)
{}
}


package net.mcMercy.mod.items;

import net.mcMercy.mod.Mercy_Mod;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.Item;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;


public class NCItems extends Item{

public NCItems()
{
this.setCreativeTab(getCreativeTab().tabMaterials);
}

@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister iconRegister)
{this.itemIcon = iconRegister.registerIcon(Mercy_Mod.modid + ":" + this.getUnlocalizedName());
}
}
Posted by VaporKnight13's Avatar
VaporKnight13
Level 1 : New Crafter
0

Create an account or sign in to comment.

2

1
06/28/2014 9:45 pm
Level 1 : New Crafter
VaporKnight13
VaporKnight13's Avatar
4230:shock: I wish I could help you out. I'm really trying to learn java so I can mod but it's just so hard for me...


i can help you learn java if you want ?
1
06/28/2014 8:23 pm
Level 3 : Apprentice Network
4230
4230's Avatar
I wish I could help you out. I'm really trying to learn java so I can mod but it's just so hard for me...
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome