Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pim = peripheral.wrap('right')
- local delay = 1
- while true do
- -- full now in hb#1, empty in ch#1
- os.pullEvent('redstone')
- sleep(delay)
- pim.pushItem('north',1,1,2)
- sleep(0.5)
- pim.pullItem('north',1,1,1)
- -- empty now in hb#1, full now in ch#2
- -- done?
- os.pullEvent('redstone')
- --
- pim.pushItem('north',1,1,1)
- sleep(0.5)
- pim.pullItem('north',2,1,1)
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement