Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- term.clear()
- term.setCursorPos(1,1)
- print("Crusher Program On")
- while true do
- id,message = rednet.receive()
- if id == Computer1ID and message == "Crush" then -- The computer ID is yours
- for a = 1,4 do -- This value may change according to where is the turtle compared to the Crusher
- turtle.up()
- end
- turtle.turnLeft() -- Or turtle.turnRight() still according to the turtle location :3
- for a = 5,9 do
- turtle.forward()
- end
- for i = 1,16 do -- DON'T TOUCH THIS IT'S THE SLOT NUMBER !
- turtle.select(i)
- turtle.dropDown() -- did i forgot to mention that the turtle may be over the Crusher ?
- end
- for a = 10,14 do -- We're back on the turtle movement
- turtle.back()
- end
- turtle.turnRight() -- Or turtle.turnLeft() if you picked turnRight() earlier
- for a = 15,18 do
- turtle.down()
- end
- else
- sleep(0.1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement