XylianLP

Turtle Elevator

Jun 19th, 2021
958
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. write("Elevator: up/down: ")
  2. d = read()
  3.  
  4. write("Elevator: Steps: ")
  5. h = read()
  6.  
  7. if d == "up" then
  8.   for i=1, h do
  9.     turtle.up()
  10.     sleep(1)
  11.   end
  12. else
  13.   for i=1, h do
  14.     turtle.down()
  15.   end
  16. end
RAW Paste Data