Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Variables
- local BlocksDug = 1
- rednet.open("left")
- local senderId, TunnelLenght, protocol = rednet.receive("excavatorCom")
- --Functions
- term.clear()
- term.setCursorPos(1,1)
- print("Creating a tunnel of"..TunnelLenght.."blocks")
- for BlocksDug=1,TunnelLenght do
- BlocksDug = BlocksDug + 1
- for FuelSlot=1,16 do
- select(FuelSlot)
- if turtle.refuel(0) then
- turtle.refuel()
- end
- end
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- end
- --Main Stuff
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement