From 95167f44f17f94b9462e7c48fc03e32ae3435c03 Mon Sep 17 00:00:00 2001 From: Nathan Piercy Date: Sun, 4 Jun 2017 16:34:48 +1000 Subject: [PATCH] Add shaking from shulkers --- .../gmail/nossr50/config/treasure/TreasureConfig.java | 3 +++ .../com/gmail/nossr50/skills/fishing/Fishing.java | 3 +++ src/main/resources/treasures.yml | 11 +++++++++++ 3 files changed, 17 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java b/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java index dc1a84498..b7cd535d0 100755 --- a/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java +++ b/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java @@ -61,6 +61,7 @@ public class TreasureConfig extends ConfigLoader { public List shakeFromPigZombie = new ArrayList(); public List shakeFromPlayer = new ArrayList(); public List shakeFromSheep = new ArrayList(); + public List shakeFromShulker = new ArrayList(); public List shakeFromSkeleton = new ArrayList(); public List shakeFromSlime = new ArrayList(); public List shakeFromSnowman = new ArrayList(); @@ -355,6 +356,8 @@ public class TreasureConfig extends ConfigLoader { shakeFromPlayer.add(shakeTreasure); } else if (type.equals("Shake.SHEEP")) { shakeFromSheep.add(shakeTreasure); + } else if (type.equals("Shake.SHULKER")) { + shakeFromShulker.add(shakeTreasure); } else if (type.equals("Shake.SKELETON")) { shakeFromSkeleton.add(shakeTreasure); } else if (type.equals("Shake.SLIME")) { diff --git a/src/main/java/com/gmail/nossr50/skills/fishing/Fishing.java b/src/main/java/com/gmail/nossr50/skills/fishing/Fishing.java index d4be13598..a64d4c515 100644 --- a/src/main/java/com/gmail/nossr50/skills/fishing/Fishing.java +++ b/src/main/java/com/gmail/nossr50/skills/fishing/Fishing.java @@ -113,6 +113,9 @@ public final class Fishing { case SHEEP: return TreasureConfig.getInstance().shakeFromSheep; + case SHULKER: + return TreasureConfig.getInstance().shakeFromShulker; + case SKELETON: return TreasureConfig.getInstance().shakeFromSkeleton; diff --git a/src/main/resources/treasures.yml b/src/main/resources/treasures.yml index 5936b06f9..37d5b73fe 100755 --- a/src/main/resources/treasures.yml +++ b/src/main/resources/treasures.yml @@ -811,6 +811,17 @@ Shake: XP: 0 Drop_Chance: 100.0 Drop_Level: 0 + SHULKER: + SHULKER_SHELL: + Amount: 1 + XP: 0 + Drop_Chance: 25.0 + Drop_Level: 0 + PURPUR_BLOCK: + Amount: 1 + XP: 0 + Drop_Chance: 75.0 + Drop_Level: 0 SKELETON: SKULL_ITEM: Data: 0