Advertisement
Grayboy3125

DHD

Sep 1st, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. chest = peripheral.wrap("top")
  2. mon = peripheral.wrap("left")
  3.  
  4. rednet.open("back")
  5.  
  6. mon.clear()
  7. mon.setCursorPos(1,1)
  8. mon.write("Slot 1")
  9.  
  10. while true do
  11. event, side, X, Y = os.pullEvent("monitor_touch")
  12.  
  13. if X >= 1 and X <= 6 and Y == 1 then
  14. local DEST = 1
  15. rednet.send([ID],"go")
  16. end
  17.  
  18. id, message = rednet.receive()
  19. if message == "push" then
  20. chest.pushItem("up",1,1)
  21.  
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement