This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Someguy123's profile picture

[Crafting Script] Fast Red Cobblestone to Clay

Started by Someguy123, 08 January 2013 - 10:13 AM
Someguy123 #1
Posted 08 January 2013 - 11:13 AM
NOTE: This is my first script, there's bound to be bugs and problems.
Also, please be aware Red Cobblestone is only found with the Extrabiomes mod, which is included in most FeedTheBeast packs, including the Direwolf20 pack which I use.
I found a Red Cobblestone mountain…
Spoiler
Great start, unfortunately crafting clay out of it requires a lot of work (constantly filling buckets is annoying),
but what if the bucket filling was automated? WELL HERE IT IS.

So, what do I need first?
So, to start, you need any kind of crafty turtle. You will need to fill it's inventory EXACTLY like this, with NO OTHER ITEMS:
Spoiler
You will also need to have the turtle facing a chest, this means in front of the turtle, if you do this wrong, it'll simply spew clay onto the floor every few seconds.
The turtle must be placed over an infinite water source - in the current version of computercraft, you may need to place it 2 blocks above a water source instead of just 1 due to a bug found here: http://www.computerc...he-wrong-block/


But how do I get the script?
Simply open your turtle, and type:

pastebin get iNQkvzuW redcobble
then run redcobble with a correctly set up turtle, and it'll keep on running until it runs out of red cobblestone, while outputting clay to a chest directly infront (or on the floor if there's no chest)
Fizzgig #2
Posted 09 January 2013 - 05:37 AM
Wow. I found a red mountain ridge too. My first step was to write a turtle program to collect it for me. Then I was palnning to build a large elaborate machine to do the crafting. I didnt even concider using a turtle to craft it too. Thanks alot I'll be using this =)
Someguy123 #3
Posted 09 January 2013 - 09:01 AM
Wow. I found a red mountain ridge too. My first step was to write a turtle program to collect it for me. Then I was planning to build a large elaborate machine to do the crafting. I didn't even consider using a turtle to craft it too. Thanks alot I'll be using this =)
Yeah, I suppose if you were crazy you could use Liquid Transposers, pumps, and Automatic Crafting Tables, but this way is much cheaper and probably faster too.
Fizzgig #4
Posted 10 January 2013 - 09:40 AM
Ok well I had some time to put your code to use. Thought you should know that it needs to check if the chest is full. I did this quite easily by adding this line in the loop:

if turtle.getItemCount(7) ~= 0 then break end
that goes right after the turtle.drop() call.

I made some other changes too but since they change how your original code behaves I wont note them here. I just thought that the bug should be pointed out.

Thanks for the script. It's way easier to get clay now xD