aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/kotlin/dulkirmod/config/Config.kt8
-rw-r--r--src/main/kotlin/dulkirmod/features/NametagCleaner.kt7
2 files changed, 15 insertions, 0 deletions
diff --git a/src/main/kotlin/dulkirmod/config/Config.kt b/src/main/kotlin/dulkirmod/config/Config.kt
index b554bbb..f38257c 100644
--- a/src/main/kotlin/dulkirmod/config/Config.kt
+++ b/src/main/kotlin/dulkirmod/config/Config.kt
@@ -380,6 +380,14 @@ object Config : Vigilant(File("./config/dulkirmod/config.toml"), "DulkirMod", so
fun demoVolume() {
DulkirMod.mc.thePlayer.playSound("mob.ghast.scream", 1f * Config.bestiaryNotifVol, 1f)
}
+
+ @Property(
+ type = PropertyType.SWITCH,
+ name = "Hide Arachne Loot Nametags",
+ description = "Useful when killing a lot of them",
+ category = "Bestiary"
+ )
+ var hideArachneTags = false
fun init() {
initialize()
addDependency("customMessage", "throttleNotifier")
diff --git a/src/main/kotlin/dulkirmod/features/NametagCleaner.kt b/src/main/kotlin/dulkirmod/features/NametagCleaner.kt
index 6d588c2..f198251 100644
--- a/src/main/kotlin/dulkirmod/features/NametagCleaner.kt
+++ b/src/main/kotlin/dulkirmod/features/NametagCleaner.kt
@@ -21,6 +21,13 @@ object NametagCleaner {
mc.theWorld.removeEntity(event.entity)
}
}
+
+ if (config.hideArachneTags) {
+ val name = stripColorCodes(event.entity.customNameTag)
+ if (name.contains("Luxurious Spool") || name.contains("String") || name.contains("Arachne Fragment")){
+ mc.theWorld.removeEntity(event.entity)
+ }
+ }
}
}
}