Posted 18 February 2017 - 11:04 PM
I wrote a program that simply crafts a particular recipe for you continuously. I wanted it to be easy to use and simple to chain together.
It then crafts as many times, leaving at least 1 recipe in place (in case you want to rearrange it)
All crafted items are spit out the front.
If it could spit the products out the front it waits for 1 second before trying to fill up and craft again.
Otherwise it only waits for 10 seconds under the assumption that the inventory in front of it is full and needs to be piped elsewhere.
It only pulls in items it needs for the recipe, and it can work with either jabba barrels or chests (anything that openperipherals shows has the getAllStacks and pushItemIntoSlot methods). Thus you can have 1 chest that multiple turtles feed from trying to craft their own thing from them.
To get this script do
pastebin get gshAyG5X craft
or download it directly here
http://pastebin.com/gshAyG5X
- Place chest/jabba barrel that will hold all the items needed for crafting
- Place crafty turtle on any side
- Place items in turtle's inventory (top-left 3x3) so that crafting it produces the item you want.
- Run "craft <side>"
It then crafts as many times, leaving at least 1 recipe in place (in case you want to rearrange it)
All crafted items are spit out the front.
If it could spit the products out the front it waits for 1 second before trying to fill up and craft again.
Otherwise it only waits for 10 seconds under the assumption that the inventory in front of it is full and needs to be piped elsewhere.
It only pulls in items it needs for the recipe, and it can work with either jabba barrels or chests (anything that openperipherals shows has the getAllStacks and pushItemIntoSlot methods). Thus you can have 1 chest that multiple turtles feed from trying to craft their own thing from them.
To get this script do
pastebin get gshAyG5X craft
or download it directly here
http://pastebin.com/gshAyG5X