Bonkie

Computecraft Turtle Empty INV

Apr 5th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. args = {...}
  2. print("Turtle inventory leeg maken")
  3. for i=1,16 do
  4.   turtle.select(i)
  5.   e=64
  6.   while e ~= 0 do
  7.     if (args[1]=="down") then
  8.       print("down")
  9.       turtle.dropDown()
  10.     elseif (args[1]=="up") then
  11.       print("up")
  12.       turtle.dropUp()
  13.     elseif (args[1]=="front") then
  14.       print("front")
  15.       turtle.drop()
  16.     else
  17.       turtle.dropDown()
  18.     end
  19.     e = turtle.getItemCount(i)
  20.     print("Items in slot "..i..":"..e)
  21.   end
  22. end
  23. local m = peripheral.wrap("right")
  24. m.transmit(100,100,"ready")
Advertisement
Add Comment
Please, Sign In to add comment