Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- If chunk unloads or server resets, this will reorient to the proper facing and makes sure the inv is clear
- function firstRun()
- while turtle.detectDown() == false do
- sleep(1)
- print(turtle.down())
- end
- while redstone.getInput("left") == false do
- print(turtle.turnLeft())
- end
- end
- function checkStart()
- if redstone.getInput("back") then
- runStart()
- else
- sleep(5)
- end
- end
- function runStart()
- turtle.select(1)
- turtle.suckDown(4)
- runFirstFour()
- turtle.suckDown(4)
- runSecondFour()
- turtle.suckDown(4)
- runThirdFour()
- turtle.suckDown(4)
- runFourthFour()
- end
- function runFirstFour()
- turtle.up()
- turtle.up()
- turtle.up()
- turtle.up()
- turtle.up()
- for a=1,4 do
- getCraft()
- turtle.dropUp(1)
- end
- turtle.down()
- turtle.down()
- turtle.down()
- turtle.down()
- end
- function runSecondFour()
- turtle.up()
- turtle.up()
- turtle.up()
- for a=1,4 do
- getCraft()
- turtle.up()
- turtle.dropUp(1)
- turtle.down()
- end
- turtle.down()
- turtle.down()
- turtle.down()
- end
- function runThirdFour()
- turtle.up()
- turtle.up()
- for a=1,4 do
- getCraft()
- turtle.up()
- turtle.up()
- turtle.dropUp(1)
- turtle.down()
- turtle.down()
- end
- turtle.down()
- turtle.down()
- end
- function runFourthFour()
- turtle.up()
- for a=1,4 do
- getCraft()
- turtle.up()
- turtle.up()
- turtle.up()
- turtle.dropUp(1)
- turtle.down()
- turtle.down()
- turtle.down()
- end
- turtle.down()
- end
- function getCraft()
- turtle.select(2)
- turtle.suck(1)
- turtle.select(3)
- print(turtle.craft(1))
- turtle.turnRight()
- end
- firstRun()
- while true do
- runStart()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement