Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. rednet.open("right")
  2.  
  3. function getEnd() =
  4. while true do
  5.   if message == "stop" then
  6.           textutils.slowPrint("Retrieving storage disk...")
  7.           turtle.suckDown(1)
  8.    
  9.           break
  10.         end
  11.       end
  12.     end
  13.  
  14. while true do
  15.   id,message = rednet.receive()
  16.   if id == 10 then
  17.     if message == "thaumcraft" then
  18.       turtle.select(1)
  19.       turtle.dropDown(1)
  20.       getEnd()
  21.       end
  22.  
  23.      if message == "science" then
  24.        turtle.select(2)
  25.        turtle.dropDown(1)
  26.        getEnd()
  27.        end
  28.  
  29.      if message == "magic" then
  30.        turtle.select(3)
  31.        turtle.dropDown(1)
  32.        getEnd()
  33.        end
  34.  
  35.   end
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement