Bonjour voici le bon code
public class firesword extends ItemSword
{
public firesword(ToolMaterial p_i45356_1_)
{
super(p_i45356_1_);
}
@Override
public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity)
{
((EntityLivingBase)entity).addPotionEffect(new PotionEffect(Potion.poison.getId(), 400, 1));
return super.onLeftClickEntity(stack, player, entity);
}
}
J’espère que ça ta aidée