Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This builds a bridge 64 blocks long
- -- Helper functions
- local function fwd()
- while not turtle.forward() do
- turtle.dig()
- end
- end
- -- Check fuel
- if turtle.getFuelLevel() < 128 then
- print("Please provide at least 128 fuel")
- return
- end
- -- Check for enough blocks
- if turtle.getItemCount(1) < 64 then
- print("Please place 64 blocks in slot 1")
- return
- end
- -- Build bridge
- turtle.select(1)
- for i = 1, 64 do
- fwd()
- turtle.placeDown()
- end
- -- Come back
- for i = 1, 64 do
- turtle.back()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement