Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mining()
- turtle.dig()
- turtle.digUp()
- turtle.digDown()
- end
- rednet.open("left")
- local jalan = true
- while true do
- if jalan then
- mining()
- end
- senderID, message, protocol = rednet.receive(0.5)
- print(message)
- if message ~= nil then
- if message == "stop" then
- jalan = false
- elseif message == "start" then
- jalan = true
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement