Advertisement
Guest User

Placer

a guest
Mar 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. function brick()
  2.   print("Moving Foward")
  3.   turtle.forward()
  4.   print("Place Down")
  5.   turtle.placeDown()
  6. end
  7.  
  8.  
  9.  
  10. function move()
  11.   redstone.setOutput("left",true)
  12.   sleep(2)
  13.   redstone.setOutput("left",false)
  14.   turtle.forward()
  15. end
  16.  
  17. function monitor()
  18.   rednet.open("right")
  19.   while true do
  20.  
  21.  
  22.     print("Loop")
  23.     local id, msg, dist = rednet.receive()
  24.     print("??")
  25.     print(msg)
  26.     func = loadstring(msg.."(...)")
  27.     setfenv(func, getfenv())
  28.     func()
  29.     rednet.send(id,"Done")
  30.   end
  31. end
  32. print("Start")
  33. monitor()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement