Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- progress = 0
- solid = 5
- dist = 0
- function doit()
- select( 16 )
- turtle.refuel( turtle.getItemCount( 16 ) )
- print( "Turtle has refueled!" )
- --1
- while ( turtle.detect() == true ) do
- turtle.dig()
- end
- turtle.forward()
- while ( turtle.detectUp() == true ) do
- turtle.digUp()
- end
- turtle.up()
- while ( turtle.detectUp() == true ) do
- turtle.digUp()
- end
- turtle.turnRight()
- --2
- while ( turtle.detect() == true ) do
- turtle.dig()
- end
- turtle.forward()
- while ( turtle.detectUp() == true ) do
- turtle.digUp()
- end
- while ( turtle.detectDown() == true ) do
- turtle.digDown()
- end
- --3
- while ( turtle.detect() == true ) do
- turtle.dig()
- end
- turtle.forward()
- while ( turtle.detectUp() == true ) do
- turtle.digUp()
- end
- while ( turtle.detectDown() == true ) do
- turtle.digDown()
- end
- --4
- while ( turtle.detect() == true ) do
- turtle.dig()
- end
- turtle.forward()
- while ( turtle.detectUp() == true ) do
- turtle.digUp()
- end
- while ( turtle.detectDown() == true ) do
- turtle.digDown()
- end
- --5
- while ( turtle.detect() == true ) do
- turtle.dig()
- end
- turtle.forward()
- while ( turtle.detectUp() == true ) do
- turtle.digUp()
- end
- while ( turtle.detectDown() == true ) do
- turtle.digDown()
- end
- --6
- while ( turtle.detect() == true ) do
- turtle.dig()
- end
- turtle.forward()
- while ( turtle.detectUp() == true ) do
- turtle.digUp()
- end
- while ( turtle.detectDown() == true ) do
- turtle.digDown()
- end
- /*
- if ( solid >= 5 ) then
- solid = 0
- if ( turtle.getItemCount( 1 ) > 0 ) then
- turtle.select( 1 )
- elseif ( turtle.getItemCount( 2 ) > 0 ) then
- turtle.select( 2 )
- elseif ( turtle.getItemCount( 3 ) > 0 ) then
- turtle.select( 3 )
- elseif ( turtle.getItemCount( 4 ) > 0 ) then
- turtle.select( 4 )
- end
- solid_ring()
- for i = 1, 6, 1 do
- turtle.up()
- while ( turtle.detectUp() == true ) do
- turtle.digUp()
- end
- turtle.placeUp()
- turtle.down()
- turtle.down()
- while ( turtle.detectDown() == true ) do
- turtle.digDown()
- end
- turtle.placeDown()
- turtle.up()
- turtle.back()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- solid_ring()
- turtle.turnRight()
- turtle.down()
- end
- */
- end
- print( "----------------------------------" )
- print( "----Activating Cosmic Tunneler----" )
- print( "----------------------------------" )
- sleep( 0.5 )
- print( " " )
- print( "Cosmic Tunneler will create a 6x3 tunnel from one the current location." )
- print( "This Turtle should be oriented for the bottom left of the tunnel." )
- sleep( 0.5 )
- print( "Place the building blocks in slot 1-4." )
- print( "Place the accent blocks in slot 5-12." )
- print( "Place the torches in slot 15." )
- print( "Place the fuel in slot 16." )
- sleep( 0.5 )
- print( "Input Integer - Enter Distance to Tunnel..." )
- dist = tonumber( io.read() )
- sleep( 0.5 )
- print( "Ready to begin? [y/n]" )
- input = io.read()
- if ( input == 'y' ) then
- print( "Program will now begin!" )
- doit()
- else
- print( "Program will not start." )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement