Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- event, param1, param2 = os.pullEvent()
- if event == "rednet_message" then
- local message = param2
- if message == "You are authorised to proceed" then
- print ("Message Received")
- print ("Going FORWARD")
- turtle.attack()
- turtle.attack()
- turtle.forward()
- sleep(1)
- turtle.attack()
- turtle.attack()
- turtle.forward()
- else
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement