Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- GateReader Trutle for Chunk-eating Frame Quarry
- -- Slot 1: Mineing Well
- -- Slot 2: 2x place holder item (ie. sticks)
- -- All other slots: place holder items
- -- Activates upon redstone signal from the top.
- -- Sends "busy" redstone signal out the back while miner is busy
- redstone.setOutput("back", false)
- sleep(1)
- function deploy()
- turtle.select(1)
- turtle.placeDown()
- redstone.setOutput("back", true)
- -- Turn on signal to tell master that miner is busy
- turtle.select(2)
- if turtle.getItemCount(1) == 0 then
- turtle.transferTo(1, 1)
- end
- print("Mining Well Deployed")
- end
- function getMiner()
- turtle.select(1)
- turtle.transferTo(2)
- -- make sure slot 1 is empty no matter what
- turtle.drop()
- turtle.digDown()
- print("Mining Well Retrieved")
- redstone.setOutput("back", false)
- end
- print("Quarry Turtle Ready")
- while true do
- event = os.pullEvent("redstone")
- sleep(0.2)
- if redstone.getInput("top") == true then
- deploy()
- while peripheral.call("right", "get")["Work Done"] == false do
- sleep(5)
- end
- print("Mining Well Done Digging")
- getMiner()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement