Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("How many section to build?")
- local number = read()
- for i = 1,number/4 do
- if turtle.getFuelLevel() < 160 then
- turtle.select(16)
- if turtle.refuel(10) then
- else
- turtle.select(15)
- turtle.refuel(10)
- end
- end
- function fdown()
- turtle.forward()
- turtle.down()
- end
- function chkblock()
- if turtle.detectDown() = true then
- else
- turtle.select(5)
- turtle.placeDown()
- end
- end
- function upplace()
- turtle.up()
- turtle.select(1)
- turtle.placeDown()
- end
- function torchplace()
- turtle.select(9)
- turtle.turnRight()
- turtle.forward()
- chkblock()
- turtle.back()
- turtle.place()
- turtle.turnLeft()
- end
- for i = 1,4 do
- upplace()
- fdown()
- chkblock()
- upplace()
- fdown()
- chkblock()
- upplace()
- fdown()
- chkblock()
- torchplace()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement