23 déc. 2015, 16:12

j’ai fais sa
public void onLivingHurt(LivingHurtEvent event)
{
ItemStack boots = event.entityLiving.getEquipmentInSlot(1);
ItemStack leggings = event.entityLiving.getEquipmentInSlot(2);
ItemStack chestPlate = event.entityLiving.getEquipmentInSlot(3);
ItemStack helmet = event.entityLiving.getEquipmentInSlot(4);

if(boots != null && boots.getItem() == ModFairytail.bootsacier && leggings != null && leggings.getItem() == ModFairytail.leggingsacier && chestPlate != null && chestPlate.getItem() == ModFairytail.chestPlateacier && helmet != null && helmet.getItem() == ModFairytail.helmetacier)
{
event.entityLiving.addPotionEffect(new PotionEffect(Potion.resistance.id, 20, 0));
}
}

mais l’effet vien que si on me tape 😕