infiniteblock

Untitled

Nov 7th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. redstone.setAnalogOutput("front",15)
  2. while true do
  3.     on = redstone.getAnalogInput("right")
  4.     if on > 6 then
  5.         redstone.setAnalogOutput("front",0)
  6.     elseif on < 5 then
  7.         redstone.setAnalogOutput("front",15)
  8.     end
  9.     sleep(0.1)
  10.     print(on)
  11. end
Add Comment
Please, Sign In to add comment