Advertisement
karelvysinka

Test detect inspect turtle slot

Aug 16th, 2017
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. local data = turtle.getItemDetail()
  2.  
  3.     if data then
  4.         print("Item name: ", data.name)
  5.         data1 = data.name
  6.         if data1 == "minecraft:coal" then
  7.             print("Nalezen coal. Provedu refuel.")
  8.         end
  9.         print("Item damage value: ", data.damage)
  10.         print("Item count: ", data.count)
  11.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement