When I load minecraft on eclipse, the armor textures show. When I load it on real minecraft, the texture does not show. I am not sure how to fix this and I really want to release my mod soon.
public TopazArmor(ArmorMaterial p_i45325_1_, int p_i45325_2_,
int p_i45325_3_) {
super(p_i45325_1_, p_i45325_2_, p_i45325_3_);
this.setCreativeTab(CreativeTabs.tabCombat);
When posting a new thread: http://bit.ly/1nUXmYS If your problem has been solved, please consider adding [Solved] to beginning of the title! Ever heard of OpenEye? If you want to help me help you, get it now: http://bit.ly/1o0c3IW
To post a comment, please login or register a new account.
Code:
package net.cannibal321.moregems.armor;
import net.cannibal321.moregems.Main;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
public class TopazArmor extends ItemArmor {
public TopazArmor(ArmorMaterial p_i45325_1_, int p_i45325_2_,
int p_i45325_3_) {
super(p_i45325_1_, p_i45325_2_, p_i45325_3_);
this.setCreativeTab(CreativeTabs.tabCombat);
}
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type){
if(stack.getItem() == Main.topazhelmet || stack.getItem()== Main.topazchest|| stack.getItem()== Main.topazboots){
return "cannibal321:/textures/models/armor/topaz_1.png";
}
if(stack.getItem()== Main.topazpants){
return "cannibal321:/textures/models/armor/topaz_2.png";
}
else return null;
};
}
Thanks
I think this is the wrong place to post this, a better place would be to make a thread in the Modification Development section.
Modification Development: http://bit.ly/1n3APoe
When posting a new thread: http://bit.ly/1nUXmYS
If your problem has been solved, please consider adding [Solved] to beginning of the title!
Ever heard of OpenEye? If you want to help me help you, get it now: http://bit.ly/1o0c3IW