Posted May 21, 201411 yr package OnerGamer.Item.Armor; import OnerGamer.OnerGamer; import OnerGamer.Register.Reference; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; /** * ItemLiveArmor * * This is the armor. */ public class invisibleArmor extends ItemArmor { public invisibleArmor(ArmorMaterial material, int armorType, String name) { super(material, 0, armorType); setUnlocalizedName(name); } /** * This method returns what file MC should use, to render the armor (make it visible from above). */ public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) { if(stack.getItem() == OnerGamer.invisibleArmor) { ((EntityLivingBase) entity).addPotionEffect((new PotionEffect(Potion.jump.getId(), 200, 0))); return Reference.MODID + ":models/armor/invisibleArmor.png"; } else { System.out.println("Invalid Item invisibleArmor"); return null; } } }
May 21, 201411 yr Are you really young or just not fluent in English? It is very difficult to understand what you are asking. Long time Bukkit & Forge Programmer Happy to try and help
May 21, 201411 yr Author You override it and then do stuff in there you want to happen while your armor is worn. Yeah how to do ?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.