Advertisement
Guest User

test

a guest
May 25th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. local pim = peripheral.wrap('right')
  2. local delay = 1
  3.  
  4. while true do
  5.   -- full now in hb#1, empty in ch#1
  6.   os.pullEvent('redstone')
  7.   sleep(delay)
  8.   pim.pushItem('north',1,1,2)
  9.   sleep(0.5)
  10.   pim.pullItem('north',1,1,1)
  11.   -- empty now in hb#1, full now in ch#2
  12.  
  13.   -- done?
  14.   os.pullEvent('redstone')
  15.   --
  16.  
  17.   pim.pushItem('north',1,1,1)
  18.   sleep(0.5)
  19.   pim.pullItem('north',2,1,1)
  20.   sleep(1)
  21.  
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement