Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("enc")
- local key = "thunderkey7"
- rednet.open("right")
- while true do
- event,p1,p2,p3 = os.pullEvent()
- if event == "rednet_message" then
- p2dec = enc.decrypt(p2,key)
- if p2dec == "dig" then
- turtle.digUp()
- elseif p2dec == "place" then
- turtle.placeUp()
- elseif p2dec == "back" then
- turtle.back()
- elseif p2dec == "forward" then
- turtle.forward()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement