turtle.setPos(x,y,z) - would set the relative position of the turtle. This would be saved on a per-turtle basis, and would be persistent, and would be affected by the movements of the turtle.
turtle.getPos("x/y/z") - returns coordinates base on what axis you give it.
turtle.examine("front/back/left/right/up/down") - returns block type, if no type available, then return ID. Require some sort of eye attachment?
turtle.detectLeft() - Self explanatory. good for pathfinding so you don't have to turn every block to see if there's something next to it.
turtle.detectRight() - see above
[1.3] Things I would like to see in turtles
Started by Astrognome, Mar 06 2012 04:23 PM
3 replies to this topic
#1
Posted 06 March 2012 - 04:23 PM
#2
Posted 06 March 2012 - 05:57 PM
well, there are APIs that do just that (maybe except for the examining) but they all give relative coords and requite user input for actual ones. casper hinted that there may be a way to locate them in 1.31 though
#3
Posted 06 March 2012 - 06:28 PM
Liraal, on 06 March 2012 - 05:57 PM, said:
well, there are APIs that do just that (maybe except for the examining) but they all give relative coords and requite user input for actual ones. casper hinted that there may be a way to locate them in 1.31 though
#4
Posted 08 March 2012 - 10:39 PM
There should also be somthing to tell what blocks are in your inventory. Somthing like
getID("<slot 1-9>"): Just returns the ID of the block in the slot you specify.
getID("<slot 1-9>"): Just returns the ID of the block in the slot you specify.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


This topic is locked









