Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local wireless = peripheral.wrap("bottom")
- local function setWireless(freq)
- wireless.setFreq(freq)
- rs.setOutput("bottom", true)
- sleep(0.5)
- rs.setOutput("bottom", false)
- end
- local function south()
- setWireless(4205)
- end
- local function west()
- setWireless(?)
- end
- local function up()
- setWireless(?)
- end
- local function down()
- setWireless(?)
- end
- local function dig()
- setWireless(?)
- end
- local function wait()
- print("Sleeping For 5")
- sleep(5)
- print("Iam Awake! - Let's Go")
- end
- local function quarry()
- term.clear()
- term.setCursorPos(1,1)
- print ("Mining Started...")
- for i = 1, 3 do
- down()
- end
- for i = 1, 73 do
- dig()
- down()
- end
- -- Up
- sleep(3)
- print ("Returning to surface")
- for i = 1, 76 do
- up()
- end
- print ("Arrived at surface. Ready to move on")
- end
- for i = 1, 9 do
- quarry()
- for j = 1, 7 do
- south()
- end
- wait()
- end
- for i = 1, 7 do
- west()
- end
- wait()
- for i = 1, 9 do
- quarry()
- for j = 1, 7 do
- north()
- end
- wait()
- end
- for i = 1, 7 do
- west()
- end
Advertisement
Add Comment
Please, Sign In to add comment