Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function searchString(bigString, searchString)
- if bigString ~= nil and searchString ~= nil then
- if bigString.match(bigString, searchString) == nil then
- return false
- else
- return true
- end
- else
- return false
- end
- end
- function check()
- for slot = 1, 16 do
- turtle.select(slot)
- if turtle.getItemSpace(slot) ~= 64 then
- temp = turtle.getItemDetail()
- name = temp.name
- if searchString(name, "raw") == true or searchString(name, "sulfur") == true then
- print("Drop Forward")
- turtle.drop(64)
- else
- print("Drop Down")
- turtle.dropDown(64)
- end
- end
- end
- end
- while true do
- check()
- sleep(2.5)
- end
- shell.run("reboot")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement