Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("Items in dieser reihenfolge in die Turtle:")
- print("1. solar panel,2. eu consumer,3. energy bridge,4. bc producer,5. quarry,6. enderchest,7. gate reader")
- function placeSlot(slot)
- turtle.select(slot)
- turtle.place()
- end
- function digSlot(slot)
- turtle.select(slot)
- turtle.dig()
- end
- function placeQuarry()
- placeSlot(1)
- turtle.down()
- placeSlot(2)
- turtle.down()
- placeSlot(3)
- turtle.down()
- placeSlot(4)
- turtle.down()
- placeSlot(5)
- turtle.down()
- placeSlot(6)
- turtle.select(7)
- turtle.placeUp()
- end
- function digQuarry()
- turtle.select(7)
- turtle.digUp()
- digSlot(6)
- turtle.up()
- digSlot(5)
- turtle.up()
- digSlot(4)
- turtle.up()
- digSlot(3)
- turtle.up()
- digSlot(2)
- turtle.up()
- digSlot(1)
- end
- while true do
- if peripheral.getType("top")=="gateReader" then
- g=peripheral.wrap("top")
- while g.get()["Work Done"]==false do
- sleep(10)
- end
- digQuarry()
- for i=1, 9 do
- turtle.dig()
- turtle.forward()
- end
- end
- placeQuarry()
- end
Add Comment
Please, Sign In to add comment