Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkfuelrefuel()
- if turtle.GetFuelLevel() < 5 then
- for i = 1,16,1 do
- if turtle.getItemDetail(i).name == "Coal" then
- turtle.refuel(1)
- end
- end
- end
- end
- function checkinventory()
- for o=1,16,1 do
- if (turtle.suck(o) == true) and (turtle.suckUp(o) == true) and (turtle.suckDown(o) == true)
- full = false
- else
- full = true
- end
- end
- if full = true then
- return true
- else
- return false
- end
- end
- function succa()
- turtle.suck()
- turtle.suckUp()
- turtle.suckDown()
- end
- function autoscavapussy(altezza, larghezza)
- for i=1,altezza,1 do
- checkfuelrefuel()
- if checkinventory() == true
- for x=1,larghezza,1 do
- turtle.digDown()
- succa()
- turtle.forward()
- end
- end
- turtle.turnRight()
- end
- end
- autoscavapussy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement