diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-09-02 19:33:48 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-09-02 19:33:48 +0800 |
commit | d4f73de27c61c204e0f8d94cf8194c14e85612b0 (patch) | |
tree | d6e72a093ff474c632d58cf9ea210b7fb34cc0a9 /features/events | |
parent | 86cf90a582f8b3b84b7a8cbeedef250bd641901b (diff) | |
download | SoopyV2-d4f73de27c61c204e0f8d94cf8194c14e85612b0.tar.gz SoopyV2-d4f73de27c61c204e0f8d94cf8194c14e85612b0.tar.bz2 SoopyV2-d4f73de27c61c204e0f8d94cf8194c14e85612b0.zip |
diana debug stuff
Diffstat (limited to 'features/events')
-rw-r--r-- | features/events/index.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/features/events/index.js b/features/events/index.js index 73c9bec..2ed8482 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -142,6 +142,18 @@ class Events extends Feature { this.burrialData.historicalLocations = [] ChatLib.chat(this.FeatureManager.messagePrefix + "Cleared all diana waypoints!") }) + + // this.locs = [] + // this.registerEvent("renderWorld", () => { + // for (let loc of this.locs) { + // drawBoxAtBlock(loc[0], loc[1], loc[2], 255, 0, 0, 0.05, 0.05) + // } + // }) + + // this.registerCommand("clearlocs", () => { + // this.locs = [] + // ChatLib.chat(this.FeatureManager.messagePrefix + "Cleared all locs!") + // }) } step_1fps() { @@ -400,11 +412,13 @@ class Events extends Feature { spawnParticle(particle, type, event) { if (this.showingWaypoints && this.showBurrialGuess.getValue() && particle.toString().startsWith("EntityDropParticleFX,")) { + // this.locs.push([particle.getX(), particle.getY(), particle.getZ()]) let run = false if (this.lastSoundPoint && !run && Math.abs(particle.getX() - this.lastSoundPoint[0]) < 2 && Math.abs(particle.getY() - this.lastSoundPoint[1]) < 0.5 && Math.abs(particle.getZ() - this.lastSoundPoint[2]) < 2) { run = true } if (run) { + if (this.lastParticlePoint === undefined) { this.firstParticlePoint = [particle.getX(), particle.getY(), particle.getZ()] } |