- 30
- 0
Код:
package ua.crazy_dayv.new_craft.items;
import com.sun.xml.internal.stream.Entity;
import ua.crazy_dayv.new_craft.Main;
import ua.crazy_dayv.new_craft.ModInfo;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraft.item.ItemStack;
public class coal_boots extends ItemArmor
{
private String texturePath = "new_craft:textures/model/armor/";
public coal_boots(int id, int armorType)
{
super(Items.Coal_Armor_Material, id, armorType);
this.setCreativeTab(Main.new_craft_tab);
this.setMaxStackSize(1);
this.setTextureName();
}
public void setTextureName()
{
this.texturePath += "diamond_layer_"+1+".png";
}
public String getArmorTexture(ItemStack itemstack, Entity entity, int slot, String type)
{
return this.texturePath;
}
}
Но текстуры на броне почему то из железной брони.