Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local l = peripheral.wrap("right")
- l.setFreq(3)
- local v = 2
- if l.get() then
- if v == 2 then
- v = 1
- turtle.dig()
- sleep(5)
- end
- else
- if v == 1 then
- turtle.place()
- turtle.up()
- turtle.attack()
- turtle.down()
- v = 2
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment