From d3bc05203859151727f4ba21c9103dbfc75fc121 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Wed, 10 Aug 2022 17:55:46 +0800 Subject: + f3/m3 guardian hp display --- features/dungeonSolvers/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'features') diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js index 26bbc1b..5cf78f2 100644 --- a/features/dungeonSolvers/index.js +++ b/features/dungeonSolvers/index.js @@ -109,6 +109,8 @@ class DungeonSolvers extends Feature { this.IceSprayWarn = new ToggleSetting("Ice Spray Drop Ping", "Renders a big title so you don't miss ice spray wands", false, "ice_spray_ping", this).contributor("EmeraldMerchant"); + this.guardianHp = new ToggleSetting("m3/f3 guardian hp", "", true, "guardian_hp", this); + this.registerChat("&r&c ☠ &r${player} were killed by Withermancer&r&7 and became a ghost&r&7.&r", (player, e) => { if (this.forgorEnabled.getValue()) { cancel(e); @@ -699,11 +701,11 @@ class DungeonSolvers extends Feature { } for (let i = 0; i < shifts; i++) this.timersData.shift() - if (this.FeatureManager.features["dataLoader"].class.dungeonFloor[1] === "3") { + if (this.guardianHp.getValue() && this.FeatureManager.features["dataLoader"].class.dungeonFloor?.[1] === "3") { let es = World.getAllEntitiesOfType(entityGuardian) for (let e of es) { - if (e.getEntity().func_110143_aJ() < 1000) continue + if (e.getEntity().func_110143_aJ() < 1000) continue //getHealth Tessellator.drawString(addNotation("oneLetters", Math.round(e.getEntity().func_110143_aJ())), e.getX(), e.getY() + 0.25, e.getZ(), Renderer.color(0, 255, 0), false, 0.1, false) } -- cgit