Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --function declarations
- function Deposit()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.drop()
- os.reboot()
- end
- function Craft63()
- print("crafting with 63")
- turtle.transferTo(1, 7)
- turtle.transferTo(2, 7)
- turtle.transferTo(3, 7)
- turtle.transferTo(5, 7)
- turtle.transferTo(6, 7)
- turtle.transferTo(7, 7)
- turtle.transferTo(9, 7)
- turtle.transferTo(10, 7)
- turtle.transferTo(11, 7)
- if turtle.getItemCount(16) >= 1 then
- turtle.drop()
- end
- turtle.select(4)
- turtle.craft(7)
- Deposit()
- end
- function Craft45()
- print("crafting with 45")
- turtle.transferTo(1, 5)
- turtle.transferTo(2, 5)
- turtle.transferTo(3, 5)
- turtle.transferTo(5, 5)
- turtle.transferTo(6, 5)
- turtle.transferTo(7, 5)
- turtle.transferTo(9, 5)
- turtle.transferTo(10, 5)
- turtle.transferTo(11, 5)
- if turtle.getItemCount(16) >= 1 then
- turtle.drop()
- end
- turtle.select(4)
- turtle.craft(5)
- Deposit()
- end
- function Craft18()
- print("crafting with 18")
- turtle.transferTo(1, 2)
- turtle.transferTo(2, 2)
- turtle.transferTo(3, 2)
- turtle.transferTo(5, 2)
- turtle.transferTo(6, 2)
- turtle.transferTo(7, 2)
- turtle.transferTo(9, 2)
- turtle.transferTo(10, 2)
- turtle.transferTo(11, 2)
- if turtle.getItemCount(16) >= 1 then
- turtle.drop()
- end
- turtle.select(4)
- turtle.craft(2)
- Deposit()
- end
- function Craft9()
- print("crafting with 9")
- turtle.transferTo(1, 1)
- turtle.transferTo(2, 1)
- turtle.transferTo(3, 1)
- turtle.transferTo(5, 1)
- turtle.transferTo(6, 1)
- turtle.transferTo(7, 1)
- turtle.transferTo(9, 1)
- turtle.transferTo(10, 1)
- turtle.transferTo(11, 1)
- if turtle.getItemCount(16) >= 1 then
- turtle.drop()
- end
- turtle.select(4)
- turtle.craft(1)
- Deposit()
- end
- function FailEverything()
- turtle.drop()
- turtle.turnLeft()
- turtle.turnLeft()
- os.reboot()
- end
- --end functions declarations
- --run code
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.select(16)
- turtle.suck(63)
- if turtle.getItemCount() == 63 then
- Craft63()
- elseif turtle.getItemCount() >= 45 then
- Craft45()
- elseif turtle.getItemCount() >= 18 then
- Craft18()
- elseif turtle.getItemCount() >= 9 then
- Craft9()
- else
- FailEverything()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement