Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local full
- local empty
- local signal
- --monitor=peripheral.wrap('top')
- while true do
- full = redstone.getInput("left")
- empty = redstone.getInput("right")
- print ( full )
- print ( empty )
- if full == true then
- signal = true
- end
- if empty == true then
- signal = false
- end
- if signal == true then
- redstone.setOutput("bottom", true)
- else
- redstone.setOutput("bottom", false)
- end
- sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement