Advertisement
Guest User

startup

a guest
Apr 5th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. redstone.setBundledOutput("right",0)
  2.  
  3. while true do
  4. if (colors.test(redstone.getBundledInput("right"),colors.white)) then
  5. peripheral.call("bottom","pushItem","up",1,1)
  6. redstone.setAnalogOutput("left",1)
  7. end
  8. if (colors.test(redstone.getBundledInput("right"),colors.black)) then
  9. peripheral.call("bottom","pullItem","up",1,1,1)
  10. redstone.setAnalogOutput("left",0)
  11. end
  12. sleep(5)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement