1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
import constants from "../util/constants"
import { waypointRender } from "../util/helperFunctions"
const PREFIX = constants.PREFIX
let divanWaypoints = []
export function divans(arg2)
{
const WAYPOINTNAME = "Divan"
if(arg2 != "toggle")
{
new TextComponent(`${PREFIX}&bGo to the middle of jade crystal then do /cw coords divans toggle.`)
.chat()
}
else
{
if(divanWaypoints[0] == undefined)
{
let startPos = [Player.getX(), Player.getY(), Player.getZ()],
x = startPos[0],
y = startPos[1],
z = startPos[2]
console.log(x + " " + y + " " + z)
divanWaypoints.push([x + 1, y + -40, z + -20])
divanWaypoints.push([x + 30, y + -39, z + -25])
divanWaypoints.push([x + -31, y + -39, z + -12])
divanWaypoints.push([x + 1, y + -39, z + 20])
divanWaypoints.push([x + -14, y + -39, z + 43])
divanWaypoints.push([x + -12, y + -39, z + -44])
divanWaypoints.push([x + -20, y + -40, z + 0])
divanWaypoints.push([x + 22, y + -39, z + -14])
divanWaypoints.push([x + 29, y + -39, z + -44])
divanWaypoints.push([x + 12, y + -39, z + 7])
divanWaypoints.push([x + 23, y + -40, z + -39])
divanWaypoints.push([x + -37, y + -39, z + 11])
divanWaypoints.push([x + 7, y + -39, z + 11])
divanWaypoints.push([x + 6, y + -39, z + 11])
divanWaypoints.push([x + -38, y + -40, z + 26])
divanWaypoints.push([x + 12, y + -40, z + -22])
divanWaypoints.push([x + -5, y + -39, z + 16])
divanWaypoints.push([x + 40, y + -40, z + -30])
divanWaypoints.push([x + 42, y + -37, z + -41])
divanWaypoints.push([x + -23, y + -40, z + 40])
divanWaypoints.push([x + 20, y + -40, z + 0])
divanWaypoints.push([x + -24, y + -40, z + 12])
divanWaypoints.push([x + 38, y + -40, z + -26])
divanWaypoints.push([x + 43, y + -39, z + -16])
divanWaypoints.push([x + -40, y + -40, z + 18])
divanWaypoints.push([x + -17, y + -39, z + 20])
divanWaypoints.push([x + 19, y + -40, z + 29])
divanWaypoints.push([x + -37, y + -39, z + -14])
divanWaypoints.push([x + -14, y + -39, z + 22])
divanWaypoints.push([x + -42, y + -38, z + -28])
divanWaypoints.push([x + -43, y + -40, z + -40])
divanWaypoints.push([x + 25, y + -40, z + 17])
divanWaypoints.push([x + 12, y + -40, z + 31])
divanWaypoints.push([x + -31, y + -39, z + -40])
divanWaypoints.push([x + -36, y + -38, z + 42])
divanWaypoints.push([x + 7, y + -39, z + 22])
divanWaypoints.push([x + 20, y + -39, z + -26])
divanWaypoints.push([x + 12, y + -39, z + -43])
ChatLib.chat(`${PREFIX}&b${WAYPOINTNAME} waypoints turned on!`)
}
else
{
divanWaypoints = []
ChatLib.chat(`${PREFIX}&b${WAYPOINTNAME} waypoints turned off!`)
}
}
}
register("renderWorld", () => {
waypointRender(divanWaypoints)
})
register("worldLoad", () => {
divanWaypoints = []
})
export default ""
|