NMDanny

Engineering turtle

Jul 16th, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local modem =  peripheral.wrap("right")
  2. modem.open(6421)
  3. local function transmit(msg)
  4.     modem.transmit(6421,6421,msg)
  5. end
  6.  
  7.    
  8. while true do
  9.     transmit("breakquarry")
  10.     sleep(0.8)
  11.     transmit("break_and_placemark")
  12.         sleep(6)
  13.     turtle.down()
  14.     turtle.attack()
  15.     turtle.up()
  16.     sleep(4)
  17.     transmit("placequarry")
  18.     print("Startup procedure has been finished")
  19.     print("Press anything to debug the program")
  20.     read()
  21. end
Advertisement
Add Comment
Please, Sign In to add comment