Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function inspect()
- local success, data = turtle.inspect()
- local out = false
- if success then
- print(data.metadata)
- if data.metadata == 7 then out = true end
- end
- return out
- end
- while true do
- if inspect() then
- print("ready")
- rs.setOutput("back",true)
- sleep(0.4)
- rs.setOutput("back",false)
- --turtle.place()
- end
- turtle.place()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement