Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tunnel(x,y,z) --Funzione Tunnel--
- ------VARIABILI------
- counterX=1
- counterY=1
- counterZ=0
- ------ESECUZIONE------
- while counterZ<=z do --Controlla la lunghezza del tunnel
- while counterX<x do --Controlla la larghezza
- turtle.dig()
- while counterY<y do --Controlla l'altezza
- turtle.up()
- turtle.dig()
- counterY=counterY+1
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- while counterY>1 do
- turtle.up()
- counterY=counterY-1
- end
- counterX=counterX+1
- end
- turtle.turnLeft()
- while counterX>1 do
- turtle.forward()
- counterX=counterX-1
- end
- counterZ=counterZ+1
- end
- end
- ------OBSIDIAN MINE------
- function obsidian(x,y)
- ------VARIABILI------
- counterX=1
- counterY=1
- while counterX<x do
- while counterY<y do
- turtle.digDown()
- turtle.placeDown()
- turtle.dig()
- turtle.forward()
- counterY=counterY+1
- end
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- while counterY>1 do
- turtle.dig()
- turtle.forward()
- counterY=counterY-1
- end
- turtle.turnRight()
- turtle.turnRight()
- counterX=counterX+1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement