Thy_Carpenter

ItemID 0.1

Dec 15th, 2023 (edited)
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. -- Init
  2.  
  3. do
  4. version = 0.1
  5. loopcount = 0
  6.  
  7. end
  8.  
  9. -- Header
  10.  
  11. do
  12. term.clear()
  13. print("-------------------------------")
  14. print("ItemID Test ver" .. version)
  15. print("-------------------------------")
  16. print("")
  17.  
  18. end
  19.  
  20. -- Main
  21.  
  22. do
  23.  
  24. print("Loop count: ",loopcount)
  25. end
  26.  
  27. for loopcount =< 16
  28. local currentitem = turtle.getItemDetail (1)
  29. if currentitem then
  30. print("Item name: ", currentitem.name)
  31. print("Item damage value: ", currentitem.damage)
  32. print("Item count: ", currentitem.count)
  33. loopcount = loopcount + 1
  34. end
  35. goto main
  36. end
Advertisement
Add Comment
Please, Sign In to add comment