Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local nCount = 0
- local dCount = 0
- local fCount = turtle.getFuelLevel()
- if fCount < 100 then
- print("Turtle firstly needs at least 100 fuel")
- return
- end
- while turtle.getItemDetail()["name"] ~= "minecraft:bucket" do
- term.clear()
- term.setCursorPos(1,1)
- print("Put an empty bucket in slot 1 and place facing a lava lake./nPress any key to begin.")
- io.read()
- end
- for x = 1,4 do
- turtle.forward()
- end
- repeat
- if not turtle.down() then
- break
- end
- dCount = dCount + 1
- until turtle.placeDown()
- repeat
- for x = 1,4 do
- turtle.place()
- turtle.refuel()
- turtle.turnLeft()
- end
- nCount = nCount+1
- until not turtle.down()
- for x = 1,3 do
- turtle.forward()
- end
- for x = 1,nCount do
- for x = 1,4 do
- turtle.place()
- turtle.refuel()
- turtle.turnLeft()
- end
- turtle.up()
- end
- for x = 1,(dCount - 1) do
- turtle.up()
- end
- for x = 1,7 do
- turtle.back()
- end
- refCount = turtle.getFuelLevel() - fCount
- print("Turtle refueled "..refCount.." fuel.")
- print("Total fuel level: "..turtle.getFuelLevel())
Add Comment
Please, Sign In to add comment