tuekats

craftFromBlock

Feb 19th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2.   print("waiting for input signal")
  3.   os.pullEvent("redstone")
  4.   if redstone.getInput("right")==true then
  5.     print("crafting...")
  6.     for i=1,16 do
  7.         turtle.select(i)
  8.         turtle.dropDown()
  9.     end
  10.     turtle.select(1)
  11.     while turtle.getItemCount(1)==0 do
  12.         redstone.setOutput("top",true)
  13.         sleep(1)
  14.         redstone.setOutput("top",false)
  15.         sleep(1)
  16.     end
  17.     turtle.select(16)
  18.     turtle.craft()
  19.     for i=1,16 do
  20.         turtle.select(i)
  21.         turtle.dropDown()
  22.     end
  23.   end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment