From 8cfb6d1de8b0dbee96d73f56720596541dafb304 Mon Sep 17 00:00:00 2001 From: Lorenz Date: Wed, 10 Aug 2022 11:52:34 +0200 Subject: add damage indicator for headless horseman --- .../java/at/hannibal2/skyhanni/damageindicator/BossFinder.kt | 9 +++++++++ src/main/java/at/hannibal2/skyhanni/damageindicator/BossType.kt | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/damageindicator/BossFinder.kt b/src/main/java/at/hannibal2/skyhanni/damageindicator/BossFinder.kt index fab7890a1..80d480e00 100644 --- a/src/main/java/at/hannibal2/skyhanni/damageindicator/BossFinder.kt +++ b/src/main/java/at/hannibal2/skyhanni/damageindicator/BossFinder.kt @@ -16,6 +16,7 @@ import net.minecraft.entity.boss.EntityDragon import net.minecraft.entity.boss.EntityWither import net.minecraft.entity.item.EntityArmorStand import net.minecraft.entity.monster.* +import net.minecraft.entity.passive.EntityHorse import net.minecraft.util.AxisAlignedBB import java.util.* @@ -256,6 +257,14 @@ class BossFinder { } } } + + if (entity is EntityHorse) { + if (entity.baseMaxHealth == 3_000_000.0) { + if (entity.hasNameTagWith(15, "§8[§7Lv100§8] §c§6Headless Horseman§r ")) { + return EntityResult(bossType = BossType.HUB_HEADLESS_HORSEMAN) + } + } + } } return null diff --git a/src/main/java/at/hannibal2/skyhanni/damageindicator/BossType.kt b/src/main/java/at/hannibal2/skyhanni/damageindicator/BossType.kt index 889b0d674..f912758d4 100644 --- a/src/main/java/at/hannibal2/skyhanni/damageindicator/BossType.kt +++ b/src/main/java/at/hannibal2/skyhanni/damageindicator/BossType.kt @@ -16,6 +16,7 @@ enum class BossType { END_ENDERMAN_SLAYER, END_ENDER_DRAGON, - HUB_REVENANT_HORROR + HUB_REVENANT_HORROR, + HUB_HEADLESS_HORSEMAN, } \ No newline at end of file -- cgit