Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function findPowder()
- for i = 1 ,16 do
- if turtle.getItemCount(i) > 0 then
- local item = turtle.getItemDetail(i)
- if string.find(item.name,"powder") then
- return i
- end
- end
- end
- return 0
- end
- local function MainRun()
- local slot = findPowder()
- if slot ~= 0 then
- turtle.select(slot)
- local slotcount = turtle.getItemCount()
- for h = 1,slotcount do
- turtle.place()
- turtle.dig()
- end
- end
- end
- for j = 1 , 16 do
- MainRun()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement