Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkFuel()
- if(turtle.getFuelLevel()<100) then
- turtle.select(1)
- turtle.placeDown()
- a = peripheral.wrap("bottom")
- a.setColours(colors.black,colors.black,colors.black)
- turtle.suckDown(64)
- turtle.refuel(64)
- turtle.digDown()
- os.sleep(1)
- return
- end
- return
- end
- function checkInv()
- if(turtle.getItemCount(16)>0) then
- turtle.select(1)
- turtle.placeDown()
- a = peripheral.wrap("bottom")
- a.setColours(colors.blue,colors.blue,colors.blue)
- for i=2,16 do
- turtle.select(i)
- turtle.dropDown(64)
- end
- turtle.select(1)
- turtle.digDown()
- os.sleep(1)
- end
- end
- checkFuel()
- checkInv()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement