From 95b9960db113d4dd5a770ee1fa6442ea6c6a94d3 Mon Sep 17 00:00:00 2001 From: shansen Date: Fri, 30 Jan 2015 17:43:00 +0100 Subject: [PATCH] Added support for Guardians. --- src/main/java/me/shansen/EggCatcher/EggType.java | 3 ++- src/main/resources/config.yml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/shansen/EggCatcher/EggType.java b/src/main/java/me/shansen/EggCatcher/EggType.java index c93181c..9f52fd5 100644 --- a/src/main/java/me/shansen/EggCatcher/EggType.java +++ b/src/main/java/me/shansen/EggCatcher/EggType.java @@ -46,7 +46,8 @@ public enum EggType { BAT(EntityType.BAT, 65, "Bat"), WITCH(EntityType.WITCH, 66, "Witch"), HORSE(EntityType.HORSE, 100, "Horse"), - ENDERMITE(EntityType.ENDERMITE, 67, "Endermite"); + ENDERMITE(EntityType.ENDERMITE, 67, "Endermite"), + GUARDIAN(EntityType.GUARDIAN, 68, "Guardian"); diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index ca52fb1..8789690 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -39,6 +39,7 @@ CatchChance: Bat: 100.0 Horse: 100.0 Endermite: 100.0 + Guardian: 100.0 VaultCost: Pig: 0.0 Sheep: 0.0 @@ -65,6 +66,7 @@ VaultCost: Bat: 0.0 Horse: 0.0 Endermite: 0.0 + Guardian: 0.0 ItemCost: ItemId: 371 ItemData: 0 @@ -94,6 +96,7 @@ ItemCost: Bat: 0 Horse: 0 Endermite: 0 + Guardian: 0 HealthPercentage: Pig: 100.0 Sheep: 100.0 @@ -120,6 +123,7 @@ HealthPercentage: Bat: 100.0 Horse: 100.0 Endermite: 100.0 + Guardian: 100.0 Messages: PermissionFail: "You do not have permission to catch this mob!" VaultFail: "It costs %s dollars to catch this mob!"