Advertisement
Skip_21

Crusher with CC Turtle Side (Immersive Engineering)

Mar 7th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. rednet.open("left")
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. print("Crusher Program On")
  5.  
  6. while true do
  7.     id,message = rednet.receive()
  8.     if id == Computer1ID and message == "Crush" then -- The computer ID is yours
  9.         for a = 1,4 do -- This value may change according to where is the turtle compared to the Crusher
  10.             turtle.up()
  11.         end
  12.         turtle.turnLeft() -- Or turtle.turnRight() still according to the turtle location :3
  13.         for a = 5,9 do
  14.             turtle.forward()
  15.         end
  16.         for i = 1,16 do -- DON'T TOUCH THIS IT'S THE SLOT NUMBER !
  17.             turtle.select(i)
  18.             turtle.dropDown() -- did i forgot to mention that the turtle may be over the Crusher ?
  19.         end
  20.         for a = 10,14 do -- We're back on the turtle movement
  21.         turtle.back()
  22.         end
  23.         turtle.turnRight() -- Or turtle.turnLeft() if you picked turnRight() earlier
  24.         for a = 15,18 do
  25.         turtle.down()
  26.         end
  27.     else
  28.         sleep(0.1)
  29.     end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement