diff options
author | bowser0000 <bowser0000@gmail.com> | 2021-07-18 17:33:31 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2021-07-18 17:33:31 -0400 |
commit | 59ee50124930d73cd9fd6daa23727ff8a154c37d (patch) | |
tree | 22219077ed4a1201528c11ce502e854638084822 /src/main/java/me/Danker | |
parent | 6cd3683e30bc14898d076592d50082aeb11f3a96 (diff) | |
download | SkyblockMod-59ee50124930d73cd9fd6daa23727ff8a154c37d.tar.gz SkyblockMod-59ee50124930d73cd9fd6daa23727ff8a154c37d.tar.bz2 SkyblockMod-59ee50124930d73cd9fd6daa23727ff8a154c37d.zip |
Add enderman slayer highlight support
Diffstat (limited to 'src/main/java/me/Danker')
-rw-r--r-- | src/main/java/me/Danker/features/SlayerESP.java | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/features/SlayerESP.java b/src/main/java/me/Danker/features/SlayerESP.java index 522e696..3629474 100644 --- a/src/main/java/me/Danker/features/SlayerESP.java +++ b/src/main/java/me/Danker/features/SlayerESP.java @@ -26,6 +26,7 @@ public class SlayerESP { static Entity zombie = null; static Entity spider = null; static Entity wolf = null; + static Entity enderman = null; static boolean slayerActive = false; static boolean slayerStarted = false; public static int SLAYER_COLOUR; @@ -35,6 +36,7 @@ public class SlayerESP { zombie = null; spider = null; wolf = null; + enderman = null; } @SubscribeEvent @@ -45,7 +47,7 @@ public class SlayerESP { World world = Minecraft.getMinecraft().theWorld; if (world == null) return; if (!slayerStarted) return; - if (zombie != null || spider != null || wolf != null) { + if (zombie != null || spider != null || wolf != null || enderman != null) { return; } slayerActive = true; @@ -66,8 +68,10 @@ public class SlayerESP { } else if (e.getName().contains("Sven Packmaster")) { wolf = e; return; + } else if (e.getName().contains("Voidgloom Seraph")) { + enderman = e; + return; } - } break; } @@ -88,6 +92,7 @@ public class SlayerESP { zombie = null; spider = null; wolf = null; + enderman = null; } } @@ -113,6 +118,11 @@ public class SlayerESP { Utils.draw3DBox(aabb, SLAYER_COLOUR, event.partialTicks); return; } + if (enderman != null) { + AxisAlignedBB aabb = new AxisAlignedBB(enderman.posX - 0.5, enderman.posY - 3, enderman.posZ - 0.5, enderman.posX + 0.5, enderman.posY, enderman.posZ + 0.5); + Utils.draw3DBox(aabb, SLAYER_COLOUR, event.partialTicks); + return; + } } } |