diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-08-10 17:55:46 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-08-10 17:55:46 +0800 |
commit | d3bc05203859151727f4ba21c9103dbfc75fc121 (patch) | |
tree | 42684edc28fdfc7661b44d314352a00c496585bb | |
parent | 533756ee56072894f59d45f7bffd433830426cfd (diff) | |
download | SoopyV2-d3bc05203859151727f4ba21c9103dbfc75fc121.tar.gz SoopyV2-d3bc05203859151727f4ba21c9103dbfc75fc121.tar.bz2 SoopyV2-d3bc05203859151727f4ba21c9103dbfc75fc121.zip |
+ f3/m3 guardian hp display
-rw-r--r-- | features/dungeonSolvers/index.js | 6 |
1 files changed, 4 insertions, 2 deletions
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) } |