SHARE
TWEET
startup.lua
a guest
Jan 29th, 2018
63
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- local input = "left"
- local output = "right"
- local control = "back"
- local slpDur = 3
- while true do
- term.clear()
- term.setCursorPos(1,1)
- if rs.getInput(control) then
- print("working")
- if turtle.getItemCount() < 1 then
- turtle.suckUp(1)
- end
- turtle.place()
- local success, data = turtle.inspect()
- print(data.name)
- if data.name == nil then
- turtle.place()
- elseif data.name == "minecraft:stone" then
- --nothing
- else
- turtle.dig()
- for i = 1, 16 do
- turtle.select(i)
- turtle.dropUp()
- end
- turtle.select(1)
- end
- sleep(slpDur)
- else
- print("turtle is in off state")
- sleep(slpDur)
- end
- end
RAW Paste Data

