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

My Auto-Smelter | Auto-Cooker

Started by BlockSmith, 29 May 2014 - 09:17 AM
BlockSmith #1
Posted 29 May 2014 - 11:17 AM
http://turtlescripts.com/project/gjdhvh-Smelter

This is a Semi-Automatic smelter/cooker. It has been designed for use with coal and yeilds top fuel efficiency both in the furnace, and the turtle.

WARNING: Do not log off or leave the chunk to unload while mid-operation. The turtle will not save it's place.

Features:

- Compact 3 x 4 x 1 Design
- Cooks a minimum of 8 items.
- Determines how many coal required for how many items held
- Any item that can be cooked or smelted items under 8 in quantity are stored until they can be used
- 12 "Storage" slots to store jobs
- Auto refuel
- Automatically removes the items when done and places them in a chest for you
- Convenient looping menu
- Updates the user as it works


Step 1:

Simply clear a 3 x 4 x 1 area in a wall
Place Like so:
—Legend
Column: 1 2 3
Row 1: [_][_][_] -Empty = "[_]"
Row 2: [_][X][_] -Furnace = "[X]"
Row 3: [_][T][_] -Turtle = "[T]"
Row 4: [c][c][c] -Chest = "[c]"

Step 2:
pastebin get w1RtfqFd market

Step 3:
market get gjdi5a smelter y

Step 4:
Type "smelter" to run
Edited on 29 May 2014 - 09:23 AM
BlockSmith #2
Posted 01 June 2014 - 03:43 AM
Over 100 views and no comments, reviews, feedback, or put-downs at all? Come on guys, let me know how I did.
cptdeath58 #3
Posted 02 June 2014 - 11:21 PM
Dude, First of all, this is for people who have a mod that adds multiple-chests.
Second, there is no way that people using vanilla chests could build that so they got to go more expensive just to get those chests.
Third, the one not criticizing you program, this can be useful though especially in a quarry.
BlockSmith #4
Posted 02 June 2014 - 11:45 PM
Dude, First of all, this is for people who have a mod that adds multiple-chests.
Second, there is no way that people using vanilla chests could build that so they got to go more expensive just to get those chests.
Third, the one not criticizing you program, this can be useful though especially in a quarry.

From the way you've worded this post I assume you believe it was rude to post my link for a similar program under your post. If this is the case I apologize as it was not my intent to rub you the wrong way.

As for the 1, 2, 3 points. Could you elaborate what you mean? My program is designed to work with any chest you choose. However, if you are to use vanilla chests, it would require the use of a "trap chest". The setup picture uses ender\diamond chests simply for convenience reasons.

Thanks for the review :)/>

-Edit: To add easier support for vanilla I will update with a better chest formation.
Edited on 02 June 2014 - 09:47 PM
cptdeath58 #5
Posted 03 June 2014 - 12:09 AM
Dude, First of all, this is for people who have a mod that adds multiple-chests.
Second, there is no way that people using vanilla chests could build that so they got to go more expensive just to get those chests.
Third, the one not criticizing you program, this can be useful though especially in a quarry.

From the way you've worded this post I assume you believe it was rude to post my link for a similar program under your post. If this is the case I apologize as it was not my intent to rub you the wrong way.

As for the 1, 2, 3 points. Could you elaborate what you mean? My program is designed to work with any chest you choose. However, if you are to use vanilla chests, it would require the use of a "trap chest". The setup picture uses ender\diamond chests simply for convenience reasons.

Thanks for the review :)/>

-Edit: To add easier support for vanilla I will update with a better chest formation.
First, Actually not mad because you posted you program on my post, I really don't care (It was in your signature anyways, so you basically wasted your time writing it.)
Second, I'm going to elaborate what I meant.
Point 1: Nevermind, Did some research
Point 2:Same as Point 1
Point 3: This would be great if you had a quarry because while one turtle did the work, your autocooker could do the smelting.
[Note] You don't need to use "trap chest" for this.
BlockSmith #6
Posted 03 June 2014 - 12:21 AM
Ah, sorry for the confusion. I must have misunderstood your original post. Awesome then! Thanks for the review. Any ideas for improvements, etc?

-UPDATE: Thoughts of adding the ability to craft multiples of 9 into blocks for compressed storage.
cptdeath58 #7
Posted 03 June 2014 - 12:43 AM
Add a auto-build function
BlockSmith #8
Posted 03 June 2014 - 01:21 AM
You mean a function that sets up the initial chests, furnaces, etc?
cptdeath58 #9
Posted 03 June 2014 - 01:23 AM
A function that sets up the operation if you get what that means.
(if not, Yes set up everything needed to do the program)
BlockSmith #10
Posted 03 June 2014 - 04:01 AM
Gotcha. Sounds fun. I'll need to look into config files and persistence for the idea I have. Do you have any good references?
kreezxil #11
Posted 06 June 2014 - 05:06 PM
You mean a function that sets up the initial chests, furnaces, etc?

Yes! I was gonna suggest this as well.
kreezxil #12
Posted 06 June 2014 - 05:11 PM
Gotcha. Sounds fun. I'll need to look into config files and persistence for the idea I have. Do you have any good references?

Why do you have to do all of that? Just instruct the player to place their turtle facing a wall on the lower left side for instance where they want the turtle managed features to be. Then put behind it a chest with fuel to be used for the both the turtle and the furnaces. Inside the turtle perhaps in the first slot but chest type I and in the second slot put chest type II, and furnaces in the 3rd slot. Of course you will need a mining turtle for this. Then when the turtle starts the program with the autobuild option set to true, should be a command line option, it goes up and carves out the hole, the places the items, then gets fuel and fuels the furnace and itself and finally inserts itself in that matrix and commences operation.

