Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not turtle then
- error("Floppy ready: You can remove the computer")
- end
- shell.run('delete DecaMiner')
- if peripheral.getType("right") == "modem" then
- rednet.open("right")
- elseif peripheral.getType("left") == "modem" then
- rednet.open("left")
- else
- error("Error: no modem detected")
- end
- shell.run("pastebin get YER0NhWe startup")
- shell.run("label set DecaMinerV2")
- print(turtle.getFuelLevel())
- if turtle.getFuelLevel() < 1280 then
- if turtle.suckDown(16) then
- if turtle.refuel() then
- print("Refuel sucess")
- else
- error("Invalid item: check the chest, empty the turtle and reboot")
- end
- else
- error("Chest empty: check the chest and reboot")
- end
- end
- while true do
- rednet.broadcast("", "break")
- print("d1")
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement