Advertisement
Mowmaster

TurtleSortstoreandtrash

May 20th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1. while true do
  2.   for i=1,16 do
  3.   turtle.select(i)
  4.     if turtle.getItemCount(i) == 0 then
  5.     sleep(1)
  6.     else
  7. local data = turtle.getItemDetail(i)
  8.             if data.name == "minecraft:stone_sword" then
  9.                 turtle.dropDown()
  10.             else
  11.                 if data.name == "xreliquary:witch_hat" then
  12.                 turtle.dropDown()
  13.                 else
  14.                     if data.name == "minecraft:potion" and data.damage == 16341 then
  15.                     turtle.dropDown()
  16.                     else
  17.                         if data.name == "minecraft:potion" and data.damage == 16274 then
  18.                             turtle.dropDown()
  19.                             else
  20.                                 turtle.drop()
  21.                                 end
  22. end
  23. end
  24. end
  25. end
  26. end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement