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!
– 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!")
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