Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Config:
- -- Redstone:
- barrelUp = "back" -- Barrel with MFR Dirt
- barrelDown = "left" -- Barrel with Vanilla Dirt
- -- Slot Turtle:
- importSlot = 1
- exportSlot = 16
- -- Prog:
- term.clear()
- term.setCursorPos(1,1)
- print("Dirt Breaker")
- while true do
- sleep(1)
- if rs.getInput(barrelUp) and not rs.getInput(barrelDown) then
- changeID = true
- elseif not rs.getInput(barrelUp) then
- changeID = false
- elseif rs.getInput(barrelDown) then
- changeID = false
- end
- while changeID do
- term.setCursorPos(1,3)
- term.clearLine()
- print("Work: ON")
- turtle.select(importSlot)
- turtle.suckUp(1)
- if turtle.getItemCount(importSlot) == 0 then -- Security
- changeID = false
- end
- turtle.place()
- turtle.select(exportSlot)
- turtle.dig()
- turtle.dropDown()
- end
- term.setCursorPos(1,3)
- term.clearLine()
- print("Work: OFF")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement