Posted 19 March 2016 - 04:00 PM
So, this is actually my first program I have posted, so please give any feedback. :)/> I just created it to make turtles easier to use. The Turtle tracking system also come with a built-in help menu, with over 6 pages of help, just type help(). Link on Pastebin: http://pastebin.com/5YjWxst9.
Turtle Coordinates:
Turtle Coordinates:
turtle.setCoords(x,y,z,direction)
--sets the turtle's coordinates. You only have to use this command once.
turtle.getCoords()
--Gets the turtle's current coordinates.
To control the turtle:
turtle.move("direction", amount)
--This moves the turtle in the direction. amount is optional. Supports forward, back, left, right, up, and down.
turtle.turn("direction")
--This turns the turtle in the direction. Supports left, right, and back.
To add, remove, list, and have the turtle go to waypoints:
setWaypoint(X, Y, Z, "name", yLimit)
--Sets a waypoint at x, y, z with a name of name. The yLimit, optional, is how far down/up the turtle should be before moving horizontally. Useful if the waypoint is under something.
deleteWaypoint("name")
--Deletes the waypoint specified
turtle.gotoWaypoint("name")
--The turtle goes to the waypoint. You may need to setup multiple waypoints as the turtle might get stuck on a block.
listWaypoints()
--lists all of the available waypoints.
Edited on 22 March 2016 - 12:28 AM