Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local whitelist = {
- "dynamictrees",
- "leaves",
- "wine"
- }
- local function checkBlock()
- local wl=1
- print("checkBlock ran")
- local result, data = turtle.inspect()
- while whitelist[wl] ~= nil do
- if string.find(data.name, whitelist[wl]) then
- print(whitelist[wl], " = true")
- return true
- end
- print(whitelist[wl], " = false")
- wl = wl+1
- end
- end
- local function dig()
- turtle.turnLeft()
- local result, data = turtle.inspect()
- if string.find(data.name, "dynamictrees") then
- print("string found")
- else
- print("no dice")
- end
- end
- checkBlock()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement