Jump to content




[1.3] Things I would like to see in turtles


  • This topic is locked This topic is locked
3 replies to this topic

#1 Astrognome

  • New Members
  • 19 posts
  • LocationRight behind you

Posted 06 March 2012 - 04:23 PM

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

#2 Liraal

  • New Members
  • 477 posts
  • LocationPoland

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 Astrognome

  • New Members
  • 19 posts
  • LocationRight behind you

Posted 06 March 2012 - 06:28 PM

View PostLiraal, 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
I know there are APIs. I actually created one for personal use. But it should be something included in stock CC.

#4 giodamelio

  • Members
  • 3 posts

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users