Swapped the "confusion" potion effect with hunger (Liquid Poison), made the Nourishment and Regeneration effects only apply when inside Spring Water

This commit is contained in:
Adubbz 2013-05-26 10:22:12 +10:00
parent 535dc7e76b
commit 9f06c2397f
4 changed files with 6 additions and 6 deletions

View file

@ -321,7 +321,7 @@ public class BlockLiquidPoisonFlowing extends BlockFlowing implements ILiquid
if (par5Entity instanceof EntityLiving)
{
((EntityLiving)par5Entity).addPotionEffect(new PotionEffect(Potion.poison.id, 100));
((EntityLiving)par5Entity).addPotionEffect(new PotionEffect(Potion.confusion.id, 100));
((EntityLiving)par5Entity).addPotionEffect(new PotionEffect(Potion.hunger.id, 100));
}
}

View file

@ -54,7 +54,7 @@ public class BlockLiquidPoisonStill extends BlockStationary implements ILiquid
if (par5Entity instanceof EntityLiving)
{
((EntityLiving)par5Entity).addPotionEffect(new PotionEffect(Potion.poison.id, 100));
((EntityLiving)par5Entity).addPotionEffect(new PotionEffect(Potion.confusion.id, 100));
((EntityLiving)par5Entity).addPotionEffect(new PotionEffect(Potion.hunger.id, 100));
}
}

View file

@ -317,10 +317,10 @@ public class BlockSpringWaterFlowing extends BlockFlowing implements ILiquid
int meta = par1World.getBlockMetadata(x, y, z);
if (par5Entity instanceof EntityLiving)
((EntityLiving)par5Entity).addPotionEffect(new PotionEffect(Potion.regeneration.id, 100));
((EntityLiving)par5Entity).addPotionEffect(new PotionEffect(Potion.regeneration.id, 1));
if (par5Entity instanceof EntityPlayer)
((EntityPlayer)par5Entity).addPotionEffect(new PotionEffect(Potions.nourishment.get().id, 100));
((EntityPlayer)par5Entity).addPotionEffect(new PotionEffect(Potions.nourishment.get().id, 1));
}
@Override

View file

@ -57,10 +57,10 @@ public class BlockSpringWaterStill extends BlockStationary implements ILiquid
int meta = par1World.getBlockMetadata(x, y, z);
if (par5Entity instanceof EntityLiving)
((EntityLiving)par5Entity).addPotionEffect(new PotionEffect(Potion.regeneration.id, 100));
((EntityLiving)par5Entity).addPotionEffect(new PotionEffect(Potion.regeneration.id, 1));
if (par5Entity instanceof EntityPlayer)
((EntityPlayer)par5Entity).addPotionEffect(new PotionEffect(Potions.nourishment.get().id, 100));
((EntityPlayer)par5Entity).addPotionEffect(new PotionEffect(Potions.nourishment.get().id, 1));
}
@Override