
placeDir is the direction to place the block in. placeDir is a bit more difficult to understand.Possible directions: "forward","up","down","right","left","back". It is the direction the turtle travels to. t.placeRow( placeDir, block, travelDir, length).The following function places a row of blocks: If there is another block in the way, it will break it, unless it is the same type of block. This way you can later easily see which block must go in which slot. "stoneBrick = 1" at the beginning of the code. Here, ' block' is a number between 1 and 16. These will not be stopped by blocks or mobs.

So if sand falls down, it will dig as long as necessary. These will dig as long as there is a block in the way. Most of the function names are the same, but instead of writing "turtle." in front, you now write "t.". There are also some functions that combine default functions for ease of use. Before using the API you'll have to load it: os.loadAPI("t").Ī lot of the functions do the same as the default turtle API, except with additional checks.Open the computer you want to download the API into and type: ' pastebin get 0TnEBf2P t' (without the quotes) to download and save the API as 't'.The API will automatically be loaded for every Turtle.



