Tanner235

vertical quarry

Jan 6th, 2022 (edited)
644
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. while true do
  2.  
  3.     redstone.setAnalogOutput("left", 15)
  4.  
  5.     os.pullEvent("redstone")
  6.     if rs.getInput("top") then
  7.         redstone.setAnalogOutput("left", 0)
  8.         sleep(1)
  9.         redstone.setAnalogOutput("back", 15)
  10.     end
  11.  
  12.     os.pullEvent("redstone")
  13.     if rs.getInput("top") then
  14.         redstone.setAnalogOutput("back", 0)
  15.         sleep(1)
  16.         redstone.setAnalogOutput("right", 15)
  17.     end
  18.  
  19.     os.pullEvent("redstone")
  20.     if rs.getInput("top") then
  21.         redstone.setAnalogOutput("right", 0)
  22.         sleep(1)
  23.     end
  24.  
  25. end
Add Comment
Please, Sign In to add comment