Advertisement
ade_talon

Create Quarry

Sep 4th, 2023 (edited)
972
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | Gaming | 0 0
  1. term.clear()
  2. term.setCursorPos(2,2)
  3. print("Program Running...")
  4.  
  5.  
  6.  
  7. while true do
  8.     print("down")
  9.     redstone.setOutput("top", true)
  10.     redstone.setOutput("back", true)
  11.  
  12.     while true do
  13.         if redstone.getInput("left") == true then
  14.             break
  15.         end
  16.         os.sleep(0.5)
  17.     end
  18.  
  19.  
  20.  
  21.     print("up")
  22.     redstone.setOutput("top", false)
  23.     redstone.setOutput("back", true)
  24.  
  25.     while true do
  26.         if redstone.getInput("right") == true then
  27.             break
  28.         end
  29.         os.sleep(0.5)
  30.     end
  31.  
  32.  
  33.  
  34.     print("move")
  35.     redstone.setOutput("top", true)
  36.     redstone.setOutput("back", false)
  37.     os.sleep(5)
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement