Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Concrete Buster turtle
- --Ensure that turtle is either facing water of dust will be touching water
- local chest = peripheral.find("minecraft:chest")
- local turtleDir="east" --can also be network address
- term.clear()
- term.setCursorPos(1,1)
- print("Concrete Breaker V1.1")
- turtle.dig()
- turtle.select(1)
- while true do
- sleep()
- for i = 1,16 do
- turtle.select(i)
- local check = turtle.getItemDetail(i)
- if check then
- if not string.find(check.name,"powder") then
- chest.pullItems(turtleDir,i,64)
- elseif string.find(check.name,"powder") then
- if turtle.place() then
- turtle.dig()
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement