Posted 05 March 2012 - 07:14 AM
ok this is my first post so be nice…
so i looked everywhere and couldnt find a pathfollowing turtle script so i decided to make one XD so here it is so far
Features
- Follows a curtain path using minimal code and time
- Jumps up to 5 blocks up
- Able to go directly down if no blocks are present underneath
- Travels until broken or stuck
Use like this (numbers = block a = air t = turtle)
A1AA
2AAA T
AAAA
3AAA
A4AA
this will make the turte stop at 2 and 1 will make it turn left and it will stop at 4 and 3 will make it turn left again and it looks the same for right turns but just flipped XD
just put the t3 file in your turtle apis folder and put this in your turtle programs folder XD
t3 file /
http://www.mediafire.com/download.php?ca65jotbt257ocg
so i hope you like it and leave any suggestions and its WIP so please report the bugs
know problems
- when it has a block on either side it will sometimes turn.
- cant turn while going up.
so i looked everywhere and couldnt find a pathfollowing turtle script so i decided to make one XD so here it is so far
Features
- Follows a curtain path using minimal code and time
- Jumps up to 5 blocks up
- Able to go directly down if no blocks are present underneath
- Travels until broken or stuck
Use like this (numbers = block a = air t = turtle)
A1AA
2AAA T
AAAA
3AAA
A4AA
this will make the turte stop at 2 and 1 will make it turn left and it will stop at 4 and 3 will make it turn left again and it looks the same for right turns but just flipped XD
just put the t3 file in your turtle apis folder and put this in your turtle programs folder XD
t3 file /
http://www.mediafire.com/download.php?ca65jotbt257ocg
Spoiler
--Bouncy's pathFollower
--DW just a beta
function path()
if turtle.detectDown() == false then --down
turtle.down()
end
if t3.detectLeft() == true then --right
turtle.turnRight()
end
if t3.detectRight() == true then --left
turtle.turnLeft()
end
if turtle.detect() == true then --up
turtle.up()
t3.forwardDist(1)
end
if turtle.detect() == true then --up
turtle.up()
t3.forwardDist(1)
end
if turtle.detect() == true then --up
turtle.up()
t3.forwardDist(1)
end
if turtle.detect() == true then --up
turtle.up()
t3.forwardDist(1)
end
if turtle.detect() == true then --up
turtle.up()
t3.forwardDist(1)
end
if turtle.detectDown() == true then
t3.forwardDist(1)
end
end
x = 1
while x == 1 do
path()
end
know problems
- when it has a block on either side it will sometimes turn.
- cant turn while going up.