Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sleep(2)
- fuelLvl = turtle.getFuelLevel()
- name = os.getComputerLabel()
- print("Name: "..name)
- print("Fuel: "..fuelLvl)
- rednet.open("right")
- rednet.broadcast(name..": "..fuelLvl)
- function backLeft()
- turtle.back()
- turtle.turnLeft()
- turtle.forward()
- end
- function backRight()
- turtle.back()
- turtle.turnRight()
- turtle.forward()
- end
- function cycleWire()
- if turtle.detectUp() then
- turtle.digUp()
- sleep(2)
- turtle.placeUp()
- elseif turtle.detectDown() then
- turtle.digDown()
- sleep(2)
- turtle.placeDown()
- else
- end
- end
- function upLevel()
- turtle.up()
- turtle.up()
- end
- function downLevel()
- turtle.down()
- turtle.down()
- end
- --MAIN--
- cycleWire()
- upLevel()
- cycleWire()
- backRight()
- cycleWire()
- downLevel()
- cycleWire()
- backLeft()
Advertisement
Add Comment
Please, Sign In to add comment