diff options
author | Ninjune x <enderknight537@gmail.com> | 2023-01-08 02:12:14 -0600 |
---|---|---|
committer | Ninjune x <enderknight537@gmail.com> | 2023-01-08 02:12:14 -0600 |
commit | 688e13930681bca7881d19468745f7067e9bc5c2 (patch) | |
tree | 9e95e59359dd2ae6e2e7761666b99a191bb62a1f /commands/throne.js | |
parent | 1891ada92ab1911cfaaa7ad0e72c85573f4fcbb6 (diff) | |
download | coleweight-future.tar.gz coleweight-future.tar.bz2 coleweight-future.zip |
v1.8.6future
Diffstat (limited to 'commands/throne.js')
-rw-r--r-- | commands/throne.js | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/commands/throne.js b/commands/throne.js deleted file mode 100644 index c3a2e1c..0000000 --- a/commands/throne.js +++ /dev/null @@ -1,50 +0,0 @@ -import constants from "../util/constants" -import { waypointRender } from "../util/helperFunctions" - -const PREFIX = constants.PREFIX -let throneWaypoints = [] - - -export function throne(arg2) -{ - if(arg2 != "toggle") - { - ChatLib.chat(`${PREFIX}&bGo to the throne and sit on the back block then run /cw throne toggle.`) - } - else - { - if(throneWaypoints[0] == undefined) - { - let startPos = [Player.getX()-24, Player.getY()+6, Player.getZ()-59] // calculated below values at a weird start so adjusting them - throneWaypoints.push([startPos[0]+8, startPos[1]+2, startPos[2]-5]) - throneWaypoints.push([startPos[0]+11, startPos[1]-35, startPos[2]-3]) - throneWaypoints.push([startPos[0]+2, startPos[1]-34, startPos[2]-4]) - throneWaypoints.push([startPos[0]+-2, startPos[1]-1, startPos[2]+49]) - throneWaypoints.push([startPos[0]+2, startPos[1]-13, startPos[2]+52]) - throneWaypoints.push([startPos[0]+27, startPos[1]-9, startPos[2]+51]) - throneWaypoints.push([startPos[0]+38, startPos[1]-15, startPos[2]+47]) - throneWaypoints.push([startPos[0]+41, startPos[1]-44, startPos[2]+46]) - throneWaypoints.push([startPos[0]+50, startPos[1]-28, startPos[2]+38]) - throneWaypoints.push([startPos[0]+55, startPos[1]-36, startPos[2]+29]) - throneWaypoints.push([startPos[0]+49, startPos[1]-31, startPos[2]+1]) - throneWaypoints.push([startPos[0]+50, startPos[1]-1, startPos[2]+10]) - throneWaypoints.push([startPos[0]+45, startPos[1]-3, startPos[2]-4]) - ChatLib.chat(`${PREFIX}&bThrone waypoints turned on!`) - } - else - { - throneWaypoints = [] - ChatLib.chat(`${PREFIX}&bThrone waypoints turned off!`) - } - } -} - - -register("renderWorld", () => { - waypointRender(throneWaypoints, true, true) -}) - - -register("worldLoad", () => { - throneWaypoints = [] -}) |