LivioBrunner

Framequarry

Sep 18th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. rednet.open("right")
  4. function clearInv()
  5.   for i = 1,16 do
  6.     turtle.select(17-i)
  7.     turtle.dropUp(turtle.getItemCount(17-i))
  8.   end
  9.   turtle.select(1)
  10. end
  11. function placeObj(message)
  12.     turtle.select(1)
  13.     turtle.place()
  14.     sleep(tonumber(message))
  15.     clearInv()
  16.     turtle.dig()
  17. end
  18. while true do
  19.     local senderId, message, distance = rednet.receive()
  20.     placeObj(message)
  21. end
Advertisement
Add Comment
Please, Sign In to add comment