Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local localTable = {}
- local i = 0
- io.input('localOreList.txt')
- repeat
- i = i+1
- localTable[i] = io.read('localOreList.txt')
- until localTable[i] == nil
- function itemIsOre()
- itemInfo = turtle.getItemDetail()
- for i = 1, #localTable do
- if itemInfo.name == localTable then
- isOre = true
- else
- isOre = false
- end
- end
- return isOre
- end
- for i = 1, 11 do
- turtle.select(i)
- if itemIsOre == true then
- print('true')
- end
- end
Add Comment
Please, Sign In to add comment