so id like to begin by saying im a complete noob at coding in java, so the most literal explanation would be the most helpful thing for me. here's the link to the youtube series im watching to help me make a basic item
here's my entire item class:
package com.larson377.OddBlocks.Items;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
public class CopperCoin extends Item {
public CopperCoin(int i) {
this.setUnlocalizedName("Copper Coin");
this.setTextureName("OddBlocks:123");
this.setCreativeTab(CreativeTabs.tabMisc);
}
}
and here's my main java class:
package com.larson377.OddBlocks;
import net.minecraft.item.Item;
import com.larson377.OddBlocks.Items.CopperCoin;
import com.larson377.OddBlocks.lib.ProxyCommon;
import com.larson377.OddBlocks.lib.References;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
@Mod(modid = References.MODID, version = References.VERSION)
public class OddBlocks
{
@SidedProxy(clientSide = References.Client, serverSide = References.Common)
public static ProxyCommon proxy;
//Items
public static Item CopperCoin = new CopperCoin(4999);
@EventHandler
public void init(FMLInitializationEvent event)
{
}
@EventHandler
public void load(FMLInitializationEvent event)
{
proxy.registerRenderInformation();
}
public OddBlocks () {
//Item Registry
GameRegistry.registerItem(CopperCoin, "Copper Coin");
LanguageRegistry.addName(CopperCoin, "Copper Coin");
}
}
my end goal here is to get the darn coin textured. 123 is the basic name i gave my png file, its 16x16 pixels.