From 420faddca46e70e3a70def168fb4e452ef193b0d Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Sat, 21 Feb 2015 21:31:16 +0000 Subject: Added just a butt ton of stuff, also thanks to pau101 for helping me with the Hand Pedestal animation :) --- .../jewelrycraft/curses/CurseRottenHeart.java | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 java/darkknight/jewelrycraft/curses/CurseRottenHeart.java (limited to 'java/darkknight/jewelrycraft/curses/CurseRottenHeart.java') diff --git a/java/darkknight/jewelrycraft/curses/CurseRottenHeart.java b/java/darkknight/jewelrycraft/curses/CurseRottenHeart.java new file mode 100644 index 0000000..f7fcfae --- /dev/null +++ b/java/darkknight/jewelrycraft/curses/CurseRottenHeart.java @@ -0,0 +1,25 @@ +package darkknight.jewelrycraft.curses; + +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.potion.Potion; +import net.minecraft.potion.PotionEffect; +import net.minecraft.world.World; + +public class CurseRottenHeart extends Curse +{ + public CurseRottenHeart(int id, String name, int text) + { + super(id, name, text); + } + + @Override + public void action(World world, EntityPlayer player) + { + if (!player.isPotionActive(Potion.poison) || player.getActivePotionEffect(Potion.poison).getDuration() < 30) player.addPotionEffect(new PotionEffect(Potion.poison.id, 80)); + } + + public String getDescription() + { + return "Your heart slowly rots inside"; + } +} -- cgit v1.2.3