Blindness potion not blinding you...

Discussion in 'Plugin Development' started by slater96, Nov 3, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    slater96

    I'm using
    Code:
    p.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 3600, 2));
    But it only darkens the sky...
    It used to make blindness around you, i'm using the latest 1.4 dev build for bukkit.
     
  2. Offline

    Icyene

    Increase the data value (the 2). I'm using a 5 as a data value and it darkens it so that you only see ~4 blocks in front of you.
     
  3. Offline

    slater96

    Nope still only the sky for me :(
     
  4. Offline

    Icyene

    Correction: I am using a 4 :)

    That said, I've also experienced this. I do not think it is so much a bug in your code as it is something either in the client or in Bukkit itself. For me, it sometimes works, sometimes doesn't. The moment I get a build that makes it work (without actually touching the blindness code, which is strange), I just stop touching that class and hope it doesn't fail in the future.
     
  5. Offline

    slater96

    Hmm alright, i'm gonna go try the older bukkit builds now and see if there's any difference.
     
  6. Offline

    Waffletastic

    Make sure you have fog turned on if using Optifine.
     
  7. Offline

    devilquak

    slater96
    Icyene

    The blindness effect isn't supposed to actually blind you, and the intensity modifier doesn't change a thing, it only works for some types of effects. All it's supposed to do is what it does right now, only make the world dark a few blocks around you in every direction, and it will stay like that no matter what modifier you put on.
     
  8. Offline

    slater96

    Darn optifine :p, thanks it works now lol.
     
Thread Status:
Not open for further replies.

Share This Page