Posted 19 July 2015 - 12:30 AM
Annoyed by 'turtle.digUp()' and 'turtle.inspectDown()', ect?
Wish they were 'turtle.dig("top")' or 'turtle.inspect("bottom")' ?
You've come the the right place!
Turtle Tweaks
Lets you pass sides to the turtle functions!
[attachment=2331:Turtle Tweaks API.png]
The API doesn't change the behavior of the default functions,
so it won't break existing scripts!
Download
http://pastebin.com/5fXEWeDW
New Functions:
Google '<function> computercraft' to find the CC Wiki entry for each function
I'm not going to link them all :P/>
Valid Sides for most functions (pass as a string):
Valid Sides for 'turtle.equip'
Valid Directions:
Passing an invalid side will throw the error '<side you gave> is not a valid side'
'turtle.move()' will error with 'Not a vaild side or direction'
All original functions will work.
For example, 'turtle.dig("front")' is the same as 'turtle.dig()'
Wish they were 'turtle.dig("top")' or 'turtle.inspect("bottom")' ?
You've come the the right place!
Turtle Tweaks
Lets you pass sides to the turtle functions!
[attachment=2331:Turtle Tweaks API.png]
The API doesn't change the behavior of the default functions,
so it won't break existing scripts!
Download
http://pastebin.com/5fXEWeDW
New Functions:
Spoiler
See below for valid sides and directions
turtle.move( direction or side )
turtle.place( side )
turtle.dig( side )
turtle.detect( side )
turtle.inspect( side )
turtle.suck( side )
turtle.compare( side )
turtle.attack( side )
turtle.drop( side )
turtle.equip( side )
Google '<function> computercraft' to find the CC Wiki entry for each function
I'm not going to link them all :P/>
Valid Sides for most functions (pass as a string):
front,up,down
Valid Sides for 'turtle.equip'
left,right
Valid Directions:
forward,left,right,back,up,down
Note: left and right turn the turtle, and don't require fuel.Passing an invalid side will throw the error '<side you gave> is not a valid side'
'turtle.move()' will error with 'Not a vaild side or direction'
All original functions will work.
For example, 'turtle.dig("front")' is the same as 'turtle.dig()'
Edited on 18 July 2015 - 11:11 PM