Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (hookedEntity.getType() == EntityType.BLAZE) {
- drop.setType(Material.BLAZE_ROD);
- increaseStats.changeEXP("fishing",800);
- } else if (hookedEntity.getType() == EntityType.GHAST) {
- double randomNum = rand.nextDouble();
- if (randomNum < .5) {
- drop.setType(Material.GHAST_TEAR);
- } else {
- drop.setType(Material.GUNPOWDER);
- }
- increaseStats.changeEXP("fishing",800);
- } else if (hookedEntity.getType() == EntityType.ZOMBIFIED_PIGLIN) {
- double randomNum = rand.nextDouble();
- if (randomNum < .5) {
- drop.setType(Material.ROTTEN_FLESH);
- } else {
- drop.setType(Material.GOLD_NUGGET);
- }
- increaseStats.changeEXP("fishing",800);
- } else if (hookedEntity.getType() == EntityType.ZOMBIE) {
- double randomNum = rand.nextDouble();
- if (randomNum < .98) {
- drop.setType(Material.ROTTEN_FLESH);
- } else {
- drop.setType(Material.ZOMBIE_HEAD);
- }
- increaseStats.changeEXP("fishing",1000);
- } else if (hookedEntity.getType() == EntityType.SPIDER) {
- double randomNum = rand.nextDouble();
- if (randomNum < .5) {
- drop.setType(Material.STRING);
- } else {
- drop.setType(Material.SPIDER_EYE);
- }
- increaseStats.changeEXP("fishing",1000);
- } else if (hookedEntity.getType() == EntityType.CAVE_SPIDER) {
- double randomNum = rand.nextDouble();
- if (randomNum < .49) {
- drop.setType(Material.STRING);
- } else if (randomNum < .98) {
- drop.setType(Material.SPIDER_EYE);
- } else if (randomNum < .99) {
- drop.setType(Material.SPLASH_POTION);
- PotionMeta pm = (PotionMeta) drop.getItemMeta();
- assert pm != null;
- pm.addCustomEffect(new PotionEffect(PotionEffectType.POISON, 15, 0), false);
- pm.setDisplayName(ChatColor.YELLOW + "Splash Potion of Poison");
- drop.setItemMeta(pm);
- } else {
- drop.setType(Material.COBWEB);
- }
- increaseStats.changeEXP("fishing",1000);
- } else if (hookedEntity.getType() == EntityType.PIG) {
- drop.setType(Material.PORKCHOP);
- increaseStats.changeEXP("fishing",600);
- } else if (hookedEntity.getType() == EntityType.CHICKEN) {
- double randomNum = rand.nextDouble();
- if (randomNum < .33) {
- drop.setType(Material.EGG);
- } else if (randomNum > .66) {
- drop.setType(Material.CHICKEN);
- } else {
- drop.setType(Material.FEATHER);
- }
- increaseStats.changeEXP("fishing",600);
- } else if (hookedEntity.getType() == EntityType.CREEPER) {
- double randomNum = rand.nextDouble();
- if (randomNum < .99) {
- drop.setType(Material.GUNPOWDER);
- } else {
- drop.setType(Material.CREEPER_HEAD);
- }
- increaseStats.changeEXP("fishing",1000);
- } else if (hookedEntity.getType() == EntityType.SKELETON) {
- double randomNum = rand.nextDouble();
- if (randomNum < .49) {
- drop.setType(Material.BONE);
- } else if (randomNum < .98) {
- drop.setType(Material.ARROW);
- drop.setAmount(rand.nextInt(3) + 1);
- } else {
- drop.setType(Material.SKELETON_SKULL);
- }
- increaseStats.changeEXP("fishing",1000);
- } else if (hookedEntity.getType() == EntityType.WITHER_SKELETON) {
- double randomNum = rand.nextDouble();
- if (randomNum < .50) {
- drop.setType(Material.BONE);
- } else if (randomNum < .99) {
- drop.setType(Material.COAL);
- drop.setAmount(rand.nextInt(3) + 1);
- } else {
- drop.setType(Material.WITHER_SKELETON_SKULL);
- }
- increaseStats.changeEXP("fishing",120);
- } else if (hookedEntity.getType() == EntityType.SLIME) {
- drop.setType(Material.SLIME_BALL);
- increaseStats.changeEXP("fishing",800);
- } else if (hookedEntity.getType() == EntityType.MAGMA_CUBE) {
- drop.setType(Material.MAGMA_CREAM);
- increaseStats.changeEXP("fishing",1000);
- } else if (hookedEntity.getType() == EntityType.COW) {
- double randomNum = rand.nextDouble();
- if (randomNum < .49) {
- drop.setType(Material.LEATHER);
- } else if (randomNum < .98) {
- drop.setType(Material.BEEF);
- } else {
- drop.setType(Material.MILK_BUCKET);
- }
- increaseStats.changeEXP("fishing",600);
- } else if (hookedEntity.getType() == EntityType.MUSHROOM_COW) {
- double randomNum = rand.nextDouble();
- if (randomNum < .05) {
- drop.setType(Material.MILK_BUCKET);
- } else if (randomNum < 0.10) {
- drop.setType(Material.MUSHROOM_STEW);
- } else if (randomNum < 0.40) {
- drop.setType(Material.LEATHER);
- } else if (randomNum < 0.70) {
- drop.setType(Material.BEEF);
- } else {
- drop.setType(Material.RED_MUSHROOM);
- drop.setAmount(rand.nextInt(3) + 1);
- }
- increaseStats.changeEXP("fishing",600);
- } else if (hookedEntity.getType() == EntityType.ENDERMAN) {
- drop.setType(Material.ENDER_PEARL);
- increaseStats.changeEXP("fishing",1000);
- } else if (hookedEntity.getType() == EntityType.SHEEP) {
- drop.setType(Material.WHITE_WOOL);
- increaseStats.changeEXP("fishing",600);
- } else if (hookedEntity.getType() == EntityType.IRON_GOLEM) {
- double randomNum = rand.nextDouble();
- if (randomNum < .03) {
- drop.setType(Material.PUMPKIN);
- } else if (randomNum < 0.15) {
- drop.setType(Material.IRON_INGOT);
- } else {
- drop.setType(Material.POPPY);
- }
- increaseStats.changeEXP("fishing",600);
- } else if (hookedEntity.getType() == EntityType.SNOWMAN) {
- double randomNum = rand.nextDouble();
- if (randomNum < .03) {
- drop.setType(Material.PUMPKIN);
- } else {
- drop.setType(Material.SNOWBALL);
- }
- increaseStats.changeEXP("fishing",600);
- } else if (hookedEntity.getType() == EntityType.WITCH) {
- double randomNum = rand.nextDouble();
- if (randomNum < 0.01) {
- drop.setType(Material.SPLASH_POTION);
- PotionMeta pm = (PotionMeta) drop.getItemMeta();
- assert pm != null;
- pm.addCustomEffect(new PotionEffect(PotionEffectType.HEAL, 15, 0), false);
- pm.setDisplayName(ChatColor.YELLOW + "Splash Potion of Healing");
- drop.setItemMeta(pm);
- } else if (randomNum < 0.02) {
- drop.setType(Material.SPLASH_POTION);
- PotionMeta pm = (PotionMeta) drop.getItemMeta();
- assert pm != null;
- pm.addCustomEffect(new PotionEffect(PotionEffectType.FIRE_RESISTANCE, 15, 0), false);
- pm.setDisplayName(ChatColor.YELLOW + "Splash Potion of Fire Resistance");
- drop.setItemMeta(pm);
- } else if (randomNum < 0.03) {
- drop.setType(Material.SPLASH_POTION);
- PotionMeta pm = (PotionMeta) drop.getItemMeta();
- assert pm != null;
- pm.addCustomEffect(new PotionEffect(PotionEffectType.SPEED, 15, 0), false);
- pm.setDisplayName(ChatColor.YELLOW + "Splash Potion of Speed");
- drop.setItemMeta(pm);
- } else if (randomNum < 0.12) {
- drop.setType(Material.GLASS_BOTTLE);
- } else if (randomNum < 0.24) {
- drop.setType(Material.SUGAR);
- } else if (randomNum < 0.36) {
- drop.setType(Material.SPIDER_EYE);
- } else if (randomNum < 0.48) {
- drop.setType(Material.GUNPOWDER);
- } else if (randomNum < 0.61) {
- drop.setType(Material.FERMENTED_SPIDER_EYE);
- } else if (randomNum < 0.74) {
- drop.setType(Material.GLOWSTONE_DUST);
- } else if (randomNum < 0.87) {
- drop.setType(Material.REDSTONE);
- } else {
- drop.setType(Material.STICK);
- }
- increaseStats.changeEXP("fishing",1200);
- } else if (hookedEntity.getType() == EntityType.SHULKER) {
- double randomNum = rand.nextDouble();
- if (randomNum < .25) {
- drop.setType(Material.SHULKER_SHELL);
- } else {
- drop.setType(Material.PURPUR_BLOCK);
- }
- increaseStats.changeEXP("fishing",800);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement