Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function torch()
- end
- function digtiz()
- d = 0
- while d < 10 do
- turtle.dig()
- d = d + 10
- end
- end
- function diguptiz()
- d = 0
- while d < 10 do
- turtle.digUp()
- d = d + 10
- end
- end
- function lap()
- digtiz()
- turtle.forward()
- diguptiz()
- turtle.digDown()
- turtle.turnLeft()
- digtiz()
- turtle.forward()
- diguptiz()
- turtle.digDown()
- turtle.down()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.select(3)
- turtle.placeDown()
- turtle.forward()
- turtle.placeDown()
- digtiz()
- turtle.forward()
- turtle.placeDown()
- diguptiz()
- turtle.up()
- turtle.turnLeft()
- turtle.turnLeft()
- diguptiz()
- turtle.forward()
- turtle.turnRight()
- end
- function tankolas()
- turtle.select(1)
- turtle.refuel(1)
- end
- print("Menyit banyaszak?")
- x = tonumber(read())
- h = 0
- t = 0
- while h < x do
- if turtle.getFuelLevel() < 100 then
- tankolas()
- turtle.getFuelLevel()
- end
- lap()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement