Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open( "right" )
- local state = "false"
- local function checkState()
- while true do
- local id, msg, dis = rednet.recieve()
- state = msg
- end
- end
- while true do
- print( os.getComputerID )
- checkState()
- if state == "true" then
- if turtle.detect() then
- turtle.dig()
- turtle.dropUp()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment