Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- event = os.pullEvent();
- if event == "redstone" then
- top = redstone.getAnalogInput("top")
- print(top)
- if top < 13 then
- redstone.setOutput("left", true)
- else
- redstone.setOutput("left",false)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement