Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- redstone.setAnalogOutput("front",15)
- while true do
- on = redstone.getAnalogInput("right")
- if on > 6 then
- redstone.setAnalogOutput("front",0)
- elseif on < 5 then
- redstone.setAnalogOutput("front",15)
- end
- sleep(0.1)
- print(on)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement