Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setCursorPos(1,1)
- term.clear()
- print("Raiding Class Warp Drive")
- term.setCursorPos(1,3)
- print("Direction: ")
- term.setCursorPos(12,3)
- direction = read()
- term.setCursorPos(1,4)
- function mv()
- peripheral.call("back","move",2,true,false)
- drive = peripheral.wrap("back")
- drive.move(direction,false,false)
- -- function stops
- end
- -- Warp/ Distance = 0
- if direction == "warp" then
- term.clear()
- term.setCursorPos(1,1)
- print("Warping...")
- sleep(.5)
- redstone.setOutput("left",true)
- sleep(.1)
- redstone.setOutput("left",false)
- sleep(.5)
- term.setCursorPos(1,2)
- print("Warp Complete")
- sleep(.5)
- shell.run("startup")
- -- Directional Movement/Distance
- elseif direction == "north" then
- mv()
- elseif direction == "south" then
- mv()
- elseif direction == "east" then
- mv()
- elseif direction == "west" then
- mv()
- elseif direction == "up" then
- mv()
- elseif direction == "down" then
- mv()
- elseif direction == "420" then
- redstone.setOutput("right", true)
- sleep(2)
- redstone.setOutput("right", false)
- sleep(1)
- shell.run("startup")
- else term.setCursorPos(12,6)
- print("Direction-Invalid")
- sleep(.5)
- shell.run("startup")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement