aboutsummaryrefslogtreecommitdiff
path: root/features/dungeonSolvers
diff options
context:
space:
mode:
Diffstat (limited to 'features/dungeonSolvers')
-rw-r--r--features/dungeonSolvers/index.js62
1 files changed, 62 insertions, 0 deletions
diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js
index 54c0849..e230781 100644
--- a/features/dungeonSolvers/index.js
+++ b/features/dungeonSolvers/index.js
@@ -249,6 +249,68 @@ class DungeonSolvers extends Feature {
this.renderEntityEvent = undefined;
this.onWorldLoad();
+
+
+ //TODO: finish this
+ // let saidLocations = new Set()
+ // let data = []
+ // let area = 0
+ // this.registerChat("", () => {
+ // area++
+ // })
+ // this.registerStep(false, 3, () => {
+ // World.getAllEntities().forEach(e => {
+ // if (ChatLib.removeFormatting(e.getName()).toLowerCase().includes("inactive device")) {
+ // addThing([Math.trunc(e.getX()), Math.trunc(e.getY()), Math.trunc(e.getZ())], "device")
+ // }
+ // if (ChatLib.removeFormatting(e.getName()).toLowerCase().includes("inactive terminal")) {
+ // addThing([Math.trunc(e.getX()), Math.trunc(e.getY()), Math.trunc(e.getZ())], "terminal")
+ // }
+ // if (ChatLib.removeFormatting(e.getName()).toLowerCase().includes("not activated")) {
+ // addThing([Math.trunc(e.getX()), Math.trunc(e.getY()), Math.trunc(e.getZ())], "lever")
+ // }
+ // })
+ // })
+
+ // function addThing(location, type) {
+ // if (saidLocations.has(location.join(","))) return
+
+ // saidLocations.add(location.join(","))
+
+ // if (type === "lever") {
+ // let finalLoc = undefined
+ // for (let i = 5; i > -5; i--) {
+ // if (World.getBlockAt(location[0], location[1] + i, location[2])?.getType()?.getID() === 69) {
+ // finalLoc = [location[0], location[1] + i, location[2]]
+ // }
+ // }
+ // data.push({ type: "lever", location: finalLoc, phase: area })
+ // return
+ // }
+ // if (type === "terminal") {
+ // let finalLoc = undefined
+ // for (let x = 5; x > -5; x--) {
+ // for (let y = 5; y > -5; y--) {
+ // for (let z = 5; z > -5; z--) {
+ // if (World.getBlockAt(location[0] + x, location[1] + y, location[2] + x)?.getType()?.getID() === 137) {
+ // finalLoc = [location[0] + x, location[1] + y, location[2] + x]
+ // }
+ // }
+ // }
+ // }
+ // data.push({ type: "terminal", location: finalLoc, phase: area })
+ // return
+ // }
+ // data.push({ type: type, location: location, phase: area })
+ // }
+
+ // this.registerCommand("getdata", () => {
+ // ChatLib.chat(JSON.stringify(data))
+ // })
+
+ //§r§6Soopyboo32§r§a activated a lever! (§r§c8§r§a/8)§r
+ //§r§6Soopyboo32§r§a completed a device! (§r§c3§r§a/8)§r
+ //§r§bBossmanLeo§r§a activated a terminal! (§r§c2§r§a/8)§r
}
step_5min() {