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

Help w. program for Mining&Melee Turtle [M.Turtle, Lua]

Started by Woltox, 19 December 2012 - 04:48 AM
Woltox #1
Posted 19 December 2012 - 05:48 AM
Hello, anyone who can help me with a script/program that I can use on my Mining Turtles
SpoilerWant;
1 Mining Turtle to mine 200block farward (tunnel), 2hight, 3widt;
Refuel at X-Y-Z cords(chest with charcoal)
Empty cobblestone at X-Y-Z cords(chest)
Empty rest(minerals/other) at X-Y-Z cords(chest)

When the turtle is done, It shall go back to where It started.

[Info] Gonna use example; 3Mining Turtles in width, 2 Mining Turtles in hight.

Extra function, for those who can Lua (and help stupid people like me xD)
Place torch every X block, and refuel with torches on X-Y-Z cords(chest)
Connected to a computer;
Get info like "Turtle ID XX Refueling" "Turtle ID XX Getting Torches" "Turtle ID Job Completed"

Simplefied explanation (or not)
Spoilerturtle.tunnel.200
If Turtle.inventory.full
empty turtle.inventory
if cobblestone.inventory empty <X-Y-Z>
If not cobblestone.inventory empty <X-Y-Z>
turtle.refuel at <X-Y-Z>
if turtle.refueled continiue tunnel
if turtle.tunnel.200 go back to start point


Hello, I also want a script/program with the Melee turtle.

Is it possible to get it to patroll an area for mobs?
remiX #2
Posted 19 December 2012 - 05:53 AM
Show us what you can actually do. You can't just expect us to make the code for you, although some of us do, but still. Try it out for yourself and show us what you can do.
Woltox #3
Posted 19 December 2012 - 07:28 AM
As I wrote in the thread, luas not my thing, as you see here, for my "code" to mine 2hight, 3width, infinite forward
PasteBin
Have no idea, how to get it to go to certain cordinates.
ChunLing #4
Posted 19 December 2012 - 01:01 PM
Check the Turtle Programs forum, there are plenty of programs like this.

For a mobgrinder, it's best to design a conventional mob grinder and put your turtle in the collection point at the bottom where it can attack the mobs that come to it and suck their drops. There aren't many programs for this posted, because the programming side is rather trivial.