Advertisement
Guest User

Untitled

a guest
Jun 5th, 2013
4,395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.23 KB | None | 0 0
  1. @ForgeSubscribe
  2.   public void onLivingSpecialSpawn(LivingSpecialSpawnEvent event) {
  3.     if ((seasonal) && (((event.entityLiving instanceof qr)) || ((event.entityLiving instanceof qn))) && (event.entityLiving.p.t.nextFloat() < 0.1F)) {
  4.       try {
  5.         dropChances.set(event.entityLiving, new float[] { -1.0F, -1.0F, -1.0F, -1.0F, -1.0F });
  6.       } catch (Throwable e) {
  7.     // Error thrown here, NullPointerException
  8.         throw new RuntimeException(e);
  9.       }
  10.  
  11.       if (event.entityLiving.p.t.nextFloat() < 0.1F) {
  12.         if ((event.entityLiving instanceof qr)) event.entityLiving.b(0, Ic2Items.enabledNanoSaber.l());
  13.         event.entityLiving.b(1, Ic2Items.quantumHelmet.l());
  14.         event.entityLiving.b(2, Ic2Items.quantumBodyarmor.l());
  15.         event.entityLiving.b(3, Ic2Items.quantumLeggings.l());
  16.         event.entityLiving.b(4, Ic2Items.quantumBoots.l());
  17.       } else {
  18.         if ((event.entityLiving instanceof qr)) event.entityLiving.b(0, Ic2Items.nanoSaber.l());
  19.         event.entityLiving.b(1, Ic2Items.nanoHelmet.l());
  20.         event.entityLiving.b(2, Ic2Items.nanoBodyarmor.l());
  21.         event.entityLiving.b(3, Ic2Items.nanoLeggings.l());
  22.         event.entityLiving.b(4, Ic2Items.nanoBoots.l());
  23.       }
  24.     }
  25.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement