View difference between Paste ID: gASn6Ukb and 0A98WMj8
SHOW: | | - or go back to the newest paste.
1
os.loadAPI("persistence")
2
persistence.store("currentFace",0)
3
persistence.store("currentRadius",0)
4
persistence.store("currentX",0)
5
persistence.store("currentZ",0)
6
persistence.store("digCount",0)
7
term.clear()
8
term.setCursorPos(1,1)
9-
print("Miner reset at starting position")
9+
print("Miner reset at starting position")
10
11
print("Welcome to SpiralMine 1.0")
12
print("What radius would you like to mine to: ")
13
endRadius = io.read()
14
persistence.store("endRadius",endRadius)
15
print("SpiralMine is ready to mine an area of radius "..endRadius.." centered around the turtle.")
16
print("Simply run the program 'spiral' to initiate the mine, or set spiral to run on startup for automatic reset")
17
print("Please ensure that you have a refueling enderchest in slot(15) and an unloading enderchest in slot(16)")
18
print("Happy mining!")