rithrin

place redstone

Sep 22nd, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. turtle.select(1)
  2. while true do
  3. os.pullEvent("redstone")
  4. local rsInput = rs.getInput("back")
  5. if rsInput and turtle.detect() then
  6. turtle.dig()
  7. elseif not (rsInput and turtle.detect()) then
  8. turtle.place()
  9. end
  10. end
Add Comment
Please, Sign In to add comment