Advertisement
buffsovernexus

Untitled

May 11th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. --[[ Farm Debug Script ]]--
  2.  
  3. --[[
  4. Please make sure the bot's inventory is EMPTY.
  5.  
  6. HOW TO USE:
  7. 1) Place bot in front mature (fully grown) crop. (Put the bot on ground level in front of crop)
  8. 2) Run script.
  9. 3) The script will break the fully grown crop.
  10. 4) The script will then print out all of the information you need to add to the script.
  11. ]]--
  12.  
  13. -- Step 1: Fix location.
  14. turtle.up()
  15. turtle.forward()
  16.  
  17. -- Step 2: Determine the block below it.
  18. local success, block = turtle.inspectDown()
  19. print("[Block Below] name: " .. block.name .. ", mature: " .. block.metadata)
  20.  
  21. -- Step 3: Break block below.
  22. turtle.digDown()
  23. turtle.suckDown()
  24.  
  25. -- Step 4: Collect data on ALL things in inventory.
  26. for i=1,16 do
  27.  
  28. local data = turtle.getItemDetail(i)
  29. print("[#" .. i .. "] name: " .. data.name)
  30.  
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement