Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package top.mod.armor;
- import net.minecraft.entity.EntityLivingBase;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.init.MobEffects;
- import net.minecraft.inventory.EntityEquipmentSlot;
- import net.minecraft.item.ItemArmor;
- import net.minecraft.item.ItemStack;
- import net.minecraft.potion.PotionEffect;
- import net.minecraft.world.World;
- public class SuperArmor extends ItemArmor
- {
- public SuperArmor(ArmorMaterial materialIn, int renderIndexIn, EntityEquipmentSlot equipmentSlotIn) {
- super(materialIn, renderIndexIn, equipmentSlotIn);
- this.setMaxStackSize(1);
- }
- public void onArmorTick(World world, EntityPlayer entity, ItemStack itemStack) {
- int i = (int) entity.posX;
- int j = (int) entity.posY;
- int k = (int) entity.posZ;
- if (true) {
- if (entity instanceof EntityLivingBase)
- ((EntityLivingBase) entity).addPotionEffect(new PotionEffect(MobEffects.RESISTANCE, 200, 2));
- }
- if (true) {
- if (entity instanceof EntityLivingBase)
- ((EntityLivingBase) entity).addPotionEffect(new PotionEffect(MobEffects.STRENGTH, 200, 2));
- }
- if (true) {
- if (entity instanceof EntityLivingBase)
- ((EntityLivingBase) entity).addPotionEffect(new PotionEffect(MobEffects.NIGHT_VISION, 200, 2));
- }
- if (true) {
- if (entity instanceof EntityLivingBase)
- ((EntityLivingBase) entity).addPotionEffect(new PotionEffect(MobEffects.REGENERATION, 200, 2));
- }
- if (true) {
- if (entity instanceof EntityLivingBase)
- ((EntityLivingBase) entity).addPotionEffect(new PotionEffect(MobEffects.JUMP_BOOST, 200, 2));
- }
- if (true) {
- if (entity instanceof EntityLivingBase)
- ((EntityLivingBase) entity).addPotionEffect(new PotionEffect(MobEffects.SATURATION, 2, 200));
- }
- if (true) {
- if (entity instanceof EntityLivingBase)
- ((EntityLivingBase) entity).addPotionEffect(new PotionEffect(MobEffects.SPEED, 200, 2));
- }
- if (true) {
- if (entity instanceof EntityLivingBase)
- ((EntityLivingBase) entity).addPotionEffect(new PotionEffect(MobEffects.FIRE_RESISTANCE, 200, 2));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment