Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function refuel()
- turtle.select(1)
- turtle.refuel(2)
- end
- function digForward()
- while turtle.detect() do
- turtle.dig
- end
- end
- function layer()
- digForward()
- turtle.forward()
- turtle.digDown()
- turtle.turnLeft()
- digForward()
- tutrle.forward()
- turtle.digDown()
- turtle.turnRight()
- turtle.turnRight()
- light()
- turtle.turnRight()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- -- this is the function i need help with, i looked up what i could but it doesnt work and i tried variations
- function light()
- for i = 1, times do
- if 1%9==0 and torch ~= "n" then
- turtle.select(2)
- turtle.placeDown()
- turtle.select(1)
- end
- end
- end
- term.write("Please enter how many layers: ")
- times = read()
- for i = 1, times do
- layer()
- end
Advertisement
Add Comment
Please, Sign In to add comment