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

Turtle programming using blocks in the minecraft world

Started by Lion4ever, 22 July 2015 - 04:45 PM
Lion4ever #1
Posted 22 July 2015 - 06:45 PM
Yesterday i saw this Thread Ultimate Turtle and i really liked the idea so I wrote a programm that lets a turtle have actions depending on the blocks it encounters.

Cobble makes the turtle turn left.
Planks make the turtle turn right.
Logs means there is a tree to chop down.
Wool selects and inventory slot (by color)
Workbenches call turtle.craft
Sandstone puts items of the same kind in the chest.

and many more…

SpoilerThis picture shows my tree farm (right) with a auto charcoal smelter (middle), a torch crafter (left) and a bit of sorted storage (bottom).

pastebin get p7UFC50k blockTurtle
1wsx10 #2
Posted 20 February 2016 - 09:30 AM
cool
Lupus590 #3
Posted 20 February 2016 - 11:38 AM
your picture isn't showing
Edited on 21 October 2016 - 11:34 AM
renjestoo #4
Posted 21 October 2016 - 12:50 PM
thats a nice Program there, but can you explain how to use it correctly?
I don't really understand the system of this program.

Do I need to put down the blocks? if yes, can you give me a list with all the different blocks the turtle can detect and which functions they have?
if no, does the turtle need to have something in his inventory to build a system like this?
Bomb Bloke #5
Posted 22 October 2016 - 03:48 AM
On each movement, the turtle checks for blocks above / below / in front of it. If it finds a match for any of the blocks listed in the "actions" table then it performs the code associated with that block within that table.

So yes, you put down the blocks, and the turtle uses those to determine your instructions to it.