Advertisement
FNCxPro

awesome

Nov 5th, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. os.loadAPI("enc")
  2. local key = "thunderkey7"
  3. rednet.open("right")
  4. while true do
  5. event,p1,p2,p3 = os.pullEvent()
  6. if event == "rednet_message" then
  7. p2dec = enc.decrypt(p2,key)
  8. if p2dec == "dig" then
  9. turtle.digUp()
  10. elseif p2dec == "place" then
  11. turtle.placeUp()
  12. elseif p2dec == "back" then
  13. turtle.back()
  14. elseif p2dec == "forward" then
  15. turtle.forward()
  16. end
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement