Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColour(colors.lime)
- local drive = peripheral.wrap("right")
- if fs.exists("stillmoving") then
- datafile = fs.open("stillmoving", "r")
- howtomove = textutils.unserialize(datafile.readAll())
- print(howtomove[1]..howtomove[2])
- datafile.close()
- if drive.move(howtomove[1],true,false) then
- if howtomove[2] == 1 then fs.delete("stillmoving") else howtomove[2] = howtomove[2] - 1 end
- local datafile = fs.open("stillmoving", "w")
- datafile.write(howtomove)
- datafile.close()
- end
- term.write("We R Stuck lol, I'll try again in like 15 seconds or so XD")
- sleep(15)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement