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

Out of obsidian?

Started by Rieu, 19 May 2015 - 12:47 AM
Rieu #1
Posted 19 May 2015 - 02:47 AM
Hey guys. I am playing Feed the Beast Infinity, and I was running out of obsidian all the time. I wrote this program so after I make the obsidian, a mining turtle harvests it for me. Saves on those diamonds :)/> It currently requires half manual labor, and half turtle. I will keep working on it, and hopefully get it fully automatic as well as size adjustable.

You can download it using pastebin get 10Za8Bvz <your name for program>

Enjoy!


Spoiler–Author: Ferrwolf
– This program is designed for user to place lava in two 2x18 areas
– connected by one block removed in the center on the end where the user started digging.
– Pour water on lava and run turtle program. Instant obsidian. :)/>/>/>/>
– this is an example ==================
– ==================
– =
– ==================
– ==================
– Each equal sign is where the blocks should be removed and lava placed.
– Turtle mines the first row of obsidian
for i=0,18 do
while not turtle.forward() do
turtle.attack()
turtle.dig()
end
end
– Sets the turtle up to mine the second row
turtle.turnRight()
turtle.dig()
while not turtle.forward() do
turtle.attack()
turtle.dig()
end
turtle.turnRight()
– Turtle mines the second row
for i=0,17 do
while not turtle.forward() do
turtle.attack()
turtle.dig()
end
end
– Turtle moves the the second plot and prepares to mine the 3rd row
turtle.turnLeft()
turtle.dig()
while not turtle.forward() do
turtle.attack()
turtle.dig()
end
turtle.dig()
while not turtle.forward() do
turtle.attack()
turtle.dig()
end
turtle.turnLeft()
– Turtle mines the 3rd row
for i=0,17 do
while not turtle.forward() do
turtle.attack()
turtle.dig()
end
end
– Turtle prepares to mine 4th row
turtle.turnRight()
turtle.dig()
while not turtle.forward() do
turtle.attack()
turtle.dig()
end
turtle.turnRight()
– Turtle mines the 4th row
for i=0,17 do
while not turtle.forward() do
turtle.attack()
turtle.dig()
end
end
– Returns turtle to starting point
turtle.turnRight()
for i=0,3 do
turtle.forward()
end
turtle.turnRight()
turtle.back()
print("Complete!")
Edited on 21 May 2015 - 04:41 AM
Abahu #2
Posted 20 May 2015 - 02:03 AM
You should put your code between spoilers. Makes it easier for everyone. Looks cool though, I found that I was running out constantly as well.
Rieu #3
Posted 21 May 2015 - 06:40 AM
You should put your code between spoilers. Makes it easier for everyone. Looks cool though, I found that I was running out constantly as well.

Thank you for the advice. I did as you said. I am currently working to make it more automated (you don't place lava and water the turtle does all that), I will post here where to find it when done.
Rieu #4
Posted 22 May 2015 - 06:00 PM
The full program can be found at http://www.computercraft.info/forums2/index.php?/topic/23325-obsidian-generator/