Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local listenProtocol = "miner"
- local modem = "right"
- local chest = "up"
- rednet.open(modem)
- while true do
- local n, message, protocol = rednet.receive()
- if protocol == listenProtocol then
- if message == "place" then
- turtle.place()
- elseif message == "dig" then
- turtle.dig()
- elseif message == "go" then
- turtle.forward()
- elseif message == "clear" then
- for i=1,16,1 do
- turtle.select(i)
- turtle.dropUp()
- end
- turtle.select(1)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement