aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/features
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2022-03-04 02:15:35 -0500
committerbowser0000 <bowser0000@gmail.com>2022-03-04 02:15:35 -0500
commite660a2872bd5bb278dee6a8f7fbe26336dfd8b1d (patch)
treed30f97db763f071b316fd84ed4db0e761f179743 /src/main/java/me/Danker/features
parent1bac9cb7a1a481b6574555c82461c555ec18cf46 (diff)
downloadSkyblockMod-e660a2872bd5bb278dee6a8f7fbe26336dfd8b1d.tar.gz
SkyblockMod-e660a2872bd5bb278dee6a8f7fbe26336dfd8b1d.tar.bz2
SkyblockMod-e660a2872bd5bb278dee6a8f7fbe26336dfd8b1d.zip
Update F7 notifications
Diffstat (limited to 'src/main/java/me/Danker/features')
-rw-r--r--src/main/java/me/Danker/features/NecronNotifications.java79
1 files changed, 41 insertions, 38 deletions
diff --git a/src/main/java/me/Danker/features/NecronNotifications.java b/src/main/java/me/Danker/features/NecronNotifications.java
index d35996c..323e7f8 100644
--- a/src/main/java/me/Danker/features/NecronNotifications.java
+++ b/src/main/java/me/Danker/features/NecronNotifications.java
@@ -24,55 +24,58 @@ public class NecronNotifications {
if (!Utils.inDungeons) return;
- if (ToggleCommand.necronNotificationsToggled && message.contains("[BOSS] Necron:")) {
+ if (ToggleCommand.necronNotificationsToggled) {
Minecraft mc = Minecraft.getMinecraft();
World world = mc.theWorld;
- if (message.contains("You tricked me!") || message.contains("That beam, it hurts! IT HURTS!!")) {
- Utils.createTitle(EnumChatFormatting.RED + "NECRON STUCK!", 2);
- } else if (message.contains("STOP USING MY FACTORY AGAINST ME!") || message.contains("OOF") || message.contains("ANOTHER TRAP!! YOUR TRICKS ARE FUTILE!") || message.contains("SERIOUSLY? AGAIN?!") || message.contains("STOP!!!!!")) {
- List<EntityArmorStand> necronLabels = world.getEntities(EntityArmorStand.class, (entity -> {
- if (!entity.hasCustomName()) return false;
- if (!entity.getCustomNameTag().contains("Necron")) return false;
- return true;
- }));
- if (necronLabels.size() == 0) {
- Utils.createTitle(EnumChatFormatting.WHITE + "NECRON STUNNED!", 2);
- } else {
- EntityArmorStand necron = necronLabels.get(0);
- double x = necron.posX;
- double z = necron.posZ;
- BlockPos blockPos = new BlockPos(x, 168, z);
+ if (message.startsWith("[BOSS] Maxor:")) {
+ if (message.contains("THAT BEAM! IT HURTS! IT HURTS!!") || message.contains("YOU TRICKED ME!")) {
+ Utils.createTitle(EnumChatFormatting.RED + "MAXOR STUCK!", 2);
+ }
+ } else if (message.startsWith("[BOSS] Storm:")) {
+ if (message.contains("Ouch, that hurt!") || message.contains("Oof")) {
+ List<EntityArmorStand> stormLabels = world.getEntities(EntityArmorStand.class, (entity -> {
+ if (!entity.hasCustomName()) return false;
+ return entity.getCustomNameTag().contains("Storm");
+ }));
+ if (stormLabels.size() == 0) {
+ Utils.createTitle(EnumChatFormatting.WHITE + "STORM STUNNED!", 2);
+ } else {
+ EntityArmorStand storm = stormLabels.get(0);
+ double x = storm.posX;
+ double z = storm.posZ;
- IBlockState blockState = world.getBlockState(blockPos);
- Block block = blockState.getBlock();
+ BlockPos blockPos = new BlockPos(x, 168, z);
- if (block != Blocks.stained_hardened_clay) {
- Utils.createTitle(EnumChatFormatting.WHITE + "NECRON STUNNED!", 2);
- } else {
- switch (block.getDamageValue(world, blockPos)) {
- case 4:
- Utils.createTitle(EnumChatFormatting.YELLOW + "YELLOW PILLAR!", 2);
- break;
- case 5:
- Utils.createTitle(EnumChatFormatting.DARK_GREEN + "GREEN PILLAR!", 2);
- break;
- case 11:
- Utils.createTitle(EnumChatFormatting.DARK_PURPLE + "PURPLE PILLAR!", 2);
- break;
- default:
- Utils.createTitle(EnumChatFormatting.WHITE + "NECRON STUNNED!", 2);
+ IBlockState blockState = world.getBlockState(blockPos);
+ Block block = blockState.getBlock();
+
+ if (block != Blocks.stained_hardened_clay) {
+ Utils.createTitle(EnumChatFormatting.WHITE + "STORM STUNNED!", 2);
+ } else {
+ switch (block.getDamageValue(world, blockPos)) {
+ case 4:
+ Utils.createTitle(EnumChatFormatting.YELLOW + "YELLOW PILLAR!", 2);
+ break;
+ case 5:
+ Utils.createTitle(EnumChatFormatting.DARK_GREEN + "GREEN PILLAR!", 2);
+ break;
+ case 11:
+ Utils.createTitle(EnumChatFormatting.DARK_PURPLE + "PURPLE PILLAR!", 2);
+ break;
+ default:
+ Utils.createTitle(EnumChatFormatting.WHITE + "STORM STUNNED!", 2);
+ }
}
- }
+ }
+ } else if (message.contains("I should have known that I stood no chance.")) {
+ Utils.createTitle(EnumChatFormatting.RED + "RED PILLAR!", 2);
}
- } else if (message.contains("I'VE HAD ENOUGH! YOU'RE NOT HITTING ME WITH ANY MORE PILLARS!")) {
- Utils.createTitle(EnumChatFormatting.RED + "RED PILLAR!", 2);
- } else if (message.contains("ARGH!")) {
+ } else if (message.startsWith("[BOSS] Necron:") && message.contains("ARGH!")) {
Utils.createTitle(EnumChatFormatting.RED + "EXPLOSION OVER!", 2);
}
}
-
}
}