Mind you, the above comments are without even looking at nor running your code, but soon as I start my next SkyFactory video, I'll try it out. :)/>

Cheers!
BlockSmith #13
Posted 06 June 2014 - 05:28 PM
Gotcha. Sounds fun. I'll need to look into config files and persistence for the idea I have. Do you have any good references?

Why do you have to do all of that? Just instruct the player to place their turtle facing a wall on the lower left side for instance where they want the turtle managed features to be. Then put behind it a chest with fuel to be used for the both the turtle and the furnaces. Inside the turtle perhaps in the first slot but chest type I and in the second slot put chest type II, and furnaces in the 3rd slot. Of course you will need a mining turtle for this. Then when the turtle starts the program with the autobuild option set to true, should be a command line option, it goes up and carves out the hole, the places the items, then gets fuel and fuels the furnace and itself and finally inserts itself in that matrix and commences operation.

Mind you, the above comments are without even looking at nor running your code, but soon as I start my next SkyFactory video, I'll try it out. :)/>

Cheers!

It'd be great to have my program featured in your video! I appreciate the suggestions. The reason for persistence check is simply for consistency in the program's abilities. I hadn't started messing with tArgs yet, but I suppose it's about time I do.
DD008 #14
Posted 07 June 2014 - 09:25 AM
Hey buddy i have seen you on the server with that in our base :D/>
cptdeath58 #15
Posted 20 January 2015 - 10:07 PM
Back guys, If you need help with the auto-build functions.
1. First, seperate your turtles slots initially to have the certain items.
EX. Slot 1 for chests
slot 2 for furnaces.
etc.
2.Set an initialization point(The point where your turtle starts building Ex. Top-left of a 2x3 area)
3.Setup your route. (Ex. go down row 1 of 2,1,1 and place furnaces.)
4.Add a fueling limit to start. (Gotta have enough fuel to do the op.)
5.You should be good to go.
Here is my own script of the Auto-build function in my auto-forge to help as an example:
[list]
[*]	
[color=#000000]function buildForge()[/color]
[*]	
[color=#000000]if not turtle.detectUp() then[/color]
[*]	
[color=#000000]  turtle.turnLeft()[/color]
[*]	
[color=#000000]  turtle.forward()[/color]
[*]	
[color=#000000]  turtle.select(1) <--- selects initial resource.[/color]
[*]	
[color=#000000]  local hoppers = turtle.getItemCount(1) <--- Slot 1 is used for hoppers.[/color]
[*]	
[color=#000000]  local furnaces = turtle.getItemCount(2) <--- Slot 2 is used for furnaces.[/color]
[*]	
[color=#000000]  local chests = turtle.getItemCount(3) <--- Slot 3 is used for chests.[/color]
[*]	
[color=#000000]  if hoppers == 0 then <--- check for hoppers and ensure there is enough.[/color]
[*]	
[color=#000000]   repeat[/color]
[*]	
[color=#000000]	term.setCursorPos(1,2)[/color]
[*]	
[color=#000000]	term.write( "Please put a hopper in slot 1" )[/color]
[*]	
[color=#000000]	local hoppers = turtle.getItemCount(1)[/color]
[*]	
[color=#000000]	sleep(1)[/color]
[*]	
[color=#000000]	term.clear()[/color]
[*]	
[color=#000000]   until hoppers > 0[/color]
[*]	
[color=#000000]  end[/color]
[*]	
[color=#000000]  if furnaces == 0 then <--- check for furnaces and ensure there is enough.[/color]
[*]	
[color=#000000]   repeat[/color]
[*]	
[color=#000000]	term.setCursorPos(1,3)[/color]
[*]	
[color=#000000]	term.write( "Please put a furnace in slot 2" )[/color]
[*]	
[color=#000000]	local furnaces = turtle.getItemCount(2)[/color]
[*]	
[color=#000000]	sleep(1)[/color]
[*]	
[color=#000000]	term.clear()[/color]
[*]	
[color=#000000]   until furnaces > 0[/color]
[*]	
[color=#000000]  end[/color]
[*]	
[color=#000000]  if chests == 0 then <--- check for chests and ensure there is enough.[/color]
[*]	
[color=#000000]   repeat[/color]
[*]	
[color=#000000]	term.setCursorPos(1,4)[/color]
[*]	
[color=#000000]	term.write( "Please put a chest in slot 3" )[/color]
[*]	
[color=#000000]	local chests = turtle.getItemCount(3)[/color]
[*]	
[color=#000000]   until chests > 0[/color]
[*]	
[color=#000000]  end[/color]
[*]	
[color=#000000]  turtle.placeUp() <--- places object and begins route.[/color]
[*]	
[color=#000000]  turtle.select(2) <--- selects second resource to be used.[/color]
[*]	
[color=#000000]  turtle.back()[/color]
[*]	
[color=#000000]  turtle.place() <---places second resource.[/color]
[*]	
[color=#000000]  turtle.select(3) <--- selects 3rd resource.[/color]
[*]	
[color=#000000]  turtle.up()[/color]
[*]	
[color=#000000]  turtle.turnLeft()[/color]
[*]	
[color=#000000]  turtle.back()[/color]
[*]	
[color=#000000]  turtle.place() <--- places last resource[/color]
[*]	
[color=#000000]  turtle.select(1) <--- reselects first slot to begin Auto-forging.[/color]
[*]	
[color=#000000]end[/color]
[*]	
[color=#000000]end[/color]
[/list]

[EDIT] Sorry about that weird color thing, just ignore it.
Edited on 24 January 2015 - 10:36 PM