Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Created by CyaNox
- updateInterval = 0.2
- update = os.startTimer(updateInterval)
- while true do
- local e,p1 = os.pullEvent()
- if e == "timer" then
- if p1 == update then
- if redstone.getInput("back") then
- if turtle.detect() then
- for i=1,16 do
- turtle.select(i)
- turtle.dropUp()
- end
- else
- turtle.select(1)
- turtle.place()
- end
- else
- if turtle.detect() then
- for i=1,16 do
- turtle.select(i)
- turtle.dropUp()
- end
- turtle.select(1)
- turtle.dropUp()
- turtle.dig()
- end
- end
- update = os.startTimer(updateInterval)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment