Advertisement
Fer22f

Moonstone/Diamond Turtle Program

Mar 17th, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. -- Program made by Fer22f, thread at http://redd.it/20nas1
  2. -- Place a moonstone at the second slot and diamond at the first slot
  3.  
  4. rednet.open("right") -- I'm sorry, not sure what side the turtle's modem is at
  5.  
  6. while true do
  7.  
  8. local ID,message,distance = os.pullEvent("rednet_message")
  9.  
  10. if (message == "moonstone") then
  11.  turtle.select(1)
  12.  turtle.dig()
  13.  turtle.select(2)
  14.  turtle.place()
  15. elseif (message == "diamond") then
  16.  turtle.select(1)
  17.  turtle.dig()
  18.  turtle.select(2)
  19.  turtle.place()
  20. end
  21.  
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement