Bonkie

Quarry turtle Wireless Control

May 15th, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. local m = peripheral.wrap("right")
  2. teller = 0
  3. while true do
  4.   teller = teller+1
  5.   print("Loop: "..teller)
  6.  
  7.   if(os.pullEvent("redstone")) then
  8.     on = redstone.getInput("left")
  9.     if(on==true) then
  10.       print("place")
  11.       m.transmit(99,99,"place")
  12.     elseif(on==false) then
  13.       print("pickup")
  14.       m.transmit(99,99,"pickup")  
  15.     end
  16.   end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment