Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("Direction?")
- d = read()
- if d == "forward" then
- term.clear()
- term.setCursorPos(1,1)
- print("How many blocks?")
- local fx = tonumber( read() )
- for counter=1,fx do
- turtle.forward()
- end
- shell.run("startup")
- else if d == "back" then
- term.clear()
- term.setCursorPos(1,1)
- print("How many blocks?")
- local bx = tonumber( read() )
- for counter=1,bx do
- turtle.back()
- end
- shell.run("startup")
- else if d == "up" then
- term.clear()
- term.setCursorPos(1,1)
- print("How many blocks?")
- local ux = tonumber( read() )
- for counter=1,ux do
- turtle.up()
- end
- shell.run("startup")
- else if d == "down" then
- term.clear()
- term.setCursorPos(1,1)
- print("How many blocks?")
- local dx = tonumber( read() )
- for counter=1,dx do
- turtle.down()
- end
- shell.run("startup")
- else if d == "right" then
- turtle.turnRight()
- shell.run("startup")
- else if d == "left" then
- turtle.turnLeft()
- shell.run("startup")
- else if d == "penis" then
- shell.run("penis")
- shell.run("startup")
- else
- print("Please enter valid direction")
- os.sleep(1)
- shell.run("startup")
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement