Advertisement
Guest User

Turtle inventory selection v0.1

a guest
Oct 31st, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.21 KB | None | 0 0
  1. rednet.open("right")
  2.  
  3. while true do
  4.   id,message = rednet.receive()
  5.   if id == 10 then
  6.     if message == "thaumcraft" then
  7.       turtle.select(1)
  8.       turtle.dropDown([1])
  9.       while true do
  10.         print("Press E when done loading/unloading")
  11.  
  12.         local event, key = os.pullEvent("key")
  13.  
  14.         if key == keys.e then
  15.           textutils.slowPrint("Retrieving storage disk...")
  16.           turtle.suckDown([1])
  17.    
  18.           break
  19.         end
  20.       end
  21.     end
  22.      if message == "science" then
  23.        turtle.select(2)
  24.        turtle.dropDown([1])
  25.        while true do
  26.          print("Press E when done loading/unloading")
  27.  
  28.          local event, key = os.pullEvent("key")
  29.  
  30.          if key == keys.e then
  31.           textutils.slowPrint("Retrieving storage disk...")
  32.           turtle.suckDown([1])
  33.    
  34.           break
  35.         end
  36.       end
  37.     end
  38.      if message == "magic" then
  39.        turtle.select(3)
  40.        turtle.dropDown([1])
  41.        while true do
  42.          print("Press E when done loading/unloading")
  43.  
  44.          local event, key = os.pullEvent("key")
  45.  
  46.          if key == keys.e then
  47.           textutils.slowPrint("Retrieving storage disk...")
  48.           turtle.suckDown([1])
  49.    
  50.           break
  51.         end
  52.       end
  53.     end
  54.   end
  55. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement