Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function FirstScreen()
- term.clear()
- term.setCursorPos(1,1)
- write("My First Minining Program")
- sleep(3)
- end
- function ClearScreen()
- term.clear()
- term.setCursorPos(1,1)
- end
- function AskForCoordinate()
- ClearScreen()
- local input = read()
- term.setCursorPos(1,1)
- write("What is the x-Position of the Mining Turtle?")
- x = input
- ClearScreen()
- term.setCursorPos(1,1)
- write("What is the z-Position of the Mining Turtle?")
- z = input
- ClearScreen()
- term.setCursorPos(1,1)
- write("What is the y-Position of the Mining Turtle?")
- y = input
- ClearScreen()
- term.setCursorPos(1,1)
- write("Is that right?")
- term.setCursorPos(2,1)
- write("x: ", x)
- term.setCursorPos(3,1)
- write("z: ", z)
- term.setCursorPos(4,1)
- write("y: ", y)
- end
- x = 0
- z = 0
- y = 0
- FirstScreen()
- AskForCoordinate()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement