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 :) --- .../darkknight/jewelrycraft/curses/CurseBlind.java | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 java/darkknight/jewelrycraft/curses/CurseBlind.java (limited to 'java/darkknight/jewelrycraft/curses/CurseBlind.java') diff --git a/java/darkknight/jewelrycraft/curses/CurseBlind.java b/java/darkknight/jewelrycraft/curses/CurseBlind.java new file mode 100644 index 0000000..62483cd --- /dev/null +++ b/java/darkknight/jewelrycraft/curses/CurseBlind.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 CurseBlind extends Curse +{ + public CurseBlind(int id, String name, int text) + { + super(id, name, text); + } + + @Override + public void action(World world, EntityPlayer player) + { + if (!player.isPotionActive(Potion.blindness) || player.getActivePotionEffect(Potion.blindness).getDuration() < 30) player.addPotionEffect(new PotionEffect(Potion.blindness.id, 60)); + } + + public String getDescription() + { + return "You see the light slowly fading in front of you"; + } +} -- cgit v1.2.3