Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dig()
- turtle.select(1)
- turtle.dig()
- turtle.place()
- end
- function place()
- turtle.select(1)
- turtle.place()
- end
- function drop()
- turtle.select(2)
- turtle.dropDown()
- turtle.select(1)
- end
- a = 1
- while true do
- event = os.pullEvent("redstone")
- a = a + 1
- print("a = " .. a)
- if(a == 3) then
- dig()
- sleep(1)
- place()
- drop()
- a = 1
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment