diff options
author | Ninjune <enderknight537@gmail.com> | 2022-10-26 22:45:52 -0500 |
---|---|---|
committer | Ninjune <enderknight537@gmail.com> | 2022-10-26 22:45:52 -0500 |
commit | e55e71c8c2ee5fc6541eed04e9b684c6167e8f07 (patch) | |
tree | 4bb43bc3aa158a2aa207470b37bc36556081f63a /commands/throne.js | |
parent | f83001bc4a3543cdcd594001e7e6a7aeea749ba1 (diff) | |
download | coleweight-e55e71c8c2ee5fc6541eed04e9b684c6167e8f07.tar.gz coleweight-e55e71c8c2ee5fc6541eed04e9b684c6167e8f07.tar.bz2 coleweight-e55e71c8c2ee5fc6541eed04e9b684c6167e8f07.zip |
1.5.0 Release
Diffstat (limited to 'commands/throne.js')
-rw-r--r-- | commands/throne.js | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/commands/throne.js b/commands/throne.js new file mode 100644 index 0000000..697304d --- /dev/null +++ b/commands/throne.js @@ -0,0 +1,34 @@ +import constants from "../util/constants" +const PREFIX = constants.PREFIX + +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(constants.throneValues[0] == undefined) + { + let startPos = [Player.getX()-24, Player.getY()+6, Player.getZ()-59] // calculated below values at a weird start so adjusting them + constants.throneValues.push([startPos[0]+8, startPos[1]+2, startPos[2]-5]) + constants.throneValues.push([startPos[0]+11, startPos[1]-35, startPos[2]-3]) + constants.throneValues.push([startPos[0]+2, startPos[1]-34, startPos[2]-4]) + constants.throneValues.push([startPos[0]+-2, startPos[1]-1, startPos[2]+49]) + constants.throneValues.push([startPos[0]+2, startPos[1]-13, startPos[2]+52]) + constants.throneValues.push([startPos[0]+27, startPos[1]-9, startPos[2]+51]) + constants.throneValues.push([startPos[0]+38, startPos[1]-15, startPos[2]+47]) + constants.throneValues.push([startPos[0]+41, startPos[1]-44, startPos[2]+46]) + constants.throneValues.push([startPos[0]+50, startPos[1]-28, startPos[2]+38]) + constants.throneValues.push([startPos[0]+49, startPos[1]-31, startPos[2]+1]) + constants.throneValues.push([startPos[0]+50, startPos[1]-1, startPos[2]+10]) + ChatLib.chat(`${PREFIX}&bThrone waypoints turned on!`) + } + else + { + constants.throneValues = [] + ChatLib.chat(`${PREFIX}&bThrone waypoints turned off!`) + } + } +}
\ No newline at end of file |