Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkInventoryFor(id)
- for i=1,16 do
- turtle.select(i)
- info = turtle.getItemDetail()
- if info.name == id then
- return true
- end
- end
- return false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement