/
automine.txt
57 lines (49 loc) · 1.03 KB
/
automine.txt
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
#zpos = ZPOS
#xpos = XPOS
#ypos = YPOS
DO()
//Fixes the location of the player
log(&6Location fixed at:&b X:%XPOS%, Y:%YPOS%, Z:%ZPOS%)
//Countdown
log(&7Automining in:)
wait(500ms)
log(&73)
wait(500ms)
log(&72)
wait(500ms)
log(&71)
wait(500ms)
log(&7mining....)
// Loop that does stuff while you are not moving
DO()
// Checks to make sure you don't move
wait(1s)
IF(XPOS!=%#xpos%)
//log("BREAK X")
BREAK
ELSEIF(YPOS!=%#ypos%)
//log("BREAK Y")
BREAK
ELSEIF(ZPOS!=%#zpos%)
//log("BREAK Z")
BREAK
ENDIF
// Stuff to do while you are not moving
key(attack)
LOOP
// Stuff to do when the player has moved
log(&6Exit)
//BREAK
log(&cMovement detected, &7teleporting back in:)
wait(500ms)
log(&73)
wait(500ms)
log(&72)
wait(500ms)
log(&71)
wait(500ms)
echo(/tp Lezappen %#xpos% %#ypos% %#zpos%)
log(&7Teleporting..)
wait(5000ms)
log(&7Teleported!)
LOOP