Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SLOT_OUTPUT = 16
- function intro()
- turtle.select(6)
- if turtle.getItemCount() > 0 then
- turtle.select(SLOT_OUTPUT)
- turtle.craft()
- turtle.dropDown()
- end
- turtle.select(6)
- turtle.drop()
- turtle.select(1)
- num = turtle.getItemCount()
- for i = 1, num do
- doCrafting()
- end
- end
- function safeSuck()
- while not turtle.suck() do
- sleep(0.5)
- end
- end
- function getPlanks()
- indices = {1, 2, 3, 5, 7, 9, 10, 11}
- for _, i in pairs(indices) do
- turtle.select(i)
- turtle.suckUp()
- if not turtle.getItemCount() == 64 then
- return false
- end
- end
- return true
- end
- function doCrafting()
- -- get creosote oil
- turtle.select(6)
- safeSuck()
- turtle.select(SLOT_OUTPUT)
- turtle.craft()
- turtle.dropDown()
- turtle.select(6)
- turtle.drop()
- end
- intro()
- while getPlanks() do
- for i = 1, 64 do
- doCrafting()
- end
- end
Add Comment
Please, Sign In to add comment