rungholt

digiminerswitch

Mar 6th, 2021 (edited)
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. while true do
  2.     if redstone.getAnalogInput("right") <= 13 then
  3.         redstone.setAnalogOutput("left", 15)
  4.         os.pullEvent("redstone")
  5.     else
  6.         redstone.setAnalogOutput("left", 0)
  7.         os.pullEvent("redstone")
  8.     end
  9. end
Add Comment
Please, Sign In to add comment