aboutsummaryrefslogtreecommitdiff
path: root/commands/spiral.js
diff options
context:
space:
mode:
authorNinjune x <enderknight537@gmail.com>2023-01-08 02:12:14 -0600
committerNinjune x <enderknight537@gmail.com>2023-01-08 02:12:14 -0600
commit688e13930681bca7881d19468745f7067e9bc5c2 (patch)
tree9e95e59359dd2ae6e2e7761666b99a191bb62a1f /commands/spiral.js
parent1891ada92ab1911cfaaa7ad0e72c85573f4fcbb6 (diff)
downloadcoleweight-future.tar.gz
coleweight-future.tar.bz2
coleweight-future.zip
v1.8.6future
Diffstat (limited to 'commands/spiral.js')
-rw-r--r--commands/spiral.js55
1 files changed, 0 insertions, 55 deletions
diff --git a/commands/spiral.js b/commands/spiral.js
deleted file mode 100644
index f9f00aa..0000000
--- a/commands/spiral.js
+++ /dev/null
@@ -1,55 +0,0 @@
-import constants from "../util/constants"
-import { waypointRender } from "../util/helperFunctions"
-
-const PREFIX = constants.PREFIX
-let spiralWaypoints = []
-
-export function spiral(arg2)
-{
- if(arg2 != "toggle")
- {
- new TextComponent(`${PREFIX}&bGo to the place in &3this&b picture and do /cw spiral toggle`)
- .setClickAction("open_url")
- .setClickValue("https://i.imgur.com/dyL30GD.png")
- .chat()
- }
- else
- {
- if(spiralWaypoints[0] == undefined)
- {
- let startPos = [Player.getX(), Player.getY(), Player.getZ()]
- spiralWaypoints.push([startPos[0]+2, startPos[1]-3, startPos[2]+14])
- spiralWaypoints.push([startPos[0]+3, startPos[1]-21, startPos[2]+6])
- spiralWaypoints.push([startPos[0]+6, startPos[1]-23, startPos[2]-1])
- spiralWaypoints.push([startPos[0]+19, startPos[1]+4, startPos[2]-5])
- spiralWaypoints.push([startPos[0]+21, startPos[1]-7, startPos[2]])
- spiralWaypoints.push([startPos[0]+25, startPos[1]-35, startPos[2]-8])
- spiralWaypoints.push([startPos[0]+39, startPos[1]-36, startPos[2]])
- spiralWaypoints.push([startPos[0]+52, startPos[1]-24, startPos[2]+1])
- spiralWaypoints.push([startPos[0]+48, startPos[1]+3, startPos[2]+3])
- spiralWaypoints.push([startPos[0]+47, startPos[1]+4, startPos[2]+22])
- spiralWaypoints.push([startPos[0]+55, startPos[1]-8, startPos[2]+42])
- spiralWaypoints.push([startPos[0]+46, startPos[1]-11, startPos[2]+49])
- spiralWaypoints.push([startPos[0]+26, startPos[1]+5, startPos[2]+39])
- spiralWaypoints.push([startPos[0]+20, startPos[1]+3, startPos[2]+41])
- spiralWaypoints.push([startPos[0]+8, startPos[1]-23, startPos[2]+32])
- spiralWaypoints.push([startPos[0]+4, startPos[1]-23, startPos[2]+28])
- ChatLib.chat(`${PREFIX}&bSpiral waypoints turned on!`)
- }
- else
- {
- spiralWaypoints = []
- ChatLib.chat(`${PREFIX}&bSpiral waypoints turned off!`)
- }
- }
-}
-
-register("renderWorld", () => {
- waypointRender(spiralWaypoints, true, true)
-})
-
-register("worldLoad", () => {
- spiralWaypoints = []
-})
-
-export default "" \ No newline at end of file