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

Ender Quarry Builder

Started by Vanhal, 11 April 2014 - 06:17 PM
Vanhal #1
Posted 11 April 2014 - 08:17 PM
Hi all,

This is my second attempt at creating a script for a turtle, the first one failed horribly!
If you are not familiar with the ender quarry it uses fences to mark out the area to be mined and has an almost limitless range. So I created a script to set up the fence boundary for me!

The code is available here: http://pastebin.com/21VNfWJ6

And a video on how it works (as well as how the ender quarry works) is below:

[media]http://www.youtube.com/watch?v=hkoA6Ynz6iI[/media]


I'm sure there is a load of improvements that can be made, originally I wanted the turtle to craft the fences itself from wood in it's inventory, but I think that's not possible.
Xarlas #2
Posted 13 June 2014 - 04:42 PM
It is Possible that the Trutle crafts its fences itsself.
You need a Crafty Turtle.
Here can you see how the Command has to be used:
http://computercraft...ki/Turtle.craft
valithor #3
Posted 14 June 2014 - 05:37 PM
For the sand problem that you mentioned you could use something like
function moveFoward()
  while turtle.forward()~=true do
    turtle.attack()
    turtle.dig()
  end
end

This would try to move forward then if it doesn't move it will try to first attack to see if a mob is blocking it and then try to dig. It will continue to cycle through attacking and digging until it moves. This would make it to where sand would not mess up the quarry.
TheGreekMan2 #4
Posted 18 June 2014 - 12:35 AM
Hey friend I also made a program very similar to this and i think we could help each other i made a forum post about mine as well
i ran your program works pretty well too :P/>

Pastebin: http://pastebin.com/KBK6nYyx

Let me know about anything i could add and how you like it :)/>