Jump to content




A few basic turtle functions


2 replies to this topic

#1 Overthot

  • New Members
  • 2 posts

Posted 20 September 2014 - 12:36 AM

I started playing with turtles to teach myself how to code (no previous experience). This is the result my labors.

pastebin = 03sPu8Hv

functions include:

clearBlock(side, storageChest, delay, slotNumber, lastSlot)
move(side, blocks, fuelChest, storageChest, delay)
clearInventory(side, storageChest, slotNumber, lastSlot)
consolidateInventory(side, storageChest, slotNumber, lastSlot)
findSlot(side, slotNumber, lastSlot)
findEmptySlot(excludedSlot)
getTotal(slotNumber, lastSlot)
slot(operation, side, slotNumber, lastSlot, quantity, delay)
chestSlot(operation, side, chest, slotNumber, lastSlot, quantity)
refuel(side, fuelChest, threshold)

Please try them out and let me know what you think. Be sure to read the comments for further details.

#2 peanutinky

  • Members
  • 4 posts

Posted 20 September 2014 - 03:13 PM

nice

#3 Overthot

  • New Members
  • 2 posts

Posted 20 September 2014 - 07:06 PM

I built a quick program to test most of these functions out.

pastebin = r50FL9Fy

How to dig a 5x5 hole the hard way.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users