Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. dropCobble()
  2.  
  3. -- function mine()
  4. -- local args = {...}
  5. -- local width = args[1]
  6. -- local height = args[2]
  7. -- printf("Starting mining rectangle with\n[%d] Width and [%d] Height\n", width)
  8.  
  9. -- local currentLocation = {}
  10. -- currentLocation.width = 0
  11. -- currentLocation.height = 0
  12.  
  13. -- while turtle.refuel() do
  14.  
  15. -- end
  16. -- end
  17.  
  18. function refuelFromInventory()
  19.  
  20. end
  21.  
  22. function dropCobble()
  23. for index = 2, index <= 16, +index
  24. do
  25. local selectedItem = turtle.getItemDetail(index)
  26. if selectedItem.name = "Cobblestone" then
  27. -- Select the given slot and drop the cobble
  28. turtle.select(index)
  29. turtle.drop(selectedItem.count)
  30. end
  31.  
  32. end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement