Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Miner receiving
- rednet.open("right")
- i = 0
- while true do
- event, par1, par2 = os.pullEvent()
- if event=="rednet_message"then
- if par1 =="go" then
- while par1=="go" do
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.turnLeft()
- turtle.dig()
- turtle.up()
- turtle.dig()
- turtle.turnRight()
- turtle.turnRight()
- turtle.dig()
- turtle.down()
- turtle.dig()
- turtle.turnLeft()
- i = i+ 8
- end
- end
- if par1=="stop" then
- print("Mining has been stopped by a user")
- end
- end
- end
- computer sending information
- rednet.open("left")
- rednet.send(3,"go")
- input = read()
- if input == "stop" then rednet.send(3,"stop")
- end
Advertisement
Add Comment
Please, Sign In to add comment