aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
Diffstat (limited to 'features')
-rw-r--r--features/dataLoader/index.js2
-rw-r--r--features/dungeonSolvers/index.js14
2 files changed, 14 insertions, 2 deletions
diff --git a/features/dataLoader/index.js b/features/dataLoader/index.js
index c5dbb2c..6f71f08 100644
--- a/features/dataLoader/index.js
+++ b/features/dataLoader/index.js
@@ -104,6 +104,7 @@ class DataLoader extends Feature {
worldLoad() {
this.area = undefined
this.areaFine = undefined
+ this.dungeonFloor = undefined
this.loadApiData("skyblock", false)
}
@@ -190,7 +191,6 @@ class DataLoader extends Feature {
this.isInDungeon = false
}
- this.dungeonFloor = undefined
this.slayerXpToSpawn = undefined
Scoreboard.getLines().forEach(line => {
let name = ChatLib.removeFormatting(line.getName()).replace(/[^A-z0-9 \:\(\)\.]/g, "")
diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js
index ece6f4b..26bbc1b 100644
--- a/features/dungeonSolvers/index.js
+++ b/features/dungeonSolvers/index.js
@@ -2,7 +2,7 @@
/// <reference lib="es2015" />
import { f, m } from "../../../mappings/mappings";
import Feature from "../../featureClass/class";
-import { numberWithCommas } from "../../utils/numberUtils";
+import { addNotation, numberWithCommas } from "../../utils/numberUtils";
import * as renderUtils from "../../utils/renderUtils";
import HudTextElement from "../hud/HudTextElement";
import LocationSetting from "../settings/settingThings/location";
@@ -13,6 +13,8 @@ import { Waypoint } from "../../utils/renderJavaUtils";
import { calculateDistanceQuick } from "../../utils/utils";
import { drawLinePoints } from "../../utils/renderUtils";
+const entityGuardian = Java.type("net.minecraft.entity.monster.EntityGuardian")
+
const MCBlock = Java.type("net.minecraft.block.Block");
const EntityBlaze = Java.type("net.minecraft.entity.monster.EntityBlaze");
let translate;
@@ -696,6 +698,16 @@ class DungeonSolvers extends Feature {
Tessellator.drawString(((time - Date.now()) / 1000).toFixed(1) + "s", position.getX(), position.getY() + 0.5, position.getZ(), Renderer.color(0, 255, 50), false, 0.025, false)
}
for (let i = 0; i < shifts; i++) this.timersData.shift()
+
+ if (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
+
+ 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)
+ }
+ }
}
renderEntity(entity, position, ticks, event) {