Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ForgeSubscribe
- public void onLivingSpecialSpawn(LivingSpecialSpawnEvent event) {
- if ((seasonal) && (((event.entityLiving instanceof qr)) || ((event.entityLiving instanceof qn))) && (event.entityLiving.p.t.nextFloat() < 0.1F)) {
- try {
- dropChances.set(event.entityLiving, new float[] { -1.0F, -1.0F, -1.0F, -1.0F, -1.0F });
- } catch (Throwable e) {
- // Error thrown here, NullPointerException
- throw new RuntimeException(e);
- }
- if (event.entityLiving.p.t.nextFloat() < 0.1F) {
- if ((event.entityLiving instanceof qr)) event.entityLiving.b(0, Ic2Items.enabledNanoSaber.l());
- event.entityLiving.b(1, Ic2Items.quantumHelmet.l());
- event.entityLiving.b(2, Ic2Items.quantumBodyarmor.l());
- event.entityLiving.b(3, Ic2Items.quantumLeggings.l());
- event.entityLiving.b(4, Ic2Items.quantumBoots.l());
- } else {
- if ((event.entityLiving instanceof qr)) event.entityLiving.b(0, Ic2Items.nanoSaber.l());
- event.entityLiving.b(1, Ic2Items.nanoHelmet.l());
- event.entityLiving.b(2, Ic2Items.nanoBodyarmor.l());
- event.entityLiving.b(3, Ic2Items.nanoLeggings.l());
- event.entityLiving.b(4, Ic2Items.nanoBoots.l());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement