diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-28 21:29:35 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-28 21:29:35 +0800 |
commit | 51cdd4ca4ea64e1a9a67b99c274693a54f7f535d (patch) | |
tree | 38ad597119c2b38a69ee26822769075c9c5cdacc /features/dungeonSolvers | |
parent | 0985bdd291c3b2889c1e2fbc20f51cd4d7bc1e96 (diff) | |
download | SoopyV2-51cdd4ca4ea64e1a9a67b99c274693a54f7f535d.tar.gz SoopyV2-51cdd4ca4ea64e1a9a67b99c274693a54f7f535d.tar.bz2 SoopyV2-51cdd4ca4ea64e1a9a67b99c274693a54f7f535d.zip |
+ asd
Diffstat (limited to 'features/dungeonSolvers')
-rw-r--r-- | features/dungeonSolvers/index.js | 62 |
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() { |