Minecraft modding 1.7.10 setTextureName not working
No replies
ivtex
WoM Member
Members
WoM Member: 670185
WoM Coins: 6


I am making a new mod and my block textures work fine
but my item textures dont i need assistance on this because i just started to code java This Is My Script:

package com.HaydenMod.item;

import com.HaydenMod.lib.RefStrings;

import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;

public class DiamondShard {

public static void MainRegistery(){
intializeItem();
registerItem();
}

public static Item Dshard;

public static void intializeItem(){
Dshard = new Item().setUnlocalizedName("Dshard").setCreativeTab(CreativeTabs.tabMaterials).setTextureName(RefStrings.MODID + ":Diamond_Shard").setMaxStackSize(16);

}

public static void registerItem(){
GameRegistry.registerItem(Dshard, Dshard.getUnlocalizedName());
}
}