SHARE
TWEET

dump.lua

neo34rd Apr 14th, 2019 (edited) 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. --- Dumps items but leaves 1 item in slots 1-4
  3. function tagged_dump_1234()
  4.     --- Dump all but 1 tagged items (tagged items are in slots 1-4)
  5.     for i = 1, 4 do
  6.         turtle.select(i)
  7.         c = turtle.getItemCount(i)
  8.         if c > 0 then
  9.             turtle.drop(c - 1)
  10.         end
  11.     end
  12.  
  13.     --- Dump the rest
  14.     for i = 5, 16 do
  15.         turtle.select(i)
  16.         turtle.drop()
  17.     end
  18. end
  19.  
  20.  
  21. function dump_all()
  22.     for i = 1, 16 do
  23.         turtle.select(i)
  24.         turtle.drop()
  25.     end
  26. end
  27.  
  28.  
  29. function dump_all_up()
  30.     for i = 1, 16 do
  31.         turtle.select(i)
  32.         turtle.dropUp()
  33.     end
  34. end
  35.  
  36.  
  37. function dump_all_down()
  38.     for i = 1, 16 do
  39.         turtle.select(i)
  40.         turtle.dropDown()
  41.     end
  42. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top