ThugDio

tossCobblestone

Feb 9th, 2017 (edited)
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function tossCobblestone()
  2. slotCount = 1
  3.  
  4. while slotCount < 17 do
  5.   turtle.select(slotCount)
  6.   obj = turtle.getItemDetail(slotCount)
  7.   if (obj ~= nil) then
  8.     print(obj.name)
  9.     if (obj.name == 'minecraft:cobblestone') then
  10.       turtle.drop()
  11.     end
  12.   end
  13.   slotCount = slotCount + 1
  14. end
  15. turtle.select(1)
  16. end
Add Comment
Please, Sign In to add comment